From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: C K Kashyap Newsgroups: gmane.emacs.help Subject: Re: Tips for quick jumping back and forth Date: Sun, 8 Jul 2012 08:58:42 +0530 Message-ID: References: <4FF85545.7080201@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec5299f691508d404c44918b0 X-Trace: dough.gmane.org 1341718136 21894 80.91.229.3 (8 Jul 2012 03:28:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 8 Jul 2012 03:28:56 +0000 (UTC) Cc: notbob@nothome.com, help-gnu-emacs@gnu.org To: Dmitry Gutov Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jul 08 05:28:56 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 1SniB4-0004hI-BX for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Jul 2012 05:28:54 +0200 Original-Received: from localhost ([::1]:46154 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SniB3-0001vn-3O for geh-help-gnu-emacs@m.gmane.org; Sat, 07 Jul 2012 23:28:53 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48634) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SniAx-0001vX-Cn for help-gnu-emacs@gnu.org; Sat, 07 Jul 2012 23:28:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SniAv-0006J2-0f for help-gnu-emacs@gnu.org; Sat, 07 Jul 2012 23:28:46 -0400 Original-Received: from mail-ob0-f169.google.com ([209.85.214.169]:36999) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SniAu-0006Fq-Oh for help-gnu-emacs@gnu.org; Sat, 07 Jul 2012 23:28:44 -0400 Original-Received: by obhx4 with SMTP id x4so15645689obh.0 for ; Sat, 07 Jul 2012 20:28:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=paWlWjZuakbcQtajLRe14/HiBhHV/ughWms2YQzk4q8=; b=OH+Ulctk65WjodC6XTosu5O9qZOI2eAqwDmh8MeOUzHJtz8jOT2rrC4DAeqtCf3vT8 2MnCsL86H6WxIWTDOExglcvyFKkDcwDc/03+YppKlCEhMSOWEkjfBw0d/xoP9hBt/Mqd /DcVEaR9jMYBw3NNhfrPShEq/jdvViXxwvLnPAH/SNmq7zXn4dkuKMbQlvZtS79l+iA2 o+UDDp5xNnMwptywwh8dPqYPSnProoErClMyqKi/mSqmS+lP12+WUKmX2LmkbCG0hhpn cvZFxcDfl5rFperjnjLEK0f6Hws7wtWC8QSp/EphEPvsF9VQMbfdaulk57YD3aDvHwUi tvaw== Original-Received: by 10.43.49.67 with SMTP id uz3mr18213023icb.47.1341718122530; Sat, 07 Jul 2012 20:28:42 -0700 (PDT) Original-Received: by 10.64.35.229 with HTTP; Sat, 7 Jul 2012 20:28:42 -0700 (PDT) In-Reply-To: <4FF85545.7080201@yandex.ru> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.214.169 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:85719 Archived-At: --bcaec5299f691508d404c44918b0 Content-Type: text/plain; charset=ISO-8859-1 Thank you so much all of you --- I think C- C- then C-u C- works for me The split window trick seems neat - actually very neat - One question though ... when I split the window and then move somewhere else, I would then have to switch to the other windows before making it the only one - right? Some extra key strokes seem to be involved. What I like best about Emacs is that I could've written up a script and bound to keys as Andreas suggested but I prefer to do find out if there is an "Emacs" way to do it already. Thank you all for your suggestions. I shifted to Emacs a couple of years ago (after being a Vi guy for over 10 years!) because I fell in love with functional programming (in Haskell actually). Regards, Kashyap On Sat, Jul 7, 2012 at 8:57 PM, Dmitry Gutov wrote: > notbob writes: > > > 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! > > Can vi undo just any navigation command? > > --bcaec5299f691508d404c44918b0 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thank you so much all of you ---

I think C-<SPC> C= -<SPC> then C-u C-<SPC> works for me

T= he split window trick seems neat - actually very neat - One question though= ... when I split the window and then move somewhere else, I would then hav= e to switch to the other windows before making it the only one - right? Som= e extra key strokes seem to be involved.

What I like best about Emacs is that I could've wri= tten up a script and bound to keys as Andreas suggested but I prefer to do = find out if there is an "Emacs" way to do it already.

Thank you all for your suggestions. I shifted to Emacs a cou= ple of years ago (after being a Vi guy for over 10 years!) because I fell i= n love with functional programming (in Haskell actually).

Regards,
Kashyap



On Sat, Jul 7, 2012 at 8:57 PM, Dmitry Gutov <dgutov= @yandex.ru> wrote:
notb= ob <notbob@notho= me.com> writes:

> On 2012-07-07, Francesco Mazzoli <f@mazzo.li> wrote:
>> I use `C-<SPC> C-<SPC>' to set the mark, and `C-u = C-<SPC>' to jump >> back. No registers involved.
>
> I occasionally do something stupid like hit the wrong keystroke, usual= ly
> C-e, which puts me at the end of the line. =A0I was somewhat sure ther= e
> was an equally simple keystroked to return me to where I once was
> where. =A0NO!? =A0If not, I'm bummed. =A0I thought emacs was "= ;powerful".
> Seems a simple function. =A0And by GOD, can't let vi outdo on this= !

Can vi undo just any navigation command?


--bcaec5299f691508d404c44918b0--