emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@science.uva.nl>
To: Bernt Hansen <bernt@norang.ca>
Cc: emacs-orgmode@gnu.org
Subject: Re: [PATCH] Save location of stored remember notes when saving with org-refile
Date: Fri, 14 Nov 2008 22:46:14 +0100	[thread overview]
Message-ID: <0C551759-8574-4489-B35C-BAFA1D049367@uva.nl> (raw)
In-Reply-To: <87ljvmchyd.fsf@gollum.intra.norang.ca>

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

      reply	other threads:[~2008-11-14 21:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-14 17:53 [PATCH] Save location of stored remember notes when saving with org-refile Bernt Hansen
2008-11-14 21:46 ` Carsten Dominik [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0C551759-8574-4489-B35C-BAFA1D049367@uva.nl \
    --to=dominik@science.uva.nl \
    --cc=bernt@norang.ca \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).