[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#51762: 13.0.14; environment formating
From: |
Arash Esbati |
Subject: |
bug#51762: 13.0.14; environment formating |
Date: |
Fri, 19 Nov 2021 20:05:26 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 |
Hi Keita,
Ikumi Keita <ikumi@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
- bug#51762: 13.0.14; environment formating, (continued)
- bug#51762: 13.0.14; environment formating, Arash Esbati, 2021/11/13
- bug#51762: 13.0.14; environment formating, Ikumi Keita, 2021/11/14
- bug#51762: 13.0.14; environment formating, Arash Esbati, 2021/11/15
- bug#51762: 13.0.14; environment formating, Ikumi Keita, 2021/11/16
- bug#51762: 13.0.14; environment formating, Arash Esbati, 2021/11/17
- bug#51762: 13.0.14; environment formating, Ikumi Keita, 2021/11/17
- bug#51762: 13.0.14; environment formating, Ikumi Keita, 2021/11/18
- bug#51762: 13.0.14; environment formating, Ikumi Keita, 2021/11/18
- bug#51762: 13.0.14; environment formating, Arash Esbati, 2021/11/18
- bug#51762: 13.0.14; environment formating, Ikumi Keita, 2021/11/18
- bug#51762: 13.0.14; environment formating,
Arash Esbati <=
- bug#51762: 13.0.14; environment formating, Pierre L. Nageoire, 2021/11/20