From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: [PATCH] Save location of stored remember notes when saving with org-refile Date: Fri, 14 Nov 2008 22:46:14 +0100 Message-ID: <0C551759-8574-4489-B35C-BAFA1D049367@uva.nl> References: <87ljvmchyd.fsf@gollum.intra.norang.ca> Mime-Version: 1.0 (Apple Message framework v929.2) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L16Uh-00077w-HV for emacs-orgmode@gnu.org; Fri, 14 Nov 2008 16:46:23 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L16Ug-00077i-49 for emacs-orgmode@gnu.org; Fri, 14 Nov 2008 16:46:23 -0500 Received: from [199.232.76.173] (port=36851 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L16Ug-00077f-0J for emacs-orgmode@gnu.org; Fri, 14 Nov 2008 16:46:22 -0500 Received: from nf-out-0910.google.com ([64.233.182.188]:25098) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L16Uf-0007h9-1P for emacs-orgmode@gnu.org; Fri, 14 Nov 2008 16:46:21 -0500 Received: by nf-out-0910.google.com with SMTP id c7so933629nfi.26 for ; Fri, 14 Nov 2008 13:46:19 -0800 (PST) In-Reply-To: <87ljvmchyd.fsf@gollum.intra.norang.ca> 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: Bernt Hansen Cc: emacs-orgmode@gnu.org I picked the cherry and ate it. Thanks. - Carsten On Nov 14, 2008, at 6:53 PM, Bernt Hansen wrote: > 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 > > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode