bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

previous-history-restore-cursor-position


From: Dan Jacobson
Subject: previous-history-restore-cursor-position
Date: 01 Mar 2001 09:02:06 +0800
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

Say you are doing lots of

$ grep Spee /tmp/modem.log.*
$ grep Nois /tmp/modem.log.*
$ grep Far /tmp/modem.log.*
$ grep near /tmp/modem.log.*
$ grep Near /tmp/modem.log.*

And you don't want to have to move the cursor back from the end of
line each time to adjust an inner field.

Ok, I tried keyboard macro C-@ RET C-p C-x C-x
But I think the C-@ messed it up.  [Sorry, C-SPC is for Chinese input
instead and can't be used.]

Anyways, if you think this is useful, I've already written the
description for you:
------------------
Might be a useful addition: A command that would be like the current

       previous-history (C-p)
              Fetch the previous command from the  history  list,
              moving back in the list.

But instead:

       previous-history-restore-cursor-position
              Fetch the previous command from the  history  list,
              moving back in the list.  Place the cursor on the
              position it was in when the user entered the command.

Well at least remember back one position in the list.
--------------------
Or maybe have the behaviour of cursor placement on C-p be controlled by
a set -o something... naw.

Or maybe have the behaviour of C-o when at the end of the history list
return the cursor to where it was when I hit RET... maybe

Maybe C-j... naw
-- 
http://www.geocities.com/jidanni Tel886-4-25854780 e-mail:restore .com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]