From 8d8403399e263a011e21e7bc4f315c08afdc7ebe Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Thu, 2 Oct 2008 18:15:46 +0200 Subject: [PATCH] Fix bug that could push note into a child. Reported by Bernt Hansen. --- lisp/ChangeLog | 3 +++ lisp/org.el | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ac06df03a..6fc043d62 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2008-10-02 Carsten Dominik + * org.el (org-add-log-setup): Limit searc for drawers to entry + text, not to subtree. + * org-clock.el (org-clock-heading-for-remember): New variable. (org-clock-in): Set `org-clock-heading-for-remember'. diff --git a/lisp/org.el b/lisp/org.el index ea687b35f..e6981c5ed 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -8313,7 +8313,8 @@ EXTRA is additional text that will be inserted into the notes buffer." (save-excursion (when findpos (org-back-to-heading t) - (org-narrow-to-subtree) + (narrow-to-region (point) (save-excursion + (outline-next-heading) (point))) (while (re-search-forward (concat "\\(" org-drawer-regexp "\\|" org-property-end-re "\\)") (point-max) t) (forward-line)) @@ -14189,4 +14190,3 @@ Still experimental, may disappear in the future." ;; arch-tag: e77da1a7-acc7-4336-b19e-efa25af3f9fd ;;; org.el ends here - -- 2.11.4.GIT