From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: uzibalqa via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#58233: Latex style files shifts code with underscores Date: Sun, 02 Oct 2022 15:28:20 +0000 Message-ID: References: <87r0zqcs94.fsf@gnus.org> Reply-To: uzibalqa Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15765"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58233@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 02 17:29:10 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1of0ty-0003yF-Gt for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 02 Oct 2022 17:29:10 +0200 Original-Received: from localhost ([::1]:57866 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1of0tx-0005Lx-Ko for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 02 Oct 2022 11:29:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55128) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1of0tq-0005Ln-Vf for bug-gnu-emacs@gnu.org; Sun, 02 Oct 2022 11:29:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48767) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1of0tq-00062N-Na for bug-gnu-emacs@gnu.org; Sun, 02 Oct 2022 11:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1of0tq-0003Qu-Ex for bug-gnu-emacs@gnu.org; Sun, 02 Oct 2022 11:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: uzibalqa Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 Oct 2022 15:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58233 X-GNU-PR-Package: emacs Original-Received: via spool by 58233-submit@debbugs.gnu.org id=B58233.166472451813163 (code B ref 58233); Sun, 02 Oct 2022 15:29:02 +0000 Original-Received: (at 58233) by debbugs.gnu.org; 2 Oct 2022 15:28:38 +0000 Original-Received: from localhost ([127.0.0.1]:47845 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1of0tR-0003QE-Sk for submit@debbugs.gnu.org; Sun, 02 Oct 2022 11:28:38 -0400 Original-Received: from mail-40140.protonmail.ch ([185.70.40.140]:42445) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1of0tN-0003Px-1V for 58233@debbugs.gnu.org; Sun, 02 Oct 2022 11:28:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1664724507; x=1664983707; bh=N7zxv8FMdE5xBmy29LTJpoLrWViMroJEvoZMw8T4f10=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID; b=by2eOiYRXBpwC0EtYSHakYvkRigZfkXEVSWroc349oh9ySchq1TmTYpwC2fMQnABq VhCTk7xvtSohOlguQiHUXsFuWeVb27FOv2I4GkxH3N0/3iEdoeLXD6fBSn/9a7WQvF b+rs3qGcpBd/EFTpI9xM40ECbd1d73gjGTulfsunbL/g7yVZNasLvTs7pmQenCOtFa vJwLdafETcnyn9No5GXQltjsKuQ4dzGpD3phklXTFMF/9q737qx7ANcZeDQqW6BCHH aIARcDeas4ocA307HWbrPElslCtM2v3TOV3BYbPLEBIgE4oWVYEw+JSn9IuWMD1zt6 16+xry8s2kYUA== In-Reply-To: <87r0zqcs94.fsf@gnus.org> Feedback-ID: 52887082:user:proton X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:244235 Archived-At: Sent with Proton Mail secure email. ------- Original Message ------- On Sunday, October 2nd, 2022 at 12:41 PM, Lars Ingebrigtsen wrote: > uzibalqa uzibalqa@proton.me writes: >=20 > > I am working on some latex style files and have noticed that code with = underscores gets displayed > > as subscript notation (characters get shifted downwards) rather than sh= owing code as it should be. > >=20 > > Consequently, the following looks extremely weird. > >=20 > > \cs_new_protected:Nn \__hagbard_newtheorem_parent:nnn > > { > > \newtheorem{#1_inner}[#3]{\color{\l__hagbard_theorem_setcolor_tl}#2} > > } > > \cs_generate_variant:Nn \__hagbard_newtheorem_parent:nnn { VVV } >=20 >=20 > I've managed to repress all knowledge of .sty files I once had. >=20 > Emacs currently uses latex-mode to display .sty files. In LaTeX, > underscores aren't allowed in identifiers like this, are they? >=20 > So it seems like the solution here would be to default > tex-fontify-script to nil in .sty files, which seems to fix this > specific problem. But the fontification is still pretty weird: >=20 >=20 > I.e., if this is valid .sty syntax, then latex-mode doesn't really have > support for it at all, I think? It is the latest L3 Programming Layer Interface for Latex.