help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: What I'm missing when using M-x shell


From: Francis Moreau
Subject: Re: What I'm missing when using M-x shell
Date: Sun, 14 Sep 2008 22:41:01 +0200

On Sun, Sep 14, 2008 at 10:28 PM, Francis Moreau <francis.moro@gmail.com> wrote:
> On Sun, Sep 14, 2008 at 8:55 PM, Barry Margolin <barmar@alum.mit.edu> wrote:
>> In article <mailman.19222.1221417839.18990.help-gnu-emacs@gnu.org>,
>>  Thierry Volpiatto <thierry.volpiatto@gmail.com> wrote:
>>>
>>> <C-up> runs the command comint-previous-input
>>
>> But that yanks the whole command line, not just the last argument.
>>
>
> Actually thinking about it, it should be quite easy to achieve this:
> just create a key binding to evaluate "!$<TAB>" sequence.
>

well to be more accurate we should create 'something' that evaluate to

!-1:$

when call for the first time.

If a second call is done without any <RETURN> key press then evaluate to

!-2:$

etc...

Though I dunno how to write that in elisp..
-- 
Francis




reply via email to

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