emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: comint: 'C-c RET' changed unfavorabily


From: Martin Maechler
Subject: Re: comint: 'C-c RET' changed unfavorabily
Date: Thu, 1 Sep 2005 17:22:12 +0200

>>>>> "Nick" == Nick Roberts <address@hidden>
>>>>>     on Fri, 2 Sep 2005 02:35:16 +1200 writes:
>>>>> "Nick" == Nick Roberts <address@hidden>
>>>>>     on Fri, 2 Sep 2005 02:35:16 +1200 writes:

    >> I've just found that in emacs 22, the  key  'C-c RET' is bound
    >> to something quite different than it used to be for many years
    >> in previous emacsen.  For me and my fingers which are trained to use
    >> C-c RET subconsciously almost, the new behavior is quite a pain:
    >> 
    >> Emacs 21.4 {from inside *shell* opened by M-x shell} :
    >> 
    >> C-c RET runs the command comint-copy-old-input
    Nick> ...
    >> 
    >> Emacs 22 (version details below; from inside *shell* opened by M-x 
shell} :
    >> 
    >> C-c RET (translated from C-c <return>) runs the command 
comint-insert-input

    Nick> The two functions overlap (they both retrieve earlier
    Nick> input).  Can you give a simple example of how you use
    Nick> comint-copy-old-input in a way that doesn't work with
    Nick> comint-insert-input?

Sure; assuming M-x shell, i.e. buffer *shell*
Use a few commands  ('ls', 'pwd', 'cd ..' etc)
Now type C-c C-p at least once: This moves 'point' to one of the
previous input lines;
now  C-c RET  doesn't do anything in emacs 22, but it did what I
have used it for, in Emacs <= 21.x ,
namely 
- copies the input line to the end of your *shell* buffer
- moves 'point' (and scrolls if necessary) at the *end* of this line

such that another <return> simply would submit this line as a
new line of input.  The practical use is that I often slightly
change the line before resubmitting.

Is that sufficient?

Regards,
Martin




reply via email to

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