unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: "paul r" <paul.r.ml@gmail.com>, Magnus Henoch <mange@freemail.hu>
Cc: emacs-devel@gnu.org
Subject: Re: Who uses "complete word" (aka SPC) in the minibuffer and how/why
Date: Fri, 11 Apr 2008 16:18:01 -0400	[thread overview]
Message-ID: <jwvfxtsup4j.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <e30f0f320803211158i204a1843r5b3d05c1617b0837@mail.gmail.com> (paul r.'s message of "Fri, 21 Mar 2008 19:58:36 +0100")

>> 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.

> Same here, and I like it. I find it smart to use for completion a key
> that is unlikely to make sens as self-insert. And to be honest, - is a
> pain to hit on my keyboard.

So, in any case the "word" part of the completion behavior is not
something which you use?

To make it clear: minibuffer-complete-word has 2 main differences with
minibuffer-complete:
1 - if there's no completion, it tries to add a " " or a "-".
2 - it only completes a single word at a time.  E.g.

  M-x fill-region- TAB   => fill-region-as-paragraph
  M-x fill-region- SPC   => fill-region-as-

So you like 1 but you don't seem to be using 2.  Does anyone care about
the part 2 of the behavior of minibuffer-complete-word?

If not, that's great: it's the part that's nasty to implement and I'd be
happy to scrap it (or at least let it fail when it's too difficult to
make it work).


        Stefan




  reply	other threads:[~2008-04-11 20:18 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
2008-03-21 18:39   ` Stefan Monnier
2008-03-21 18:58   ` paul r
2008-04-11 20:18     ` Stefan Monnier [this message]
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=jwvfxtsup4j.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=mange@freemail.hu \
    --cc=paul.r.ml@gmail.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).