From 7ac8c529f27ff3f933d6399860798ffa3061e0e6 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Wed, 2 Mar 2011 21:56:03 +0000 Subject: [PATCH] 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. --- lisp/org.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index 60e88f6f0..267ac2ecf 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -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))