summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <n.goaziou@gmail.com>2011-03-02 21:56:03 +0000
committerBastien Guerry <bzg@altern.org>2011-03-06 09:30:06 +0100
commit7ac8c529f27ff3f933d6399860798ffa3061e0e6 (patch)
tree9c651e169398af77b488b3b4a16b4cbd77c73d18
parent1e59039f8cf93830f930f7dc99117c41586552e9 (diff)
downloadorg-mode-7ac8c529f27ff3f933d6399860798ffa3061e0e6.tar.gz
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.
-rw-r--r--lisp/org.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/org.el b/lisp/org.el
index 60e88f6..267ac2e 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))