GNU bug report logs -
#48582
Issue with font-latex-deactivated-keyword-classes
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 48582 in the body.
You can then email your comments to 48582 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-auctex <at> gnu.org
:
bug#48582
; Package
auctex
.
(Sat, 22 May 2021 09:46:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Augusto Stoffel <arstoffel <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-auctex <at> gnu.org
.
(Sat, 22 May 2021 09:46:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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.
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#48582
; Package
auctex
.
(Sat, 22 May 2021 16:56:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 48582 <at> debbugs.gnu.org (full text, mbox):
Hi Augusto,
Augusto Stoffel <arstoffel <at> gmail.com> 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
Reply sent
to
Arash Esbati <arash <at> gnu.org>
:
You have taken responsibility.
(Fri, 29 Oct 2021 14:34:03 GMT)
Full text and
rfc822 format available.
Notification sent
to
Augusto Stoffel <arstoffel <at> gmail.com>
:
bug acknowledged by developer.
(Fri, 29 Oct 2021 14:34:03 GMT)
Full text and
rfc822 format available.
Message #13 received at 48582-done <at> debbugs.gnu.org (full text, mbox):
Arash Esbati <arash <at> gnu.org> 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
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 27 Nov 2021 12:24:08 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 122 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.