Hi Arash, >>>>> Arash Esbati <[email protected]> writes: > Can someone please enlighten me why the environment is indented? It > seems that `indent-according-to-mode' after
> (insert TeX-esc "begin" TeX-grop environment TeX-grcl) > inside `LaTeX-insert-environment' adds the indentation, but I don't > understand why. It seems that this recent commit is responsible: ,---- | e4ceb88bb7cb4f406874de196aa71118449fe373 | Author: Arash Esbati <[email protected]> | AuthorDate: Tue Nov 22 21:10:32 2022 +0100 | Commit: Arash Esbati <[email protected]> | CommitDate: Tue Nov 22 21:10:32 2022 +0100 | | Bind a value to `LaTeX-current-environment' locally `---- When I change `LaTeX-env-args' to (defun LaTeX-env-args (environment &rest args) "Insert ENVIRONMENT and arguments defined by ARGS." ; (let ((LaTeX-current-environment environment)) (LaTeX-insert-environment environment) (LaTeX--env-parse-args args));) , indentation gets back to correct behavior. Regards, Ikumi Keita #StandWithUkraine #StopWarInUkraine
