all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Mario Lang <mlang@delysid.org>, emacs-devel@gnu.org
Subject: RE: SPC in completing minibuffers?
Date: Fri, 18 Apr 2014 07:12:45 -0700 (PDT)	[thread overview]
Message-ID: <a12bc2f4-766a-4875-9c9d-beaeb0dddd8c@default> (raw)
In-Reply-To: <87tx9qhkik.fsf@fx.delysid.org>

> I have hit two different instances where I needed to use C-q SPC
> to insert a blank in the minibuffer recently.
>
> One is with `insert-char', if you try to complete a unicode name
> with spaces (almost all have one).  The other is with `ert'
> when prompted for the selector.  When I try to give a tag based
> selector like (tag :foo) I need to use C-q SPC to insert the space.
> If I type a normal space, I get [No match].
>
> As a long time Emacs user I know how to work around these issues,
> but I was thinking: Aren't they really bugs?  Is it expected in
> some situations that the user needs to escape SPC in the minibuffer,
> or do we consider these as bugs?

FWIW, yes, `SPC' should self-insert in the minibuffer - as should
`?' and `C-j' (newline).  This should be a no-brainer, IMHO.

Minibuffer input with completion can be used for *all kinds*
of things.  Thinking that in most cases such input cannot contain
`SPC' etc. is overly narrow.

I proposed such self-insertion many moon ago (Icicles has had it
for a decade), but it was rejected.  I have never seen a good
argument for not self-inserting such chars.

After a long while, `SPC' was finally allowed to self-insert for
file/dir-name completion (only), though IIRC some felt that
supporting this amounts to caving in to MS Windows users.

Let's hope that your reviving the suggestion will have more luck
this time around.

As a longtime user, you know that you can easily overcome this
limitation for own use by binding `SPC' etc. in minibuffer keymaps
to whatever commands you like.  But yes, it would be better to
make Emacs behave nicely for everyone, out of the box.



      reply	other threads:[~2014-04-18 14:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-18 12:47 SPC in completing minibuffers? Mario Lang
2014-04-18 14:12 ` Drew Adams [this message]

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

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

  git send-email \
    --in-reply-to=a12bc2f4-766a-4875-9c9d-beaeb0dddd8c@default \
    --to=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=mlang@delysid.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.