From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: Tips for quick jumping back and forth Date: Fri, 20 Jul 2012 07:02:58 -0600 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1342789363 27389 80.91.229.3 (20 Jul 2012 13:02:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 20 Jul 2012 13:02:43 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 20 15:02:42 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SsCqw-00051A-7n for geh-help-gnu-emacs@m.gmane.org; Fri, 20 Jul 2012 15:02:42 +0200 Original-Received: from localhost ([::1]:56340 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SsCqv-0006DL-Jx for geh-help-gnu-emacs@m.gmane.org; Fri, 20 Jul 2012 09:02:41 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43319) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SsCqo-0006CX-9n for help-gnu-emacs@gnu.org; Fri, 20 Jul 2012 09:02:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SsCqn-0005eB-0H for help-gnu-emacs@gnu.org; Fri, 20 Jul 2012 09:02:34 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:43306) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SsCqm-0005e3-Q8 for help-gnu-emacs@gnu.org; Fri, 20 Jul 2012 09:02:32 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SsCqi-0004j7-Bm for help-gnu-emacs@gnu.org; Fri, 20 Jul 2012 15:02:28 +0200 Original-Received: from c-71-237-25-24.hsd1.co.comcast.net ([71.237.25.24]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 20 Jul 2012 15:02:28 +0200 Original-Received: from kevin.d.rodgers by c-71-237-25-24.hsd1.co.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 20 Jul 2012 15:02:28 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 25 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-71-237-25-24.hsd1.co.comcast.net User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:85954 Archived-At: On 7/7/12 8:44 AM, notbob wrote: > On 2012-07-07, Francesco Mazzoli wrote: >> >> I use `C- C-' to set the mark, and `C-u C-' to jump back. No >> registers involved. > > I occasionally do something stupid like hit the wrong keystroke, usually > C-e, which puts me at the end of the line. I was somewhat sure there > was an equally simple keystroked to return me to where I once was > where. NO!? If not, I'm bummed. I thought emacs was "powerful". > Seems a simple function. And by GOD, can't let vi outdo on this! buffer-undo-list can record the position before the inadvertant command so that C-x u would move you back, but the movement commands don't take advantage of that feature. C-h v buffer-undo-list: ... An entry of the form POSITION indicates that point was at the buffer location given by the integer. Undoing an entry of this form places point at POSITION. -- Kevin Rodgers Denver, Colorado, USA