emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] [PATCH] Save location of stored remember notes when saving wit


From: Bernt Hansen
Subject: [Orgmode] [PATCH] Save location of stored remember notes when saving with org-refile
Date: Fri, 14 Nov 2008 12:53:30 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

This sets the bookmark org-remember-last-stored to the location
of the stored remember note when it is filed using C-1 C-c C-c
(the org-refile interface)

Both org-refile-last-stored and org-remember-last-stored bookmarks
will point at the same place after saving the remember buffer.

This makes jumping to the last stored remember note more consistent
---

This patch is available on the git://git.norang.ca/org-mode repository
 on the 'for-carsten' branch.  There are multiple commits here - just
 cherry pick any that you like.

-Bernt

 lisp/org-remember.el |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/lisp/org-remember.el b/lisp/org-remember.el
index 068ae28..41927f3 100644
--- a/lisp/org-remember.el
+++ b/lisp/org-remember.el
@@ -769,6 +769,10 @@ See also the variable `org-reverse-note-order'."
                 (not fastp))
        (org-refile nil (or visiting (find-file-noselect file)))
        (and visitp (run-with-idle-timer 0.01 nil 
'org-remember-visit-immediately))
+       (save-excursion
+         (bookmark-jump "org-refile-last-stored")
+         (bookmark-set "org-remember-last-stored")
+         (move-marker org-remember-last-stored-marker (point)))
        (throw 'quit t))
       ;; Find the file
       (if (not visiting) (find-file-noselect file))
-- 
1.6.0.4.608.ga9645





reply via email to

[Prev in Thread] Current Thread [Next in Thread]