emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[BUG] org-fill-paragraph doesn't handle ^L correctly [9.5.4 (release_9.5


From: Matt Beshara
Subject: [BUG] org-fill-paragraph doesn't handle ^L correctly [9.5.4 (release_9.5.4-19-g4dff42 @ /home/matt/Code/emacs/lisp/org/)]
Date: Sun, 25 Sep 2022 09:39:59 +1000
User-agent: mu4e 1.9.0; emacs 29.0.50

‘org-fill-paragraph’ does not correctly handle ^L characters (a.k.a. form feed, C-q C-l). It should treat them as paragraph separating whitespace, but instead treats them as any other character which would appear in normal text. Here is an example to demonstrate the current behaviour:

abc def
^L
ghi jkl

In org-mode, with point at the beginning or the end of the first or last line, doing ‘org-fill-paragraph’ (M-q) should do nothing, because the lines are already shorter than the fill-column. What really happens is that I end up with one line which looks like:

abc def ^L def ghi

In text-mode, ‘fill-paragraph’ does handle ^L characters correctly, and pressing M-q anywhere in the first example results in no change being made to the buffer.

Emacs : GNU Emacs 29.0.50 (build 2, x86_64-pc-linux-gnu, X toolkit, cairo version 1.17.6)
of 2022-08-27
Package: Org mode version 9.5.4 (release_9.5.4-19-g4dff42 @ /home/matt/Code/emacs/lisp/org/)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]