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: Thierry Volpiatto
Subject: Re: What I'm missing when using M-x shell
Date: Mon, 15 Sep 2008 15:00:02 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

"Francis Moreau" <francis.moro@gmail.com> writes:

> On Mon, Sep 15, 2008 at 1:38 PM, Thierry Volpiatto
> <thierry.volpiatto@gmail.com> wrote:
>> "Francis Moreau" <francis.moro@gmail.com> writes:
>>
>>> On Sun, Sep 14, 2008 at 10:27 PM, Chris F.A. Johnson
>>> <cfajohnson@gmail.com> wrote:
>>>> On 2008-09-14, Francis Moreau wrote:
>>>>> no this paste the whole command line, I'm asking for the last _argument_
>>>>
>>>> (defun last-arg () "" (interactive)
>>>>  (comint-previous-input 1)
>>>>  (search-backward " ")
>>>>  (kill-line)
>>>>  (comint-next-input 2)
>>>>  (yank)
>>>> )
>>>>
>>>
>>> Even though I don't speak (yet) elisp, it does seem that if I call
>>> last-arg() several times then this yanks always the same arg...
>>>
>>> Try in an xterm to use M-. to see what I'm talkng about.
>>
>> May be what you are looking for...
>>
>> in M-x shell:
>> ,----
>> | C-c .  ==>  comint-insert-previous-argument
>> `----
>>
>
> Damn yes it is !
>
> While at it, do you have any idea if it's possible to switch between char/line
> mode in M-x shell ?

I don't know that, what is the equivalent in an xterm, and what is that
for ?

-- 
A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France




reply via email to

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