diff options
author | Nicolas Goaziou <n.goaziou@gmail.com> | 2011-03-02 21:56:03 +0000 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2011-03-06 09:30:06 +0100 |
commit | 7ac8c529f27ff3f933d6399860798ffa3061e0e6 (patch) | |
tree | 9c651e169398af77b488b3b4a16b4cbd77c73d18 | |
parent | 1e59039f8cf93830f930f7dc99117c41586552e9 (diff) | |
download | org-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.el | 4 |
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)) |