GNU bug report logs - #48518
13.0.11; LaTeX environment C-c C-e on region doesn't indent properly

Previous Next

Package: auctex;

Reported by: Berthold Lorke <berthold <at> lorke.de>

Date: Wed, 19 May 2021 10:58:02 UTC

Severity: normal

Tags: fixed

Found in version 13.0.11

Done: Ikumi Keita <ikumi <at> ikumi.que.jp>

Bug is archived. No further changes may be made.

Full log


Message #50 received at 48518 <at> debbugs.gnu.org (full text, mbox):

From: Ikumi Keita <ikumi <at> ikumi.que.jp>
To: Berthold Lorke <berthold <at> lorke.de>
Cc: 48518 <at> debbugs.gnu.org, Arash Esbati <arash <at> gnu.org>
Subject: Re: bug#48518: 13.0.11;
 LaTeX environment C-c C-e on region doesn't indent properly
Date: Fri, 03 Feb 2023 17:13:08 +0900
[Message part 1 (text/plain, inline)]
Hi Berthold, thanks for the report.

>>>>> Berthold Lorke <berthold <at> lorke.de> writes:
> Okay, I am sorry if I am bugging you (no pun intended), but I now
> still do believe there is a problem.

> I am using auctex 13.1.9.  Let us assume the following inside of a
> buffer in `tex-mode` with auctex installed.  I did this with a fresh
> Emacs, no other packages installed and no config.

I assume AUCTeX latex mode, not `tex-mode`.

> - Mark the region where I wrote `a^2 + b^2 = c^2`, that is line 7.
> - Perform `M-x LaTeX-environment`, put `equation` in the prompt, press
>   enter, and then for the next prompt press enter again.

[...]

> As you can see, it is not correctly indented.  Have tried this
> multiple times on multiple machines and so on.  Can you confirm this
> behaviour?

Indeed. This is't nice. :-(

Currenty, `LaTeX-insert-environment' doesn't indent the active region if
the environment is in `LaTeX-indent-environment-list'. I expect that it
doesn't harm if it indents. Could you try the attached patch?

Bye,
Ikumi Keita
#StandWithUkraine #StopWarInUkraine

[patch (text/x-diff, attachment)]

This bug report was last modified 2 years and 108 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.