Hi Paul,

"Paul D. Nelson" <ultr...@gmail.com> writes:

> Hi Rahguzar
>
>> Thanks, this works for my needs. I was worried about optional arguments
>> before the mandatory ones messing up the folding but those arguments
>> actually get swallowed by the folding. With your suggestion of using
>> TeX-fold-macro-nth-arg it is possible to handle optional args that come
>> before mandatory ones which passing a 1 or (0 . 1) as spec. A bit
>> confusing but it improves on the current situation and I don't think it
>> is possible handle folding perfectly given how "flexible" syntax in
>> (La)TeX is.
>
> I'm glad it seems to be working for your needs, although I'm a bit
> confused about what else you might be asking for here, i.e., what would
> "perfect" folding like?

Something that is able to distinguish between

\begin{theorem}[My favorite theorem]

and 

\begin{equation}
[X,P]

but I really don't think that is possible except by re-implementing a
LaTeX compiler. The current situation is lot better (at least for me)
due to your effort.

Thanks!
Rahguzar

> Paul



_______________________________________________
bug-auctex mailing list
bug-auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-auctex
            • ... Rahguzar via bug-auctex via Bug reporting list for AUCTeX
              • ... Paul D. Nelson
              • ... Rahguzar via bug-auctex via Bug reporting list for AUCTeX
              • ... Paul D. Nelson
              • ... Rahguzar via bug-auctex via Bug reporting list for AUCTeX
              • ... Paul D. Nelson
              • ... Rahguzar via bug-auctex via Bug reporting list for AUCTeX
              • ... Paul D. Nelson
              • ... Rahguzar via bug-auctex via Bug reporting list for AUCTeX
              • ... Paul D. Nelson
              • ... Rahguzar via bug-auctex via Bug reporting list for AUCTeX
              • ... Paul D. Nelson
              • ... Rahguzar via bug-auctex via Bug reporting list for AUCTeX
              • ... Paul D. Nelson
              • ... Rahguzar via bug-auctex via Bug reporting list for AUCTeX
              • ... Paul D. Nelson
              • ... Ikumi Keita
              • ... Rahguzar via bug-auctex via Bug reporting list for AUCTeX
              • ... Arash Esbati
              • ... Paul D. Nelson
  • bug#78693: 14.0.... Arash Esbati

Reply via email to