[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] [PATCH 2/3] When demoting a subtree, don't change level of inline ta
From: |
Nicolas Goaziou |
Subject: |
[O] [PATCH 2/3] When demoting a subtree, don't change level of inline tasks within |
Date: |
Wed, 2 Mar 2011 17:56:03 +0100 |
* 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 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/org.el b/lisp/org.el
index 6e1be76..8ae5e6f 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -7002,7 +7002,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 ()
@@ -7010,7 +7010,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))
--
1.7.4.1