GNU bug report logs -
#71419
30.0.50; Completion does not always highlight the "common part" corresponding to suffix
Previous Next
Reported by: Dmitry Gutov <dmitry <at> gutov.dev>
Date: Fri, 7 Jun 2024 22:38:01 UTC
Severity: normal
Found in version 30.0.50
Done: Stefan Kangas <stefankangas <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el
> index f62cb2566b2..144cda8cfdc 100644
> --- a/lisp/minibuffer.el
> +++ b/lisp/minibuffer.el
> @@ -3816,7 +3816,7 @@ completion-basic-all-completions
> 'point
> (substring afterpoint 0 (cdr bounds)))))
> (all (completion-pcm--all-completions prefix pattern table pred)))
> - (completion-hilit-commonality all point (car bounds))))
> + (completion-pcm--hilit-commonality pattern all)))
>
> ;;; Partial-completion-mode style completion.
Thanks for tracking it down. It matches my expectation.
> But it would have been nice to be able to use it in the "progressive
> improvement" kind of fashion: when the suffix and the other parts are
> highlighted correctly, we do the right thing; if the style missed the
> suffix highlighting, we do the other thing - and put the responsibility on
> the third party.
🙂
Stefan
This bug report was last modified 79 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.