From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 16 14:54:36 2025 Received: (at submit) by debbugs.gnu.org; 16 Mar 2025 18:54:36 +0000 Received: from localhost ([127.0.0.1]:50721 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ttt87-0008Jm-Gg for submit@debbugs.gnu.org; Sun, 16 Mar 2025 14:54:36 -0400 Received: from lists.gnu.org ([2001:470:142::17]:54474) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ttt7r-0008J8-Fn for submit@debbugs.gnu.org; Sun, 16 Mar 2025 14:54:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ttt7R-0005KV-F2 for bug-auctex@gnu.org; Sun, 16 Mar 2025 14:53:57 -0400 Received: from smtp4-g21.free.fr ([2a01:e0c:1:1599::13]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ttt7P-0003X0-E8 for bug-auctex@gnu.org; Sun, 16 Mar 2025 14:53:53 -0400 Received: from [172.20.10.4] (unknown [37.166.23.97]) (Authenticated sender: jfbu@free.fr) by smtp4-g21.free.fr (Postfix) with ESMTPSA id 236DA19F5A7 for ; Sun, 16 Mar 2025 19:53:45 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=free.fr; s=smtp-20201208; t=1742151225; bh=F7VDC05l6Y9ndr2jidXF5hS1R6e4kKf8mQIXNJX4fhU=; h=From:Subject:Date:To:From; b=AdHA+u3PXELXqTACCaYaNVmTg/GGHX0x67ZTgtOhG8/241Ee3qvH8q2Ai6SzVXM+d QH83s+w+4fvx/X2jEYMdgnW0CBHkvDSHxttaXDNOxM4bSDQL5ZcqkFi2LSOVXVau8x S9xukqP4/5vEtJSm2dip/mgDILpIffzHB1o78+DM8Gb6ty2fbH7oKzxRy0/Il0a34c OnFe0OX7OpNgjPh1oYgcY3AhZYtTElLmAF038XxNbAXZnnn/XI5rjq2qqopeY8abva PkqELG1Wxg0Y3+fPAQUhI0e1kR6cBVfaS3zycC6KYf6vXoPaIZrjPr1e1IkCnT13Ii GbC6AND7P/trA== From: jfbu Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.7\)) Subject: 14.0.9; Errors signaled by LuaLaTeX about missing characters are not reported as such Message-Id: Date: Sun, 16 Mar 2025 19:53:44 +0100 To: bug-auctex@gnu.org X-Mailer: Apple Mail (2.3445.9.7) Received-SPF: pass client-ip=2a01:e0c:1:1599::13; envelope-from=jfbu@free.fr; helo=smtp4-g21.free.fr X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) With LuaLaTeX (and other engines) it is possible since a few years=20 to set \tracinglostchars=3D3 (the LaTeX kernel uses 2 not 3). This means that attempting to use a character not existing in the current document font will cause an error on built. But it seems such errors are not parsed by AUCTeX, and as a result, this important mechanism to not produce wrong output is lost. Here is an example, adapted from https://tex.stackexchange.com/q/739039/293669 ```latex \documentclass{article} \RequirePackage{fontspec}% compile with lualatex \tracinglostchars=3D3 % 2 is latex default (=3Dwarn) \begin{document} Hello.\par \typeout{AAAAAAAAA} \sbox0{\char"3E3A} \typeout{BBBBBBBBB} \char"3E3A\par \typeout{CCCCCCCCC} \end{document} % Local Variables: % TeX-engine: luatex % End: ``` With TeXLive2025 LuaLaTeX you can set \tracinglostchars=3D5 and the effect is triggered also by the box construction, not only by material ending up on the galley. (the above example is by a contributor to tex.sx who was trying to test that recent TeXLive 2025 LuaLaTeX feature). To reproduce the problem paste the above in an Emacs window, hit C-cC-n to get AUCTeX parse and understand that it is to use LuaLaTeX then hit C-cC-a. No error will be reported. (At least this is what happens at my locale). With XeTeX engine, the error **is** reported by AUCTeX. For info the LuaLaTeX log contains following type of lines. ```text AAAAAAAAA Missing character: There is no =E3=B8=BA (U+3E3A) in font = [lmroman10-regular]:+tlig;! . \sbox ...box {\color@setgroup #2\color@endgroup } =20 l.7 \sbox0{\char"3E3A} % No problem ?! BBBBBBBBB Missing character: There is no =E3=B8=BA (U+3E3A) in font = [lmroman10-regular]:+tlig;! . ...hskip:D \c_zero_dim \fi: \tex_par:D=20 \hook_use:n = {para/after}\@... l.9 \char"3E3A\par % Or \usebox0 Missing character: There is no =E3=B8=BA (U+3E3A) in font = [lmroman10-regular]:+tlig;! . ...hskip:D \c_zero_dim \fi: \tex_par:D=20 \hook_use:n = {para/after}\@... l.9 \char"3E3A\par % Or \usebox0 CCCCCCCCC ``` For the above I set \tracinglostchars=3D5 because I am using a = TeXLive2025 LuaLaTeX (*) with 3 in place of 5 you will get only on error line in the = log and it will actually be located there after the CCCCCCCCC. Jean-Fran=C3=A7ois B. (*) which at time of writing has problems with math mode, but that is another non-AUCTeX matter. ; I can not include TeX-command-list as it contains private things Emacs : GNU Emacs 28.1 (build 1, x86_64-apple-darwin17.7.0, Carbon = Version 158 AppKit 1561.61) of 2022-05-10 Package: 14.0.9 current state: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (setq window-system 'mac LaTeX-version "2e" TeX-style-path '("~/.emacs.d/auctex/" = "/path/to/.emacs.d/elpa/auctex-14.0.9/style" "/path/to/.emacs.d/auctex/.auto" = "/path/to/.emacs.d/auctex/style" ".auto" "style") TeX-auto-save t TeX-parse-self t TeX-master t )