[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fontification of kernel macros
From: |
Ikumi Keita |
Subject: |
Re: Fontification of kernel macros |
Date: |
Thu, 27 Jan 2022 20:23:04 +0900 |
Hi Arash,
>>>>> Arash Esbati <arash@gnu.org> writes:
> it occurred to me that there are kernel macros where AUCTeX doesn't
> provide fontification for. I'd like to improve this a little. I'm
> attaching a list of macros which I'm aware of, and how I think they
> should be added to font-latex.el. Please have a look at it and let me
> know if things are missing or should be fontified differently.
Thanks for raising this issue.
1. I think it'a good chance to consider to include fontification for
font specifying command in math mode such as \mathbf, \mathit etc. also,
as proposed previously:
https://lists.gnu.org/r/auctex-devel/2018-04/msg00014.html
2. \qbezier accepts one optional argument, so its entry for font-latex
should be ("qbezier" "[(((") .
3. \savebox has different syntax in picture environment like
\begin{picture}(100,80)
\savebox{\someboxname}(80,10)[b]{%
...
}
...
\end{picture}
(But maybe we should avoid making the regexp for \savebox too complex
and just leave such \savebox inside picture env.)
4. (Topic not related directly to Arash's proposal) Current
font-latex-built-in-keyword-classes has an entry ("verb" "*") in
"textual" class. Is this meaningful? It seems that \verb and \verb*
are treated independently by syntactic fontification and this entry has
no effect.
Bye,
Ikumi Keita