[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] BUG & [PATCH]: org-clone-subtree-with-time-shift doesn't clean
From: |
Mike McLean |
Subject: |
[Orgmode] BUG & [PATCH]: org-clone-subtree-with-time-shift doesn't clean empty property drawers in entire subtree |
Date: |
Sat, 04 Dec 2010 12:59:43 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.14pre) Gecko/20101204 Lightning/1.0b3pre Lanikai/3.1.8pre |
If using org-clone, C-c C-x c, on a subtree instead of a single item,
the loop to call org-remove-empty-drawer-at isn't executing on every
item of the subtree. Changing the re-search-forward seems to do the trick.
Mike
---
lisp/org.el | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lisp/org.el b/lisp/org.el
index 66514a2..e5a20d3 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -7603,7 +7603,7 @@ and still retain the repeater to cover future
instances of the task."
(and idprop (if org-clone-delete-id
(org-entry-delete nil "ID")
(org-id-get-create t)))
- (while (re-search-forward org-property-drawer-re nil t)
+ (while (re-search-forward org-property-start-re nil t)
(org-remove-empty-drawer-at "PROPERTIES" (point)))
(goto-char (point-min))
(when doshift
--
1.7.3.2
- [Orgmode] BUG & [PATCH]: org-clone-subtree-with-time-shift doesn't clean empty property drawers in entire subtree,
Mike McLean <=