emacs-orgmode
[Top][All Lists]
Advanced

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

Re: Bug: org-adapt-indentation is not compatible with paragraph-indent-m


From: Ihor Radchenko
Subject: Re: Bug: org-adapt-indentation is not compatible with paragraph-indent-minor-mode [9.4.5 (9.4.5-16-g94be20-elpaplus @ /home/lockywolf/.emacs.d/elpa/org-plus-contrib-20210412/)]
Date: Sun, 29 May 2022 21:20:48 +0800

Vladimir Nikishkin <lockywolf@gmail.com> writes:

> This report is not about exporting Org code. It is perfectly fine that
> an empty line is required in org to demarcate a paragraph. The example
> above is just what I would imagine as an "ideal case".
> However, when `paragraph-indent-minor-mode` is turned on,
> `org-adapt-indentation` stops working, even though nothing else has
> changed. The text is exactly the same, and is valid org markup.

This is because paragraph-indent-minor-mode trashes major-mode settings
for indent-line-function. Org mode relies on indent-line-function to be
org-indent-line, which makes all the handling of `org-adapt-indentation'
among other things. paragraph-indent-minor-mode sets
indent-line-function to indent-to-left-margin instead of
org-indent-line.

I doubt that paragraph-indent-minor-mode can be changed in general way
to handle cases like this. Instead, it may be possible to implement
org-mode equivalent of paragraph-indent-minor-mode. Patches are welcome!

Meanwhile, paragraph-indent-minor-mode should be considered
incompatible.

Best,
Ihor



reply via email to

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