* Re: master 487a0be7f7: Fix tex-mode handling of _ chars in href{} commands
[not found] ` <20220124115545.1D740C0DA30@vcs2.savannah.gnu.org>
@ 2022-01-24 13:42 ` Stefan Monnier
2022-01-24 14:19 ` Lars Ingebrigtsen
0 siblings, 1 reply; 2+ messages in thread
From: Stefan Monnier @ 2022-01-24 13:42 UTC (permalink / raw)
To: emacs-devel; +Cc: Lars Ingebrigtsen
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: master 487a0be7f7: Fix tex-mode handling of _ chars in href{} commands
2022-01-24 13:42 ` master 487a0be7f7: Fix tex-mode handling of _ chars in href{} commands Stefan Monnier
@ 2022-01-24 14:19 ` Lars Ingebrigtsen
0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2022-01-24 14:19 UTC (permalink / raw)
To: Stefan Monnier; +Cc: emacs-devel
Stefan Monnier <monnier@iro.umontreal.ca> writes:
> 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 ?
Good idea; now done.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-01-24 14:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <164302534477.23948.16558547233387704257@vcs2.savannah.gnu.org>
[not found] ` <20220124115545.1D740C0DA30@vcs2.savannah.gnu.org>
2022-01-24 13:42 ` master 487a0be7f7: Fix tex-mode handling of _ chars in href{} commands Stefan Monnier
2022-01-24 14:19 ` Lars Ingebrigtsen
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.