Skip to content

Weird behavior when org-adapt-indentation is set #144

Description

@hammerfunctor

Thanks for your work on this great package! I found some weird things on the cooperation between org, indent-region and org-modern and have no idea whether its a feature or a bug.

When org-adapt-indentation (a built-in variable) is set, indent-region is expected to indent heading, text and blocks to their correct level like this:

** A level-2 heading
   something

   something

   #+begin_quote
   a block
   #+end_quote

   and something

But when org-modern is turned on in this buffer, indent-region makes the region:

** A level-2 heading
   something

   something

            #+begin_quote
a block
            #+end_quote

and something

Every time I run indent-region, the block tag got indented once more, but the text after a block just remain unchanged.

Currently what I can do is define a function to turn off org-modern, indent and then turn on org-modern, and bind C-M-\ to it. Blocks get indented accordingly at this time, though they shouldn't.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions