[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
Re: master 6b7ff60a5e7: Highlight the suffix in *Completions* buffer in
From:
Juri Linkov
Subject:
Re: master 6b7ff60a5e7: Highlight the suffix in *Completions* buffer in 'basic' style too
Date:
2024年6月30日 19:29:29 +0300
User-agent:
Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu)
>>> Lisp error: (wrong-type-argument number-or-marker-p nil)
>>
>> Hmm that's quite curious... I can reproduce it also without my change
>> in 56537ab0228, FWIW. AFAICT the issue is that icomplete trims the
>> prefix from completion candidates before passing them to
>> completion-lazy-hilit, while completion--hilit-from-re expects the full
>> candidate (prefix included). I'm not deeply familiar with icomplete,
>> but maybe calling completion-lazy-hilit before trimming the candidates
>> as in the diff below should do the trick?
>
> Thanks, I confirm with this change icomplete doesn't fail anymore.
I don't know what commits caused this, but there is still a regression
in another case:
0. emacs -Q
1. M-x icomplete-mode RET
2. M-x rgrep RET foo RET b
Error in post-command-hook (icomplete-post-command-hook):
(wrong-type-argument number-or-marker-p nil)