From: Ihor Radchenko <yantar92@gmail.com>
To: Vladimir Nikishkin <lockywolf@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
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 [thread overview]
Message-ID: <87a6b08ogf.fsf@localhost> (raw)
In-Reply-To: <CA+A2iZZt=-OMEZR6RLBevXrs4y89rLeMLfdC05W8JPVe=Yh8QA@mail.gmail.com>
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
prev parent reply other threads:[~2022-05-29 13:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-07 4:02 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/)] Vladimir Nikishkin
2021-09-10 16:55 ` Max Nikulin
2021-09-26 6:02 ` Vladimir Nikishkin
2022-05-29 13:20 ` Ihor Radchenko [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a6b08ogf.fsf@localhost \
--to=yantar92@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=lockywolf@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.