[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
feature/completion-lazy-hilit 46bedebf7cd: Tweak completion-lazy-hilit f
From: |
João Távora |
Subject: |
feature/completion-lazy-hilit 46bedebf7cd: Tweak completion-lazy-hilit feature |
Date: |
Sat, 4 Nov 2023 19:53:51 -0400 (EDT) |
branch: feature/completion-lazy-hilit
commit 46bedebf7cdb123aa59a27f3b22a8fe9a28e0a94
Author: João Távora <joaotavora@gmail.com>
Commit: João Távora <joaotavora@gmail.com>
Tweak completion-lazy-hilit feature
* lisp/minibuffer.el (completion-lazy-hilit): Make it a defvar and
rework docstring.
(completion-lazy-hilit-fn): Rework docstring.
---
lisp/minibuffer.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el
index ee0a547fe9b..9fb1fa27b33 100644
--- a/lisp/minibuffer.el
+++ b/lisp/minibuffer.el
@@ -3754,14 +3754,14 @@ one large \"hole\" and a clumped-together \"oo\" match)
higher
than the latter (which has two \"holes\" and three
one-letter-long matches).")
-(defvar-local completion-lazy-hilit nil
+(defvar completion-lazy-hilit nil
"If non-nil, request completion lazy highlighting.
Completion-presenting frontends may opt to bind this variable to
non-nil value in the context of completion-producing calls (such
as `completion-all-completions'). This hints the intervening
completion styles that they do not need to
-fontify (i.e. propertize with the `face' property) completion
+fontify (i.e. propertize with a `face' property) completion
strings with highlights of the matching parts.
When doing so, it is the frontend -- not the style -- who becomes
@@ -3780,12 +3780,12 @@ To author a completion style that takes advantage see
`completion-pcm--hilit-commonality'.")
(defvar completion-lazy-hilit-fn nil
- "Used by completions styles honoring `completion-lazy-hilit'.
+ "Function set by lazy-highlighting completions styles.
When a given style wants to enable support for
`completion-lazy-hilit' (which see), that style should set this
variable to a function of one argument, a fresh string to be
displayed to the user. The function is responsible for
-destructively highlighting the string.")
+destructively propertizing the string with a `face' property.")
(defun completion-lazy-hilit (str)
"Return a copy of completion STR that is `face'-propertized.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- feature/completion-lazy-hilit 46bedebf7cd: Tweak completion-lazy-hilit feature,
João Távora <=