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:
Nicolas Goaziou 2011-03-02 21:56:03 +00:00 committed by Bastien Guerry
parent 1e59039f8c
commit 7ac8c529f2
1 changed files with 2 additions and 2 deletions

View File

@ -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))