From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kai.grossjohann@gmx.net (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.help Subject: Tip of the day: buffer navigation with global mark Date: Sat, 05 Apr 2003 22:39:50 +0200 Organization: University of Duisburg, Germany Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <847ka8isq1.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1049575683 4298 80.91.224.249 (5 Apr 2003 20:48:03 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 5 Apr 2003 20:48:03 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 05 22:47:59 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 191uZz-00016n-00 for ; Sat, 05 Apr 2003 22:47:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 191uXc-0006eD-03 for gnu-help-gnu-emacs@m.gmane.org; Sat, 05 Apr 2003 15:45:32 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!uni-berlin.de!p50877d83.dip.t-dialin.NET!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 16 Original-NNTP-Posting-Host: p50877d83.dip.t-dialin.net (80.135.125.131) Original-X-Trace: fu-berlin.de 1049575303 7495037 80.135.125.131 (16 [73968]) Mail-Copies-To: never User-Agent: Gnus/5.090018 (Oort Gnus v0.18) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:LvT2tNdEJYAseTr8Ghl2QlhcuiM= Original-Xref: shelby.stanford.edu gnu.emacs.help:111706 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:8207 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:8207 It is well known that you can do C-SPC at various spots in a buffer, and subsequently, C-u C-SPC takes you back. (Repeat to go further back.) Kinda like the web browser history. But it is less well known, I think, that the global mark ring exists and can be navigated in a similar manner. If the previous mark was set in another buffer, C-SPC also pushes mark on the global mark ring. This can be used with C-x C-@ to jump back to it. So you can do C-SPC, then go to another buffer and do stuff. Then later on, C-x C-@ will go back to the original buffer. It might land you in the wrong spot, though. But C-u C-SPC will cure that. -- A preposition is not a good thing to end a sentence with.