Subject: Re: bug#48518: 13.0.11; LaTeX environment C-c C-e on region doesn't indent properly

From: Ikumi Keita <[email-masked]>
Date: Thu, 20 May 2021 21:26:49 +0900

Hi Berthold,

>>>>> Berthold Lorke <[email-masked]> writes:
> Whenever I highlight a region and do C-c C-e of any kind, the result
> will not have the text indented correctly, and the closing
> "\end{environment}" will also not be indented correctly.  Merely the
> "\begin{environment} is indented correctly.

I guess you didn't enable `auto-fill-mode'. Try `M-x auto-fill-mode' in
the document buffer and do the same thing. If it works as expected, add
(add-hook 'LaTeX-mode-hook 'turn-on-auto-fill)
or
(add-hook 'text-mode-hook 'turn-on-auto-fill)
into your init file (init.el or .emacs).

Regards,
Ikumi Keita