0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-08-25 00:32:54 +00:00

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

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