From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: [PATCH] Save location of stored remember notes when saving with org-refile Date: Fri, 14 Nov 2008 12:53:30 -0500 Message-ID: <87ljvmchyd.fsf@gollum.intra.norang.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L12ra-0004bl-43 for emacs-orgmode@gnu.org; Fri, 14 Nov 2008 12:53:46 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L12rW-0004YS-Uq for emacs-orgmode@gnu.org; Fri, 14 Nov 2008 12:53:44 -0500 Received: from [199.232.76.173] (port=59350 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L12rV-0004Wn-9l for emacs-orgmode@gnu.org; Fri, 14 Nov 2008 12:53:41 -0500 Received: from mho-02-bos.mailhop.org ([63.208.196.179]:53968) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L12rP-0002MI-Hk for emacs-orgmode@gnu.org; Fri, 14 Nov 2008 12:53:35 -0500 Received: from cpe000102d0fe75-cm0012256ecbde.cpe.net.cable.rogers.com ([99.239.148.180] helo=mail.norang.ca) by mho-02-bos.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1L12rN-000C6w-Jo for emacs-orgmode@gnu.org; Fri, 14 Nov 2008 17:53:33 +0000 Received: from gollum.intra.norang.ca (gollum.intra.norang.ca [192.168.1.5]) by mail.norang.ca (8.13.8/8.13.8/Debian-3) with ESMTP id mAEHrUAD030552 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Fri, 14 Nov 2008 12:53:31 -0500 Received: from gollum.intra.norang.ca (localhost [127.0.0.1]) by gollum.intra.norang.ca (8.14.3/8.14.3/Debian-5) with ESMTP id mAEHrUmV009215 for ; Fri, 14 Nov 2008 12:53:30 -0500 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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