emacs-orgmode
[Top][All Lists]
Advanced

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

Re: Should page break (^L) work as paragraph element separator and be in


From: Ihor Radchenko
Subject: Re: Should page break (^L) work as paragraph element separator and be included into Org syntax? (was: [BUG] org-fill-paragraph doesn't handle ^L correctly)
Date: Wed, 28 Sep 2022 09:00:29 +0800

Max Nikulin <manikulin@gmail.com> writes:

>  > Actually ^L is a *page* separator (to be exact “FORM FEED”).
>
> I have realized that page separator for plain text is not necessary 
> paragraph separator. The same paragraph may continue on the next page. 
> It makes things more tricky. ^L should be kept on its own line while 
> text around should be wrapped.

Good point.

> However from a discussion happened a year ago I concluded that it may be 
> not so trivial to tune `org-fill-element' for special cases.
>
> Timothy. Re: [PATCH] Don't fill displayed equations. Sun, 03 Oct 2021 
> 16:50:54 +0800. https://list.orgmode.org/875yueij6r.fsf@gmail.com

Actually, it is not that much hard. At least, it is not that hard for
paragraphs.

The linked discussion had other caveats involving whether
special filling is even reasonable for the discussed elements
(AFAIR).

However, org-fill-element actually does have a special treatment for
line-break objects inside paragraphs. There is nothing preventing us
from special treatment of other types of objects in similar fashion.

In fact, we may even utilize Emacs built-ins for page break symbols
specifically. Just use fill-region instead of fill-region-as-paragraph.
Similar to https://orgmode.org/list/875yhiyxnb.fsf@localhost
It's just that I am not sure about other possible side effects of such
change.

P.S. Does LaTeX understand ^L?

-- 
Ihor Radchenko,
Org mode contributor,
Learn more about Org mode at https://orgmode.org/.
Support Org development at https://liberapay.com/org-mode,
or support my work at https://liberapay.com/yantar92



reply via email to

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