Re: "LaTeX-fill-paragraph" behavior for latex preamble

2023-03-15 Thread Ruiyang Wu
Hi Ikumi, Thanks for the reply. For (1), I think either way you proposed should address the issue. Maybe tree-sitter integration in Emacs 29 can help with faster parsing of latex files in the future, but I don’t know if that is feasible or in auctex’s roadmap. Denis’ workaround works fine,

Re: "LaTeX-fill-paragraph" behavior for latex preamble

2023-03-14 Thread Denis Bitouzé
Le 14/03/23 à 16h19, Ikumi Keita a écrit : > Does anyone see a good solution? Not an idea but a workaround (suggested on the present list IIRC) that I find convenient: --8<---cut here---start->8--- ;; Stay in the corresponding lines on their own (setq

Re: "LaTeX-fill-paragraph" behavior for latex preamble

2023-03-14 Thread Ikumi Keita
Hi Ruiyang, > Ruiyang Wu writes: > Currently, using "LaTeX-fill-paragraph” when point is in latex > preamble will cause unintended result, e.g., merging multiple > “\usepackage” commands into one line. IMHO, preamble should not be > filled just like those in the

"LaTeX-fill-paragraph" behavior for latex preamble

2023-03-09 Thread Ruiyang Wu
Hi, Currently, using "LaTeX-fill-paragraph” when point is in latex preamble will cause unintended result, e.g., merging multiple “\usepackage” commands into one line. IMHO, preamble should not be filled just like those in the "LaTeX-indent-environment-list”. Is it possible to make