From: Anselm Helbig <anselm.helbig+news2009@googlemail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Stack of bookmarks
Date: Wed, 17 Jun 2009 11:32:09 +0200 [thread overview]
Message-ID: <87fxdztdd2.wl%anselm.helbig+news2009@googlemail.com> (raw)
In-Reply-To: <acdd1da7-e289-4aef-ab61-0f105e0bb768@r37g2000yqd.googlegroups.com>
Hi!
> Quite often while I'm browsing through source code I would like to
> remember the current position to return to it later after having
> looked for something else. I know that this can be achieved with
> bookmarks. What I would like to have is a generalization of this:
> instead of only returning once, I would like to do this recursively,
> i.e., to maintain a stack of bookmarks. So somehow like
>
> L1: push-current-location-to-bookmarks
> L2: push-current-location-to-bookmarks
> L3: push-current-location-to-bookmarks
> pop-current-location-from-bookmarks ;; arrive again at L3
> pop-current-location-from-bookmarks ;; arrive again at L2
> pop-current-location-from-bookmarks ;; arrive again at L1
>
> At the end this would be somehow similar to the "pop-tag-mark"
> command, with the difference, that I can remember and go back to
> arbitrary locations in the code. Has someone an idea?
I use pop-global-mark for this purpose, bound to C-x C-SPACE here. You
can also call it by giving a prefix argument to set-mark-command: C-u
C-SPACE.
HTH,
Anselm
--
Anselm Helbig
mailto:anselm.helbig+news2009@googlemail.com
next prev parent reply other threads:[~2009-06-17 9:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-17 8:25 Stack of bookmarks stephan.zimmer
2009-06-17 9:32 ` Anselm Helbig [this message]
2009-06-17 11:08 ` Stefan Kamphausen
2009-06-18 11:27 ` stephan.zimmer
2009-06-18 13:14 ` Stefan Kamphausen
2009-06-18 14:15 ` Drew Adams
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.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fxdztdd2.wl%anselm.helbig+news2009@googlemail.com \
--to=anselm.helbig+news2009@googlemail.com \
--cc=help-gnu-emacs@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.
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).