Hi, all,

I have a lot of plain lists arranged as follows:

1. Foo
:HIDDEN:

:END:
2. Bar
...

org-lint issues such warnings:

     9 nil   Bullet counter "2. " is not the same with item position 1.  
Consider adding manual [@2] counter.

So the drawers should be indented.

Well, there is org-indent-drawer, but it does not work as I expect
since commit af300bd5b, as I can see.

Place the cursor at the beginning of the first line of the drawer and
execute the org-indent-drawer command. The drawer is still unindented,
dispite the misleading "Drawer at point indented" message. Have been
tested on many Org and Emacs versions, including current development
ones.

Workaround: insert at least one space at the beginning of the line and
org-indent-drawer will work all out.

1. Foo
 :HIDDEN:

:END:
2. Bar
...

M-x org-indent-drawer

The result, as expected:

1. Foo
   :HIDDEN:

   :END:
2. Bar
...

It seems to be a bug in org--get-expected-indentation.

If it is not a bug, but intended behaviour, what is the proper way to
indent drawers in plain lists?

-- 
WBR, Vins Xiro

Reply via email to