[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Please accept M-p as well as C-p
From: |
Chet Ramey |
Subject: |
Re: Please accept M-p as well as C-p |
Date: |
Thu, 13 Feb 2014 10:18:43 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 |
On 2/13/14 6:35 AM, Ed Avis wrote:
> Bash accepts the Emacs keybinding C-p to go back in the history, and C-n to
> go forward.
> But most of the time in Emacs (when using its minibuffer) the keys you use
> are Meta-p
> and Meta-n, or on a modern PC keyboard Alt-p and Alt-n.
I am not convinced that Alt-p and Alt-n are any more widely used than C-p
and C-n, but in any event, it's easy to bind whatever key sequence those
key combinations produce to the same editing functions as C-p and C-n.
I would further argue that the number of people using an emacs minibuffer
to run their shell commands is a small fraction of the total number of
bash users. The folks doing that are more than capable of adding a key
binding or two.
> Currently entering M-p at the bash prompt gives some control characters.
Because that key sequence is unbound. Take the key sequence that you see
and bind it to previous-history, e.g.,
"\e[A":previous-history
(where \e is ESC, or meta)
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/
- Please accept M-p as well as C-p, Ed Avis, 2014/02/13
- Re: Please accept M-p as well as C-p, Pierre Gaston, 2014/02/13
- Re: Please accept M-p as well as C-p,
Chet Ramey <=
- RE: Please accept M-p as well as C-p, Ed Avis, 2014/02/13
- Re: Please accept M-p as well as C-p, Chet Ramey, 2014/02/13
- Re: Please accept M-p as well as C-p, Andreas Schwab, 2014/02/13
- Re: Please accept M-p as well as C-p, Chet Ramey, 2014/02/13
- Re: Please accept M-p as well as C-p, Andreas Schwab, 2014/02/13
- Re: Please accept M-p as well as C-p, Bob Proulx, 2014/02/13
- Re: Please accept M-p as well as C-p, Andreas Schwab, 2014/02/14
- Re: Please accept M-p as well as C-p, Chet Ramey, 2014/02/17
- Re: Please accept M-p as well as C-p, Linda Walsh, 2014/02/22