1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-29 08:31:35 -08:00
emacs/doc
Spencer Baugh 6412a5503c Consistently add wildcards for completion-pcm-leading-wildcard
completion-pcm--find-all-completions has two different phases:
First we turn the minibuffer text into a regex and matches
completion alternatives against it.  If that finds no matches,
then we strip some text off the completions and minibuffer text
and call ourselves recursively to find completions, then filter
the results with the removed text (converted into a regex).

Because of this, completion-pcm-leading-wildcard had
inconsistent behavior: in the second phase, the filter created
from the removed text would have a leading wildcard.  That
effectively adds wildcards in the middle of the minibuffer text
at the start of each "word".  But the first phrase created a
regex which had no such wildcards.  Thus, the two phases could
get substantially different results.

We fix this by changing completion-pcm-leading-wildcard to
consistently add a leading wildcard for each word.  This was
always my intention.

* lisp/minibuffer.el (completion-pcm--string->pattern): Include
a wildcard after each delimter with
completion-pcm-leading-wildcard. (bug#74772)
* lisp/minibuffer.el (completion-pcm-leading-wildcard): Update
docs.
* doc/emacs/mini.texi (Completion Styles): Update docs.
2024-12-26 10:42:58 +02:00
..
emacs Consistently add wildcards for completion-pcm-leading-wildcard 2024-12-26 10:42:58 +02:00
lispintro Update FSF's address 2024-09-02 21:02:09 +02:00
lispref ; * doc/lispref/modes.texi (Imenu): Fix wording and markup. 2024-12-25 20:46:14 +02:00
man Merge from origin/emacs-30 2024-12-21 07:56:08 -05:00
misc Use smarter default for erc-server-reconnect-function 2024-12-20 18:18:02 -08:00
translations ; Fix typos 2024-06-07 23:51:18 +02:00