GNU bug report logs -
#22324
25.0.50; completion-category-defaults style doesn't override completion-styles (gets prepended instead)
Previous Next
Full log
Message #111 received at 22324 <at> debbugs.gnu.org (full text, mbox):
On 28.01.2022 18:59, Stefan Monnier via Bug reports for GNU Emacs, the
Swiss army knife of text editors wrote:
> Dmitry Gutov [2022-01-28 04:37:36] wrote:
>> On 26.01.2022 15:36, Stefan Monnier via Bug reports for GNU Emacs, the Swiss
>> army knife of text editors wrote:
>>> We can probably have our cake and eat it too by adding a `fail`
>>> completion style. Such a style would always take responsibility
>>> (i.e. would never return nil to delegate to subsequent styles), but
>>> would always return a "useless" value that gives no completions.
>> *If* we did end up adding such style, would the default value of
>> completion-category-defaults include 'fail' at the end of its every line?
> No, since the fallback was chosen specifically for
> `completion-category-defaults`, we'd want to keep it for the cases that
> are already present at least.
Depends on how you look at it: out of 6 entries in there currently, I
added two of them, and since I was unaware of the fallback mechanism, it
wasn't quite intentional. Even if certain edge cases ended up using the
fallback to their benefit.
Knowing that now, I would probably rewrite those
completion-category-defaults to include all styles that would be tried
explicitly (meaning, add 'partial-completion' after 'substring').
This bug report was last modified 3 years and 105 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.