GNU bug report logs - #14061
24.3.50; Globbing in completion not working correctly

Previous Next

Package: emacs;

Reported by: Michael Heerdegen <michael_heerdegen <at> web.de>

Date: Tue, 26 Mar 2013 22:41:02 UTC

Severity: normal

Found in version 24.3.50

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


Message #16 received at 14061-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Michael Heerdegen <michael_heerdegen <at> web.de>
Cc: 14061-done <at> debbugs.gnu.org
Subject: Re: bug#14061: 24.3.50; Globbing in completion not working correctly
Date: Wed, 27 Mar 2013 10:41:21 -0400
> 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




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

Previous Next


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