Hi Ikumi,
OK, let me know how the attached looks.
By the way, to clear up some of the confusion I expressed in an
earlier message, I don't know whether a macro can have multiple
verbatim arguments (some of which may be optional), and if so, then I
don't know whether (LaTeX-verbatim-macro-boundari
Hi again,
I noticed just now that my patch can break the folding of
\end{verbatim} environments when called via TeX-fold-region. Steps to
reproduce:
1. After loading AUCTeX and tex-fold, evaluate
(add-to-list 'TeX-fold-macro-spec-list '(identity ("end")))
2. Create a LaTeX file containing
Hi Paul,
> Paul Nelson writes:
>> (Actually, AUCTeX has generic function `TeX-verbatim-p', but only LaTeX
>> mode has meaningful implementation for it.)
> According to the documentation, TeX-verbatim-p always returns nil
> outside LaTeX-mode, so it seems to me that to fix the issue you raise
Hi Paul,
> Paul Nelson writes:
> I took another look just now, and the fix to allow string specs was
> simpler than I had thought. The attached patch suffices for my
> practical purposes, but I'll confess that I don't know all the ways
> verbatim arguments can appear in macros.
TeX-fold-mod
Hi Ikumi,
Sure, I'd be happy to work on this.
> TeX-fold-mode is supposed to run in none-LaTeX-mode buffers, so
> `LaTeX-verbatim-p' should be wrapped with some conditional using
> `derived-mode-p'. Can you work on it?
>
> (Actually, AUCTeX has generic function `TeX-verbatim-p', but only LaTeX
>