GNU bug report logs - #77054
Completion highlighting applied outside completion-lazy-hilit-fn

Previous Next

Package: emacs;

Reported by: João Guerra <joca.bt <at> gmail.com>

Date: Sun, 16 Mar 2025 15:28:01 UTC

Severity: normal

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 77054 <at> debbugs.gnu.org (full text, mbox):

From: João Távora <joaotavora <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: João Guerra <joca.bt <at> gmail.com>, 77054 <at> debbugs.gnu.org
Subject: Re: bug#77054: Completion highlighting applied outside
 completion-lazy-hilit-fn
Date: Tue, 18 Mar 2025 22:32:47 +0000
On Sun, Mar 16, 2025 at 3:52 PM Eli Zaretskii <eliz <at> gnu.org> wrote:

> > Steps to reproduce (Emacs 30.1):
> > - emacs -Q
> > - Load:
> >     - https://github.com/minad/vertico/
> >     - https://github.com/lewang/flx/
> >     - https://gist.github.com/joca-bt/356ba1201c4fe842144e19ee1c723c28/
> > - Eval:
> >    - (vertico-mode t)
> >    - (setopt completion-styles '(flx))
>
> Thank you for your report.
>
> Adding João Távora, the original author of this feature, to the
> discussion.

Hi (and hi João! nice to hear from you and know you're still an Emacs
user)

Anyway, this was about 1,5 years agora and I'm afraid I don't have
the  details in my mental cache nor do I have the time to test this
complex setup.  AFAIK this feature has been in Emacs at least for
a full major version cycle (29) and had it failed in its basic mission
we would have heard about it.  I also remember testing it thoroughly.

It's important to note that completion-lazy-highlight-fn is not the only
variable involved in this scheme.  There is another:
completion-lazy-hilit.  I don't see it mentioned in this report. Both
need to be set for lazy highlighting to take place and actually save work.

completion-lazy-hilit is to be set by the frontend: (that would be vertico?)
while c-lazy-hilit-fn is set by the style.  At least according to the
docstrings
I wrote at the time, and which I suggest reading.

HTH,
João




This bug report was last modified 104 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.