0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-29 22:07:49 +00:00

lisp/org.el: Indent list items in drawers correctly

* lisp/org.el (org-fixup-indentation): Indent list items in drawers
correctly, by respecting existing relative indentation.
This commit is contained in:
Bastien Guerry 2021-04-27 08:37:32 +02:00
parent 37f291ac08
commit 43f6ced0da

View file

@ -7393,7 +7393,9 @@ Assume point is at a heading or an inlinetask beginning."
(col (+ (current-indentation) diff)))
(when (wholenump col)
(while (< (point) end-marker)
(indent-line-to col)
(if (natnump diff)
(insert (make-string diff 32))
(delete-char (abs diff)))
(forward-line)))))
(catch 'no-shift
(when (or (zerop diff) (not (eq org-adapt-indentation t)))