From unknown Thu Jun 19 14:03:11 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#48582 <48582@debbugs.gnu.org> To: bug#48582 <48582@debbugs.gnu.org> Subject: Status: Issue with font-latex-deactivated-keyword-classes Reply-To: bug#48582 <48582@debbugs.gnu.org> Date: Thu, 19 Jun 2025 21:03:11 +0000 retitle 48582 Issue with font-latex-deactivated-keyword-classes reassign 48582 auctex submitter 48582 Augusto Stoffel severity 48582 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat May 22 05:45:44 2021 Received: (at submit) by debbugs.gnu.org; 22 May 2021 09:45:44 +0000 Received: from localhost ([127.0.0.1]:38337 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lkOCW-0007Sn-3W for submit@debbugs.gnu.org; Sat, 22 May 2021 05:45:44 -0400 Received: from lists.gnu.org ([209.51.188.17]:50950) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lkOCU-0007Sf-4H for submit@debbugs.gnu.org; Sat, 22 May 2021 05:45:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50696) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lkOCT-0004xh-S9 for bug-auctex@gnu.org; Sat, 22 May 2021 05:45:41 -0400 Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]:43620) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lkOCS-0008PS-5p for bug-auctex@gnu.org; Sat, 22 May 2021 05:45:41 -0400 Received: by mail-ej1-x632.google.com with SMTP id f18so3853174ejq.10 for ; Sat, 22 May 2021 02:45:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=yTdTOgqRQQLNuD+BXrncgGg9kje2JMGNiLq52qggYnI=; b=JNV8vMphF3gSGR/fQJ9387Sfgxh+QG9JWqRrBpBI501TDe5FhQe65y2bKpOfAfmG4p yxMj6mzJRBEBJ8hMVrW03Ap3qarUFyLDYi+tS5XxIDERxLgBugn9fChxZLeB1z/SI4+j O7KSh2DM8HCNf/ICJ6hh7kCCwzxa+vXy0UFmcJbxZQOy/uaw5Ti9yKyuk2nsM5rPcHkQ 5MRK2xCYD4JrcLVSzEFiWS0GITmdTrAg9Z/65gMsQeDaJJl95pR8TGgxn0xVW1r/DZhh bZlsvyys6/qGKtKfvEbecmG4jbVu+yCqXzsoIwKr9O+26jkugkMcCWlJiZhm5L9u7XLg sqtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=yTdTOgqRQQLNuD+BXrncgGg9kje2JMGNiLq52qggYnI=; b=Yj5UnQydfCawhFl4xjzlpObqRi6nnugNf4LLqebW0zwKRgWw6b7MKpniFAmpxtei15 Yoojbp2bvq7xO3c/yxQvES6Ca3yKZqv2jsDThLpb4KEZbrIs8GKLd4H9/U3LxWtq7ujq JKIcbI2m4PWKxLGjeB7nRGWILOygg+f5qJF61sgZzqt7rkBK5MG2myk5E6oBbs2Kwwx2 uN9LpVjobwn0GoGsPgEF8UNnd7bts6/yaolhyQOK6dWetlINVmLkZ15zPvvCQil57wVR jBUo4K3IpKnP2IBTMoF+Y9NTKRolu/gponGpLfPP1kmyzg/lG1yEGv4e1vxb11zV/UT3 65ew== X-Gm-Message-State: AOAM532CW18qiNH/hgH6hW1J/zAM1npjo95iuSuvinQ7wCj6kjIzPRir kOFnhorxtNgX7nNEbf7IKqvwq3yo+f0= X-Google-Smtp-Source: ABdhPJymGVkDDbFqxxNZQYlxjdtPa7ptzqGRMmXXl4eMOtE420yrq6e+8rGc5v+GCX/U/uiz9DxoJA== X-Received: by 2002:a17:906:2bc5:: with SMTP id n5mr14313293ejg.531.1621676737473; Sat, 22 May 2021 02:45:37 -0700 (PDT) Received: from ars3 ([2a02:908:2211:8540::66]) by smtp.gmail.com with ESMTPSA id yr15sm5232009ejb.16.2021.05.22.02.45.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 May 2021 02:45:37 -0700 (PDT) From: Augusto Stoffel To: bug-auctex@gnu.org Subject: Issue with font-latex-deactivated-keyword-classes Date: Sat, 22 May 2021 11:45:36 +0200 Message-ID: <87h7iv9k5b.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::632; envelope-from=arstoffel@gmail.com; helo=mail-ej1-x632.google.com 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_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) 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: -2.3 (--) I'm using the following value of `font-latex-deactivated-keyword-classes`, in order to get a more sober appearance: (setq-default font-latex-deactivated-keyword-classes '("variable" "biblatexnoarg" "biblatex" "reference" "function" "textual" "type-command" "type-declaration")) With this, I would hope to remove most font locking, and in particular everything with `font-lock-keyword-face', but keep, say, `font-latex-italic-face' and the `font-latex-sectioning-*' faces. The problem is that the above setting still adds `font-lock-keyword-face' to sectioning and font-changing commands, say "\section" and "\emph". This is not a very useful result. I would expect to be able to control the highlighting of section titles and sectioning macro names independently. A workaround in my case is to use a face remap such as (add-hook 'TeX-mode-hook (lambda () (face-remap-set-base 'font-lock-keyword-face :inherit 'font-latex-sedate-face))) but this isn't a simple customization that most users would be able to come up with. From debbugs-submit-bounces@debbugs.gnu.org Sat May 22 12:55:28 2021 Received: (at 48582) by debbugs.gnu.org; 22 May 2021 16:55:28 +0000 Received: from localhost ([127.0.0.1]:39993 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lkUuN-0005oD-N6 for submit@debbugs.gnu.org; Sat, 22 May 2021 12:55:27 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39514) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lkUuL-0005o1-PI for 48582@debbugs.gnu.org; Sat, 22 May 2021 12:55:26 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34476) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lkUuG-0001ob-Gq; Sat, 22 May 2021 12:55:20 -0400 Received: from p4fe3ec95.dip0.t-ipconnect.de ([79.227.236.149]:50527 helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lkUuG-0001Y2-11; Sat, 22 May 2021 12:55:20 -0400 From: Arash Esbati To: Augusto Stoffel Subject: Re: bug#48582: Issue with font-latex-deactivated-keyword-classes References: <87h7iv9k5b.fsf@gmail.com> Date: Sat, 22 May 2021 18:55:03 +0200 In-Reply-To: <87h7iv9k5b.fsf@gmail.com> (Augusto Stoffel's message of "Sat, 22 May 2021 11:45:36 +0200") Message-ID: <86bl92wvx4.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 48582 Cc: 48582@debbugs.gnu.org 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: -3.3 (---) Hi Augusto, Augusto Stoffel writes: > I'm using the following value of `font-latex-deactivated-keyword-classes`, > in order to get a more sober appearance: > > (setq-default font-latex-deactivated-keyword-classes > '("variable" "biblatexnoarg" "biblatex" "reference" > "function" "textual" "type-command" "type-declaration")) > > With this, I would hope to remove most font locking, and in particular > everything with `font-lock-keyword-face', but keep, say, > `font-latex-italic-face' and the `font-latex-sectioning-*' faces. > > The problem is that the above setting still adds > `font-lock-keyword-face' to sectioning and font-changing commands, say > "\section" and "\emph". This is not a very useful result. I would > expect to be able to control the highlighting of section titles and > sectioning macro names independently. AUCTeX also gives you the ability to control fontification of certain keywords. From the manual[1]: Deactivating defaults of built-in keyword classes font-latex ships with predefined lists of keywords for the classes described above. You can disable these defaults per class by customizing the variable font-latex-deactivated-keyword-classes. [...] You can also get rid of certain keywords only. For example if you want to remove highlighting of footnotes as references you can put the following stanza into your init file: (eval-after-load "font-latex" '(setq-default font-latex-match-reference-keywords-local (remove (assoc-string "footnote" font-latex-match-reference-keywords-local) font-latex-match-reference-keywords-local))) Did you try the technique described above? Best, Arash Footnotes: [1] https://www.gnu.org/software/auctex/manual/auctex.html#Fontification-of-macros From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 29 10:33:53 2021 Received: (at 48582-done) by debbugs.gnu.org; 29 Oct 2021 14:33:53 +0000 Received: from localhost ([127.0.0.1]:55565 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgSx7-0007hd-Hp for submit@debbugs.gnu.org; Fri, 29 Oct 2021 10:33:53 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48392) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mgSx6-0007hQ-99 for 48582-done@debbugs.gnu.org; Fri, 29 Oct 2021 10:33:52 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:37888) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgSx1-0004g9-1Q; Fri, 29 Oct 2021 10:33:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=s9kIX7OXDqBm6ADOFh/J8V1hFoeLol6E4fYIw43C/i8=; b=Al4hranhKYOcMNOQcqDJ 010McD/89NPyJh1vwmZo5K23MyAhRjtJvcaMDQUHnzYu1rs6F+a6B9cezd+Ru7CfspteantvPGeX6 efAeVEFJq+Rgy/QAajXcgirKTpyeS6ekyMyflw+Y+fM2Ax5UqCOvAooZ0bn5mkyuTDrGyQjd3K9ZT MtOChg3w5Xfr+d5xjvLqmxa9SZYVF5VDt6nTEr6T1nFGJMjVSQaJUVXfZ2NjCQ5YaDM6KtDLRiFyu VY750zzxETZyU81ZXbKyLqgdzQfh26LvEzkkGbPG2vVta/3cL00xoLIRhPh/9uFmp1fHDVrPbd4t3 B3W0OtQF5GCJbQ==; Received: from p5b3265dc.dip0.t-ipconnect.de ([91.50.101.220]:53323 helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mgSwz-0007II-Km; Fri, 29 Oct 2021 10:33:45 -0400 From: Arash Esbati To: Augusto Stoffel Subject: Re: bug#48582: Issue with font-latex-deactivated-keyword-classes References: <87h7iv9k5b.fsf@gmail.com> <86bl92wvx4.fsf@gnu.org> Date: Fri, 29 Oct 2021 16:32:59 +0200 In-Reply-To: <86bl92wvx4.fsf@gnu.org> (Arash Esbati's message of "Sat, 22 May 2021 18:55:03 +0200") Message-ID: <86h7cz3nqc.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 48582-done Cc: 48582-done@debbugs.gnu.org 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: -3.3 (---) Arash Esbati writes: > AUCTeX also gives you the ability to control fontification of certain > keywords. From the manual[1]: > > Deactivating defaults of built-in keyword classes > > font-latex ships with predefined lists of keywords for the classes > described above. You can disable these defaults per class by customizing > the variable font-latex-deactivated-keyword-classes. [...] > > You can also get rid of certain keywords only. For example if you want > to remove highlighting of footnotes as references you can put the > following stanza into your init file: > > (eval-after-load "font-latex" > '(setq-default > font-latex-match-reference-keywords-local > (remove (assoc-string "footnote" > font-latex-match-reference-keywords-local) > font-latex-match-reference-keywords-local))) > > Did you try the technique described above? Some weeks passed since last message. I'm closing this report for now, we can re-open it once new activities come up. Best, Arash From unknown Thu Jun 19 14:03:11 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 27 Nov 2021 12:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator