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

lisp/org.el: Fix indenting of planning line

* lisp/org.el (org-indent-line): Fix indenting of planning line.
This commit is contained in:
Bastien 2021-05-15 11:00:49 +02:00
parent 7dcb1afb69
commit 99d873b9c3

View file

@ -19081,13 +19081,13 @@ Also align node properties according to `org-property-format'."
(interactive)
(unless (or (org-at-heading-p)
(and (eq org-adapt-indentation 'headline-data)
(not (org-at-clock-log-p))
(not (or (org-at-clock-log-p)
(org-at-planning-p)))
(save-excursion
(beginning-of-line 1)
(skip-chars-backward "\n")
(or (org-at-heading-p)
(looking-back ":END:.*" (point-at-bol))
(org-at-planning-p)))))
(looking-back ":END:.*" (point-at-bol))))))
(let* ((element (save-excursion (beginning-of-line) (org-element-at-point)))
(type (org-element-type element)))
(cond ((and (memq type '(plain-list item))