GNU bug report logs - #51762
13.0.14; environment formating

Previous Next

Package: auctex;

Reported by: "Pierre L. Nageoire" <devel <at> pollock-nageoire.net>

Date: Thu, 11 Nov 2021 07:15:02 UTC

Severity: normal

Tags: confirmed

Found in version 13.0.14

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Arash Esbati <arash <at> gnu.org>
To: Ikumi Keita <ikumi <at> ikumi.que.jp>
Cc: "Pierre L. Nageoire" <devel <at> pollock-nageoire.net>, 51762 <at> debbugs.gnu.org
Subject: bug#51762: 13.0.14; environment formating
Date: Fri, 19 Nov 2021 20:05:26 +0100
Hi Keita,

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

> I agree it looks odd, but it seems an intended behavior. In
> `LaTeX-fill-region-as-paragraph', we have:
> ----------------------------------------------------------------------
>                   ;; Code comments and lines ending with `\par' are
>                   ;; included in filling.  Lines ending with `\\' are
>                   ;; skipped.
>                   (if (or has-code-comment
>                           (match-beginning 1))
>                       (LaTeX-fill-region-as-para-do from (point) justify-flag)
>                     (LaTeX-fill-region-as-para-do
>                      from (line-beginning-position 0) justify-flag)
>                     ;; At least indent the line ending with `\\'.
>                     (indent-according-to-mode)))
> ----------------------------------------------------------------------
> According to the comment, lines ending with `\\' are excluded from
> filling on purpose, though I'm not sure why. Perhaps for the cases
> inside environments like tabular, array, align etc.?

Ah, I see.  Sorry for missing that.  While we're at it, should we also
cater for \newline and \linebreak?  Currently, they handled as normal
macro.  It should be easy to add them to the regexp.

WDYT?

Best, Arash




This bug report was last modified 3 years and 183 days ago.

Previous Next


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