unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Andreas Schwab <schwab@suse.de>
To: Ed Avis <eda@waniasset.com>
Cc: 16740@debbugs.gnu.org
Subject: bug#16740: 24.2; Please allow C-p and C-n in minibuffer
Date: Thu, 13 Feb 2014 12:22:21 +0100	[thread overview]
Message-ID: <mvmiosj1clu.fsf@hawking.suse.de> (raw)
In-Reply-To: <7E039918541B4C4183BFDB8F015C743065ACC6@WCL-EXCH02.wcl.local> (Ed Avis's message of "Thu, 13 Feb 2014 11:04:12 +0000")

Ed Avis <eda@waniasset.com> writes:

> I think the best way to resolve it is to make C-p and C-n work in
> the Emacs minibuffer to get the previous and next lines from the
> history, just as M-p and M-n do.  Since the minibuffer is almost
> always a single line of text, the bindings to previous-line and
> next-line aren't helpful in the minibuffer.

IMHO it should be rather the other way round, and bash/readline should
be changed.  When editing a multiline minibuffer then C-n/C-p should
just navigate within it.  In readline there doesn't seem to be a way to
go to the previous line of a multiline buffer except by horizonal
movement over the newline, which is annoying.

Note that in Emacs the cursor keys already work like M-n/M-p.

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."





  reply	other threads:[~2014-02-13 11:22 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-13 11:04 bug#16740: 24.2; Please allow C-p and C-n in minibuffer Ed Avis
2014-02-13 11:22 ` Andreas Schwab [this message]
2014-02-13 11:26 ` Dani Moncayo
2014-02-13 11:32   ` Ed Avis
2014-02-13 11:41     ` Dani Moncayo
2014-02-13 13:46 ` Stefan Monnier
2014-02-13 13:59   ` Ed Avis
2014-02-13 14:44   ` Drew Adams
2014-02-13 14:53     ` Dani Moncayo
2014-02-13 16:03     ` Stefan Monnier
2021-12-25  6:28       ` Stefan Kangas
2021-12-25  9:05         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-12-25 18:30         ` Juri Linkov
2021-12-25 21:53           ` Stefan Kangas
2021-12-26  7:41             ` Juri Linkov
2021-12-26 11:56               ` Lars Ingebrigtsen
2021-12-26 17:28                 ` Juri Linkov
2021-12-29  3:05                   ` Stefan Kangas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=mvmiosj1clu.fsf@hawking.suse.de \
    --to=schwab@suse.de \
    --cc=16740@debbugs.gnu.org \
    --cc=eda@waniasset.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).