emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master 487a0be7f7: Fix tex-mode handling of _ chars in href{} comman


From: Stefan Monnier
Subject: Re: master 487a0be7f7: Fix tex-mode handling of _ chars in href{} commands
Date: Mon, 24 Jan 2022 08:42:58 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

>     Fix tex-mode handling of _ chars in href{} commands
>     
>     * lisp/textmodes/tex-mode.el (tex--current-command): New function
>     (bug#23102).
>     (tex-font-lock-suscript): Don't subscript _ chars in href.

BTW, the way this was "solved" for \cite and many other TeX commands is
by making `tex-font-lock-suscript` skip the text that has the
corresponding face applied.  So maybe what we should do is use the
`font-lock-constant-face` for \href and \ProvidesFile ?


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]