-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support completion-lazy-hilit
and completion-lazy-hilit-fn
for Emacs 30.
#153
Conversation
…acs 30. This feature allows highlighting to occur later instead of being performed by the completion style immediately. - Move logic for highlighting a single candidate from `prescient--highlight-matches` to `prescient--highlight-candidate`. - Rename `prescient--highlight-matches` to `prescient--highlight-candidates`, which now applies the new function to a list of candidates. - Keep this function to support `prescient-completion-highlight-matches`, which is now obsolete. See: - Prescient issue radian-software#152 (radian-software#152) - Emacs bug #47711 (https://debbugs.gnu.org/cgi/bugreport.cgi?bug=47711) - Emacs commit dfffb91a70532ac0021648ba692336331cbe0499 (https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=dfffb91a70532ac0021648ba692336331cbe0499), - Vertico commit b11040e1e9c1a4e5178800a0d0925aeeb72dd027 (minad/vertico@b11040e) - This Prescient PR radian-software#153 (radian-software#153).
3fe3d40
to
02c8623
Compare
…acs 30. This feature allows highlighting to occur later instead of being performed by the completion style immediately. - Move logic for highlighting a single candidate from `prescient--highlight-matches` to `prescient--highlight-candidate`. - Rename `prescient--highlight-matches` to `prescient--highlight-candidates`, which now applies the new function to a list of candidates. - Keep this function to support `prescient-completion-highlight-matches`, which is now obsolete. See: - Prescient issue radian-software#152 (radian-software#152) - Emacs bug #47711 (https://debbugs.gnu.org/cgi/bugreport.cgi?bug=47711) - Emacs commit dfffb91a70532ac0021648ba692336331cbe0499 (https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=dfffb91a70532ac0021648ba692336331cbe0499), - Vertico commit b11040e1e9c1a4e5178800a0d0925aeeb72dd027 (minad/vertico@b11040e) - This Prescient PR radian-software#153 (radian-software#153).
02c8623
to
c88fa73
Compare
…acs 30. This feature allows highlighting to occur later instead of being performed by the completion style immediately. - Move logic for highlighting a single candidate from `prescient--highlight-matches` to `prescient--highlight-candidate`. - Rename `prescient--highlight-matches` to `prescient--highlight-candidates`, which now applies the new function to a list of candidates. - Keep this function to support `prescient-completion-highlight-matches`, which is now obsolete. See: - Prescient issue radian-software#152 (radian-software#152) - Emacs bug #47711 (https://debbugs.gnu.org/cgi/bugreport.cgi?bug=47711) - Emacs commit dfffb91a70532ac0021648ba692336331cbe0499 (https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=dfffb91a70532ac0021648ba692336331cbe0499), - Vertico commit b11040e1e9c1a4e5178800a0d0925aeeb72dd027 (minad/vertico@b11040e) - This Prescient PR radian-software#153 (radian-software#153).
c88fa73
to
7e97215
Compare
…acs 30. This feature allows highlighting to occur later instead of being performed by the completion style immediately. - Move logic for highlighting a single candidate from `prescient--highlight-matches` to `prescient--highlight-candidate`. - Rename `prescient--highlight-matches` to `prescient--highlight-candidates`, which now applies the new function to a list of candidates. - Keep this function to support `prescient-completion-highlight-matches`, which is now obsolete. See: - Prescient issue radian-software#152 (radian-software#152) - Emacs bug #47711 (https://debbugs.gnu.org/cgi/bugreport.cgi?bug=47711) - Emacs commit dfffb91a70532ac0021648ba692336331cbe0499 (https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=dfffb91a70532ac0021648ba692336331cbe0499), - Vertico commit b11040e1e9c1a4e5178800a0d0925aeeb72dd027 (minad/vertico@b11040e) - This Prescient PR radian-software#153 (radian-software#153).
7e97215
to
0150eb8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we really label the variable as obsolete if it is still needed in older Emacs versions which we still support?
Perhaps it would be better to use the new variable if available, but otherwise fall back to prescient-completion-highlight-matches
, until we stop supporting versions of Emacs that don't have the new variable?
…acs 30. This feature allows highlighting to occur later instead of being performed by the completion style immediately. - Move logic for highlighting a single candidate from `prescient--highlight-matches` to `prescient--highlight-candidate`. - Rename `prescient--highlight-matches` to `prescient--highlight-candidates`, which now applies the new function to a list of candidates. - Keep this function to support `prescient-completion-highlight-matches`, which we're also keeping. See: - Prescient issue radian-software#152 (radian-software#152) - Emacs bug #47711 (https://debbugs.gnu.org/cgi/bugreport.cgi?bug=47711) - Emacs commit dfffb91a70532ac0021648ba692336331cbe0499 (https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=dfffb91a70532ac0021648ba692336331cbe0499), - Vertico commit b11040e1e9c1a4e5178800a0d0925aeeb72dd027 (minad/vertico@b11040e) - This Prescient PR radian-software#153 (radian-software#153).
0150eb8
to
b66027c
Compare
…acs 30. This feature allows highlighting to occur later instead of being performed by the completion style immediately. - Move logic for highlighting a single candidate from `prescient--highlight-matches` to `prescient--highlight-candidate`. - Rename `prescient--highlight-matches` to `prescient--highlight-candidates`, which now applies the new function to a list of candidates. - Keep this function to support `prescient-completion-highlight-matches`, which we're also keeping. See: - Prescient issue radian-software#152 (radian-software#152) - Emacs bug #47711 (https://debbugs.gnu.org/cgi/bugreport.cgi?bug=47711) - Emacs commit dfffb91a70532ac0021648ba692336331cbe0499 (https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=dfffb91a70532ac0021648ba692336331cbe0499), - Vertico commit b11040e1e9c1a4e5178800a0d0925aeeb72dd027 (minad/vertico@b11040e) - This Prescient PR radian-software#153 (radian-software#153).
b66027c
to
931d8b4
Compare
That seems reasonable to me. I tried searching for uses of it on GitHub, but didn't find any. How does it look now? |
On the other hand it may make sense to keep the variable as is, such that it always disables highlighting completely (even if
Looks good to me! |
Yea, I would just be worried because it's actually kind of uncommon for people to put their Emacs configs on the public internet, there are a lot, but probably the vast majority are just on people's laptops or private servers. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✨
This feature allows highlighting to occur later instead of being
performed by the completion style immediately.
Move logic for highlighting a single candidate from
prescient--highlight-matches
toprescient--highlight-candidate
.Rename
prescient--highlight-matches
toprescient--highlight-candidates
, which now applies the newfunction to a list of candidates.
prescient-completion-highlight-matches
, which is now obsolete.See:
Prescient issue Add support for completion-lazy-hilit #152
(Add support for completion-lazy-hilit #152)
Emacs bug #47711
(https://debbugs.gnu.org/cgi/bugreport.cgi?bug=47711)
Emacs commit dfffb91a70532ac0021648ba692336331cbe0499
(https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=dfffb91a70532ac0021648ba692336331cbe0499),
Vertico commit b11040e1e9c1a4e5178800a0d0925aeeb72dd027
(minad/vertico@b11040e)
This Prescient PR Support
completion-lazy-hilit
andcompletion-lazy-hilit-fn
for Emacs 30. #153.