[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Recommendation for CAPF setup when you don't know completion string
From: |
Stefan Monnier |
Subject: |
Re: Recommendation for CAPF setup when you don't know completion string in advance |
Date: |
Tue, 11 May 2021 11:57:43 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> ;; XXX There is a small bug here, depending on interpretation. When
> ;; completing "~/emacs/master/li|/calc" where "|" is the cursor,
> ;; then the returned candidate only includes the prefix
> ;; "~/emacs/master/lisp/", but not the suffix "/calc". Default
> ;; completion has the same problem when selecting in the
> ;; *Completions* buffer.
>
> Is it non-intentional that the suffix is thrown away?
I think the answer depends on the completion-style. IIRC some
completion styles do that on purpose (in order to preserve/reproduce
the behavior of earlier completion code), whereas I seem to remember
a few cases where we may do something like that not on purpose (rather
because of a bug, or out of laziness).
Stefan