Re: LaTeX-current-environment in macrocode environment

2022-03-15 Thread Arash Esbati
Hi Keita, Ikumi Keita writes: >> Arash Esbati writes: >> Our current implementation for `LaTeX-current-environment' doesn't >> recognize the env ' foo3 ' -- note that spaces and other non-letter >> characters are allowed in env names. > > Oh, I didn't know that... I can't tell if this is a

Re: LaTeX-current-environment in macrocode environment

2022-03-13 Thread Ikumi Keita
Hi Arash, > Arash Esbati writes: > Our current implementation for `LaTeX-current-environment' doesn't > recognize the env ' foo3 ' -- note that spaces and other non-letter > characters are allowed in env names. Oh, I didn't know that... > Hence, my suggestion for the change looks like this:

Re: LaTeX-current-environment in macrocode environment

2022-03-12 Thread Arash Esbati
Arash Esbati writes: > Thanks for the feedback. My current suggestion to fix this is the > following change: Following up myself, another issue occurred to me. Please consider this valid LaTeX code: --8<---cut here---start->8--- \documentclass[a4paper]{arti

Re: LaTeX-current-environment in macrocode environment

2022-03-11 Thread Arash Esbati
Jan Braun writes: >> Am 10.03.2022 um 15:30 schrieb Arash Esbati : > >> The `current-indentation' never happens inside macrocode environment >> because it's not recognized. I haven't looked into details (yet), but >> can others confirm this behavior? > > I can confirm this behaviour. Thanks for

Re: LaTeX-current-environment in macrocode environment

2022-03-10 Thread Jan Braun
Hi Arash, > Am 10.03.2022 um 15:30 schrieb Arash Esbati : […] > The `current-indentation' never happens inside macrocode environment > because it's not recognized. I haven't looked into details (yet), but > can others confirm this behavior? I can confirm this behaviour. Bye Jan

LaTeX-current-environment in macrocode environment

2022-03-10 Thread Arash Esbati
Hi all, while looking at the current code of doc.el, it does the following: (add-to-list (make-local-variable 'LaTeX-indent-environment-list) '("macrocode" current-indentation) t) Now take this small example as foo.dtx and eval the forms: --8<---cut here