unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Juri Linkov'" <juri@jurta.org>
Cc: 13334@debbugs.gnu.org
Subject: bug#13334: 24.3.50; enhancement request: `C-0 M-n' reverses order of defaults
Date: Wed, 2 Jan 2013 16:49:29 -0800	[thread overview]
Message-ID: <D6F573E66041444393C61DCF900518AB@us.oracle.com> (raw)
In-Reply-To: <87ip7fyuuc.fsf@mail.jurta.org>

> > The enhancement would be to let a zero prefix arg (e.g. 
> > `C-0') reverse the list of available default values and
> > then go to the first one (previously the last one).
> > So you could cycle among the defaults in the opposite order.
> 
> Much more useful would be to display a complete list of suggestions,
> so the users would be able to select the necessary element easily.
> 
> This is how it works in web browsers: a drop-down list with 
> suggestions is displayed where you can use up/down-arrow keys to select 
> the suggestion.
> Web browsers combine two types of lists into one suggestion box:
> previously entered elements from the history and new suggestions
> (often based on popular searches).
> 
> In Emacs the keybinding that works like this is <prior> or M-v
> (`switch-to-completions').  But currently it doesn't display 
> suggestions.  It could be enhanced to sort completions and put
> suggestions on the top of the *Completions* list.

No, please do not do any such thing.  Please keep *Completions* separate.  Do
not mix such "suggestions" or past inputs with completion candidates.

Simply adding the default value(s) to the history is enough, provided you also
do what is done in Icicles: provide a minibuffer key (available always, not just
during completion) that lets you complete against the history list.  I use `M-o'
for this (by default).

You can pull any number of history elements into the same minibuffer input you
are composing, any number of times.  And you can use completion to access the
history elements.  (And they are kept separate from the completion candidates of
the parent minibuffer - you are completing only against history elements.)

http://www.emacswiki.org/emacs/Icicles_-_History_Enhancements#InsertPreviousInpu
ts

If you want to move beyond the existing M-n, M-p, M-s, M-r for vanilla Emacs,
then please consider using an enhancement like the Icicles M-o.






  reply	other threads:[~2013-01-03  0:49 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-02  4:55 bug#13334: 24.3.50; enhancement request: `C-0 M-n' reverses order of defaults Drew Adams
2013-01-03  0:27 ` Juri Linkov
2013-01-03  0:49   ` Drew Adams [this message]
2013-01-03 23:51     ` Juri Linkov
2013-01-04  0:40       ` Drew Adams
2016-04-28 19:18 ` Lars Ingebrigtsen
2016-04-29 14:36   ` Drew Adams
2016-04-29 22:04 ` Michael Heerdegen
2016-04-29 22:47   ` Drew Adams
2016-04-30 10:35     ` Michael Heerdegen
2016-04-30 15:22       ` Drew Adams

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=D6F573E66041444393C61DCF900518AB@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=13334@debbugs.gnu.org \
    --cc=juri@jurta.org \
    /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).