--- Begin Message ---
Subject: |
24.3.50; Globbing in completion not working correctly |
Date: |
Tue, 26 Mar 2013 23:37:29 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Hi,
In emacs -Q, eval
(require 'bytecomp) ; just for the defvar
Now
C-h v *compil*warn* TAB TAB
"byte-compile-warnings" should be among the matches, but that's not
the case.
Thanks,
Michael.
In GNU Emacs 24.3.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.4.2)
of 2013-03-17 on dex, modified by Debian
(emacs-snapshot package, version 2:20130317-1)
Windowing system distributor `The X.Org Foundation', version 11.0.10707000
System Description: Debian GNU/Linux 7.0 (wheezy)
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#14061: 24.3.50; Globbing in completion not working correctly |
Date: |
Wed, 27 Mar 2013 10:41:21 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
> Dunno what a good fix would look like. It tried
> (let* ((pre-length (length prefix))
> (suffix (completion--common-suffix
> (mapcar (lambda (comp) (substring comp pre-length))
> comps))))
> (cl-assert (stringp suffix))
> (unless (equal suffix "")
> (push suffix res)))
> which seems to work, but my insight in this code is limited.
You were right on the money. I installed a slightly refined fix, which
tries to optimize away a few cases.
Thank you,
Stefan
--- End Message ---