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 f313b81841
commit d37e8a14b7
1 changed files with 3 additions and 3 deletions

View File

@ -19000,13 +19000,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))