From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "stephan.zimmer" Newsgroups: gmane.emacs.help Subject: Stack of bookmarks Date: Wed, 17 Jun 2009 01:25:31 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1245228070 23895 80.91.229.12 (17 Jun 2009 08:41:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Jun 2009 08:41:10 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 17 10:41:08 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MGqhf-0001Qv-JO for geh-help-gnu-emacs@m.gmane.org; Wed, 17 Jun 2009 10:41:07 +0200 Original-Received: from localhost ([127.0.0.1]:41513 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MGqhf-0006rI-0Y for geh-help-gnu-emacs@m.gmane.org; Wed, 17 Jun 2009 04:41:07 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!r37g2000yqd.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 19 Original-NNTP-Posting-Host: 212.82.36.133 Original-X-Trace: posting.google.com 1245227131 13497 127.0.0.1 (17 Jun 2009 08:25:31 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 17 Jun 2009 08:25:31 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: r37g2000yqd.googlegroups.com; posting-host=212.82.36.133; posting-account=KJs5AQoAAADGrOtd_DW54KdKddPM3pQ6 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.11) Gecko/2009060309 Ubuntu/9.04 (jaunty) Firefox/3.0.11, gzip(gfe), gzip(gfe) X-HTTP-Via: 1.1 www-proxy.absint.com:3128 (squid/2.6.STABLE18) Original-Xref: news.stanford.edu gnu.emacs.help:170107 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:65333 Archived-At: 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? Stephan