When demoting a subtree, don't change level of inline tasks within
* lisp/org.el (org-demote-subtree,org-promote-subtree): wrap org-map-tree into org-with-limited-levels macro, so it avoids operating on inline tasks.
This commit is contained in:
parent
1e59039f8c
commit
7ac8c529f2
|
@ -7012,7 +7012,7 @@ When a subtree is being promoted, the hook will be called for each node.")
|
|||
See also `org-promote'."
|
||||
(interactive)
|
||||
(save-excursion
|
||||
(org-map-tree 'org-promote))
|
||||
(org-with-limited-levels (org-map-tree 'org-promote)))
|
||||
(org-fix-position-after-promote))
|
||||
|
||||
(defun org-demote-subtree ()
|
||||
|
@ -7020,7 +7020,7 @@ See also `org-promote'."
|
|||
See also `org-promote'."
|
||||
(interactive)
|
||||
(save-excursion
|
||||
(org-map-tree 'org-demote))
|
||||
(org-with-limited-levels (org-map-tree 'org-demote)))
|
||||
(org-fix-position-after-promote))
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue