[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#14061: 24.3.50; Globbing in completion not working correctly
From: |
Stefan Monnier |
Subject: |
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