bug#73302: TeX-find-closing-brace and verbatim macros

2024-09-21 Thread Arash Esbati
Ikumi Keita writes: >> Paul Nelson writes: >> As a fix, we could either: > >> (i) Do (save-restriction (widen) ...) in TeX-fold-macro-nth-arg before >> (TeX-verbatim-p). > >> (ii) Do (save-restriction (widen) ...) in LaTeX-verbatim-p. > >> The advantage of (ii) is that it arguably fixes the

bug#73302: TeX-find-closing-brace and verbatim macros

2024-09-21 Thread Paul Nelson
> @Paul: How does you change work in a file like this: > > --8<---cut here---start->8--- > \documentclass{article} > > \usepackage{fvextra} > > \begin{document} > > Vanilla \verb|LaTeX| > > With \Verb|fvextra|, or \Verb[fontsize=\scriptsize]|fvextra|. > > With \V

bug#73302: TeX-find-closing-brace and verbatim macros

2024-09-21 Thread Paul Nelson
On an unrelated note, I did encounter another issue with this change: it sporadically breaks some of the folding carried out by my package https://github.com/ultronozm/czm-tex-mint.el, due to a weird bug that I'm having trouble diagnosing. The issue concerns detecting verbatim macros in code immed

bug#73302: TeX-find-closing-brace and verbatim macros

2024-09-21 Thread Ikumi Keita
Hi Paul, > Paul Nelson writes: > The issue concerns detecting verbatim macros in code immediately after > moving out of an mmm-mode block in a LaTeX buffer. There is a TODO entry in syntax.el which says ;; - interaction with mmm-mode. , so maybe syntax-related facilities including syntax-pps