bug-bash
[Top][All Lists]
Advanced

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

Re: M-. gives last arg. How about last-1 last-2...?


From: Dan Jacobson
Subject: Re: M-. gives last arg. How about last-1 last-2...?
Date: 14 Jul 2001 10:49:52 +0800
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

>>>>> "Matthew" == Matthew Markopoulos <m_markopoulos@altavista.com> writes:
Matthew> Dan Jacobson wrote:
>> 
>> Supposing my last command was
>> $ commmand arg1 arg2 arg3
>> 
>> ESC . will get me arg3
>> is there some key that will get me
>> arg3
>> arg2
>> arg1
>> arg0
>> upon successive hits?  If not, I'd say it would be neat.

Matthew> yank-nth-arg (M-C-y)

$ echo a b c d
a b c d
[in the following example, I do not hit RET anywhere]
Now type "echo" and hit M-C-y M-C-y M-C-y M-C-y
$ echo aaaa 
what I want is
$ echo
[I hit [some_key_sequence] and I see
$ echo d
[I hit [some_key_sequence] again and I see
$ echo c
[I hit [some_key_sequence] again and I see
$ echo b
[I hit [some_key_sequence] again and I see
$ echo a
[I hit [some_key_sequence] again and I see
$ echo echo

I don't want to be forced give arguments [as required for M-C-y] to
get what I want.  I want the action of M-. , except that I want it in
the leftward direction, instead of the upward direction, as it cruises
thru the history list.

[some_key_sequence should be better than the thumb twister M-C-y too.]
-- 
http://www.geocities.com/jidanni Tel+886-4-25854780 e-mail:restore .com.



reply via email to

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