GNU bug report logs - #12331
24.1; completing-read when COLLECTION has exactly one element

Previous Next

Package: emacs;

Reported by: "Roland Winkler" <winkler <at> gnu.org>

Date: Sun, 2 Sep 2012 01:40:02 UTC

Severity: normal

Found in version 24.1

Fixed in version 24.3

Done: "Roland Winkler" <winkler <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: "Roland Winkler" <winkler <at> gnu.org>
Cc: 12331 <at> debbugs.gnu.org
Subject: bug#12331: 24.1; completing-read when COLLECTION has exactly one element
Date: Mon, 03 Sep 2012 09:42:34 -0400
> chosen it deliberately. If nonethless we ask the user what he or she
> wants even though there is only one choice available, it much
> reminds of one of my least favorite operating systems.

The motivation sounds good, but the minibuffer prompt always offers one
more choice, i.e. C-g.  So accepting the only choice without prompting
might end up being a bit too eager in some cases.

> But maybe such a scenario is all in all not too common in the world
> of Emacs to justify a modification of completing-read.

I think so, yes.  So I suggest you look for callers where that could be
used, and if they are common enough, we could consider adding a special
value of `require-match' which would allow such a short-circuiting.


        Stefan




This bug report was last modified 12 years and 248 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.