From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Holger Sparr Newsgroups: gmane.emacs.help Subject: Re: vim's jumplist equivalent in emacs? Date: Thu, 07 Dec 2006 18:07:00 +0100 Message-ID: References: <1165481183.610837.121580@79g2000cws.googlegroups.com> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1165513326 14367 80.91.229.10 (7 Dec 2006 17:42:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 7 Dec 2006 17:42:06 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 07 18:42:02 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GsNFx-0005TF-KA for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Dec 2006 18:42:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GsNFx-0001YQ-0B for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Dec 2006 12:42:01 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news1.google.com!fu-berlin.de!uni-berlin.de!news.dfncis.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 45 Original-X-Trace: news.dfncis.de ctXGEb3iMVR23VUlobh9kgPQnhO3rGaXpoPMLpECFZGTUd Mail-Copies-To: never User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:8PeuHZTD2y558aQHP4VU5t58Dss= Original-Xref: shelby.stanford.edu gnu.emacs.help:143726 Original-To: help-gnu-emacs@gnu.org 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:39328 Archived-At: On Thu, 07 Dec 2006, "Thomas" wrote: > In vim, some kind of user actions like text search, tag search or > opening new file are regarded as 'jump action'. Every position, whether > it's in one buffer or in another, before/after those jumps are > automatically recorded in 'jump list', so you can navigate > forward/backward the postions using Ctrl+O / Ctrl+I. May I find a > similar job done for emacs? The others pointed out C-u C-SPC. There is C-x C-SPC, too. ,----[ C-h k C-SPC ] | C-SPC runs the command set-mark-command | which is an interactive compiled Lisp function in `simple.el'. | It is bound to C-@, C-SPC. | (set-mark-command arg) | | Set mark at where point is, or jump to mark. | With no prefix argument, set mark, and push old mark position on local | mark ring; also push mark on global mark ring if last mark was set in | another buffer. Immediately repeating the command activates | `transient-mark-mode' temporarily. | | With argument, e.g. C-u C-@, jump to mark, and pop a new position | for mark off the local mark ring (this does not affect the global | mark ring). Use C-x C-@ to jump to a mark off the global | mark ring (see `pop-global-mark'). | | If `set-mark-command-repeat-pop' is non-nil, repeating | the C-@ command with no prefix pops the next position | off the local (or global) mark ring and jumps there. | | With a double C-u prefix argument, e.g. C-u C-u C-@, unconditionally | set mark where point is. | | Setting the mark also sets the "region", which is the closest | equivalent in Emacs to what some editors call the "selection". | | Novice Emacs Lisp programmers often try to use the mark for the wrong | purposes. See the documentation of `set-mark' for more information. | | [back] `---- --