emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [BUG] Incorrect indentation when there are invisible/diplay properti


From: Hammer Hu
Subject: Re: [BUG] Incorrect indentation when there are invisible/diplay properties on the line [9.6.7 ( @ /home/huzf/.cache/emacs_configs/default/elpa.28/org-9.6.7/)]
Date: Tue, 11 Jul 2023 13:49:10 +0000

Please change bug.el to

(add-hook 'org-mode-hook #'org-modern-mode)
(setq-default org-adapt-indentation t)

Select the region and M-x indent-region <RET> multiple times.

Best,

---------------------------------------------
From: Ihor Radchenko <yantar92@posteo.net>
Sent: 11.07.2023 13:22
To: Hammer Hu <hammer@posteo.net>
Subject: Re: [BUG] Incorrect indentation when there are invisible/diplay 
properties on the line [9.6.7 ( @ 
/home/huzf/.cache/emacs_configs/default/elpa.28/org-9.6.7/)]

[ Adding Org mailing list back to CC. Please use "reply all" ]

Hammer Hu <hammer@posteo.net> writes:

> I tried on the latest version, but the problem persists:
>
> Emacs  : GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 
> 3.24.38, cairo version 1.17.8)
>  of 2023-07-11
> Package: Org mode version 9.6.6 (release_9.6.6 @ 
> /usr/share/emacs/30.0.50/lisp/org/)

Sorry, but I am unable to reproduce.

I tried the following:

1. Create /tmp/bug.org

** A level-2 heading
something

something

#+begin_quote
a block
#+end_quote

and something

2. Create bug.el

(add-hook 'org-mode-hook #'org-indent-mode)
(add-hook 'org-mode-hook #'org-modern-mode)


3. emacs -Q -L /path/to/compat/ -L /path/to/org-modern/ -l compat -l org-modern 
-l /tmp/bug.el /tmp/bug.org

4. Select region containing the code block
5. M-x indent-region <RET>
6. Nothing happens

I tried emacs master, emacs 28, and emacs 27.

Please, provide more detailed reproducer.

-- 
Ihor Radchenko // yantar92,
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]