forked from mirrors/org-mode
lisp/org.el: Fix another indentation case
* lisp/org.el (org-indent-line): With `org-adapt-indentation' set to 'headline-data, don't indent after a headline, a planning line or a drawer. Reported-by: Kévin Le Gouguec <kevin.legouguec@gmail.com> Link: https://orgmode.org/list/878s4wu9oe.fsf@gmail.com/T/#m658a98441dcce099a569ca5b228778aad5d102f3
This commit is contained in:
parent
445be13972
commit
ba9e531016
|
@ -19003,7 +19003,9 @@ Also align node properties according to `org-property-format'."
|
|||
(save-excursion
|
||||
(beginning-of-line 1)
|
||||
(skip-chars-backward "\n")
|
||||
(org-at-heading-p))))
|
||||
(or (org-at-heading-p)
|
||||
(org-at-drawer-p)
|
||||
(org-at-planning-p)))))
|
||||
(let* ((element (save-excursion (beginning-of-line) (org-element-at-point)))
|
||||
(type (org-element-type element)))
|
||||
(cond ((and (memq type '(plain-list item))
|
||||
|
|
Loading…
Reference in a new issue