unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Bastien <bzg@altern.org>
To: emacs-devel@gnu.org
Cc: Magnus Henoch <mange@freemail.hu>
Subject: Re: Who uses "complete word" (aka SPC) in the minibuffer and how/why
Date: Wed, 12 Mar 2008 11:29:53 +0000	[thread overview]
Message-ID: <87zlt489ji.fsf@bzg.ath.cx> (raw)
In-Reply-To: <87zlt4uas6.fsf@freemail.hu> (Magnus Henoch's message of "Tue, 11 Mar 2008 23:59:53 +0100")

Magnus Henoch <mange@freemail.hu> writes:

> I use it with M-x, especially when I want to run a command that is
> shadowed by a shorter one, e.g. customize-variable (shadowed by
> customize) and mail-add-payment-async (shadowed by mail-add-payment).
> At the end of the common part I hit SPC to get completion of the longer
> command.
>
> I could do this with the sequence TAB and '-' too, but that would be one
> extra keypress.

A reasonable behavior for minibuffer-complete could be:

(0) try to complete
(1) if (0) fails, present the list of possible completions
(2) if the previous TAB was (1), complete by selecting the 
    string which will reduce the number of completions to 
    the larger subset of the list presented in (1)

In the case Magnus describes it would lead to:

M-x cust TAB    [complete => custom]
M-x custom TAB  [display the list of possible completions]
M-x custom TAB  [complete => customize]
M-x custom TAB  [display the list of possible completions]
M-x custom- TAB [display the list of remaining completions]

... 

-- 
Bastien




  parent reply	other threads:[~2008-03-12 11:29 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-11 21:13 Who uses "complete word" (aka SPC) in the minibuffer and how/why Stefan Monnier
2008-03-11 22:59 ` Magnus Henoch
2008-03-12  1:37   ` Stefan Monnier
2008-03-12 18:12     ` Magnus Henoch
2008-03-12 11:29   ` Bastien [this message]
2008-03-21 18:39   ` Stefan Monnier
2008-03-21 18:58   ` paul r
2008-04-11 20:18     ` Stefan Monnier
2008-04-11 23:20       ` Paul Rivier
2008-04-12  5:26         ` Stefan Monnier
2008-04-12 11:23           ` Paul Rivier
2008-04-13 22:23       ` Juri Linkov
2008-03-12 11:34 ` Bastien

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=87zlt489ji.fsf@bzg.ath.cx \
    --to=bzg@altern.org \
    --cc=emacs-devel@gnu.org \
    --cc=mange@freemail.hu \
    /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).