GNU bug report logs -
#17375
24.4.50; minibuffer completion by SPC
Previous Next
Reported by: Katsumi Yamaoka <yamaoka <at> jpl.org>
Date: Wed, 30 Apr 2014 07:51:01 UTC
Severity: normal
Found in version 24.4.50
Done: Stefan Monnier <monnier <at> iro.umontreal.ca>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 17375 in the body.
You can then email your comments to 17375 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#17375
; Package
emacs
.
(Wed, 30 Apr 2014 07:51:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Katsumi Yamaoka <yamaoka <at> jpl.org>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 30 Apr 2014 07:51:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi,
When I visit a hidden buffer (i.e., the name begins with SPC),
now I need to type:
C-x b C-q SPC bla bla...
But IIRC, C-q was not necessary till recently. Even so, SPC for
the second or later did the completion. Is there a way to get
the old behavior?
Thanks.
In GNU Emacs 24.4.50.1 (i686-pc-cygwin, GTK+ Version 3.10.7)
of 2014-04-30 on localhost
Repository revision: 117031 monnier <at> iro.umontreal.ca-20140429151607-qnkgbymwfaj5ut08
Windowing system distributor `The Cygwin/X Project', version 11.0.11501000
Configured using:
`configure --verbose --with-x-toolkit=gtk3'
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#17375
; Package
emacs
.
(Wed, 30 Apr 2014 12:45:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 17375 <at> debbugs.gnu.org (full text, mbox):
> When I visit a hidden buffer (i.e., the name begins with SPC),
> now I need to type:
> C-x b C-q SPC bla bla...
Why? What happens when you hit C-x b SPC?
Stefan
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#17375
; Package
emacs
.
(Wed, 30 Apr 2014 13:31:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 17375 <at> debbugs.gnu.org (full text, mbox):
Stefan Monnier <monnier <at> iro.umontreal.ca> wrote:
>> When I visit a hidden buffer (i.e., the name begins with SPC),
>> now I need to type:
>> C-x b C-q SPC bla bla...
> Why? What happens when you hit C-x b SPC?
It showed, as the candidates, all buffers of which the names don't
begin with SPC. (I'll verify it again on Cygwin nine hours after.)
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#17375
; Package
emacs
.
(Wed, 30 Apr 2014 13:51:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 17375 <at> debbugs.gnu.org (full text, mbox):
Katsumi Yamaoka <yamaoka <at> jpl.org> wrote:
> Stefan Monnier <monnier <at> iro.umontreal.ca> wrote:
>>> When I visit a hidden buffer (i.e., the name begins with SPC),
>>> now I need to type:
>>> C-x b C-q SPC bla bla...
>> Why? What happens when you hit C-x b SPC?
> It showed, as the candidates, all buffers of which the names don't
> begin with SPC. (I'll verify it again on Cygwin nine hours after.)
I verified that it doesn't happen on the most fresh Emacs built
on Linux.
In GNU Emacs 24.4.50.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars)
of 2014-04-30 on localhost.localdomain
Repository revision: 117034 yamaoka <at> jpl.org-20140430092109-eivcc464i01u0ogk
Windowing system distributor `Fedora Project', version 11.0.11303000
Configured using:
`configure --verbose --with-x-toolkit=lucid --without-xim
--without-selinux'
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#17375
; Package
emacs
.
(Wed, 30 Apr 2014 18:08:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 17375 <at> debbugs.gnu.org (full text, mbox):
> I verified that it doesn't happen on the most fresh Emacs built
> on Linux.
It probably depends on some particular configuration or situation.
If you bump into it again, try to see if you can reproduce it, or if it
depends on, I don't know, some particular buffer names or something.
Stefan
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#17375
; Package
emacs
.
(Thu, 01 May 2014 00:19:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 17375 <at> debbugs.gnu.org (full text, mbox):
On Wed, 30 Apr 2014 14:07:00 -0400, Stefan Monnier wrote:
>> I verified that it doesn't happen on the most fresh Emacs built
>> on Linux.
> It probably depends on some particular configuration or situation.
> If you bump into it again, try to see if you can reproduce it, or if it
> depends on, I don't know, some particular buffer names or something.
I haven't tested it with `emacs -Q', sorry. In not only that case
but also the case I launch emacs with no argument, I confirmed it
doesn't happen. But at last I found a recipe to reproduce this:
(get-buffer-create "foo-bar")
That's all!
Could you try this on `emacs -Q'? And you will see that the first
SPC for `C-x b' doesn't insert a space (I'm not quite sure if it
happens on every platform, though).
Maybe a buffer-name containing a hyphen triggers this problem.
Thanks.
In GNU Emacs 24.4.50.1 (i686-pc-cygwin, GTK+ Version 3.10.7)
of 2014-05-01 on localhost
Repository revision: 117036 rrt <at> sc3d.org-20140430213957-ilgmnyhte50ipdt2
Windowing system distributor `The Cygwin/X Project', version 11.0.11501000
Configured using:
`configure --verbose --with-x-toolkit=gtk3'
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#17375
; Package
emacs
.
(Thu, 01 May 2014 01:54:01 GMT)
Full text and
rfc822 format available.
Message #23 received at 17375 <at> debbugs.gnu.org (full text, mbox):
> (get-buffer-create "foo-bar")
> That's all!
> Could you try this on `emacs -Q'? And you will see that the first
> SPC for `C-x b' doesn't insert a space (I'm not quite sure if it
> happens on every platform, though).
> Maybe a buffer-name containing a hyphen triggers this problem.
Indeed, that's it.
It's due to the fix for http://debbugs.gnu.org/15980.
I.e. if we have buffer names " toto" and "foo-bar", then both " " and
"-" have valid completions (remember: C-x b uses substring completion),
so bug#15980 says that instead of choosing arbitrarily between " " and
"-", we should just leave the input unchanged.
I must say I dislike "word completion". Both because its behavior is
largely ill-defined (e.g. what does it mean to "complete at most
a single word" when the completion table completes "a-b-$FOO-a" to
"a-b-c-a-d-a"?), and because I'd rather leave SPC as a self-insert key.
So in this case, I'd tend to prefer reverting the fix for bug#15980, so
that " " is preferred over "-" on the premise that it makes SPC behave
a bit more like self-insert-command.
Stefan
Reply sent
to
Stefan Monnier <monnier <at> iro.umontreal.ca>
:
You have taken responsibility.
(Tue, 06 May 2014 12:49:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Katsumi Yamaoka <yamaoka <at> jpl.org>
:
bug acknowledged by developer.
(Tue, 06 May 2014 12:49:03 GMT)
Full text and
rfc822 format available.
Message #28 received at 17375-done <at> debbugs.gnu.org (full text, mbox):
> So in this case, I'd tend to prefer reverting the fix for bug#15980, so
> that " " is preferred over "-" on the premise that it makes SPC behave
> a bit more like self-insert-command.
I've just done that, thank you,
Stefan
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 04 Jun 2014 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 11 years and 13 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.