GNU bug report logs - #74009
14.0.6.2024-10-22_10:04:26; LaTeX-fill-environment does strange things when % is present

Previous Next

Package: auctex;

Reported by: Uwe Brauer <oub <at> mat.ucm.es>

Date: Fri, 25 Oct 2024 08:32:01 UTC

Severity: normal

Found in version 14.0.6.2024

Full log


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

From: Arash Esbati <arash <at> gnu.org>
To: Uwe Brauer <oub <at> mat.ucm.es>
Cc: Uwe Brauer via bug-auctex via Bug reporting list for AUCTeX
 <bug-auctex <at> gnu.org>, 74009 <at> debbugs.gnu.org
Subject: Re: bug#74009: 14.0.6.2024-10-22_10:04:26; LaTeX-fill-environment
 does strange things when % is present
Date: Tue, 29 Oct 2024 21:35:24 +0100
Uwe Brauer <oub <at> mat.ucm.es> writes:

>     2. I receive lately a lot of latex files, with very very long lines
>        (it seems that a lot of latex editor now support soft line
>        wrapping), emacs still struggles I use virtual-auto-fill-mode
>        from time to time but it is inferior than running auctex latex
>        fill commands. So mostly I run LaTeX-fill-section on those files,
>        and as this example indicates this can result in a sort of
>        catastrophe since emacs becomes idle but is then silently filling
>        the buffer with these
>        %
>        %
>        lines.

AUCTeX shouldn't behave like this, so we should investigate why this
happens, but OTOH, AUCTeX isn't a text formatter for all sort of strange
code.  Maybe you want to give latexindent[1] a try and see, if it does a
better job in your case.

Best, Arash

Footnotes:
[1]  https://ctan.org/pkg/latexindent




This bug report was last modified 228 days ago.

Previous Next


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