emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/vcomplete cbdde2fc09 61/91: Define a face for highlighting


From: ELPA Syncer
Subject: [nongnu] elpa/vcomplete cbdde2fc09 61/91: Define a face for highlighting completions
Date: Tue, 24 May 2022 15:59:09 -0400 (EDT)

branch: elpa/vcomplete
commit cbdde2fc09b5d016537a8e14ec5629fbdb985c1e
Author: Daniel Semyonov <daniel@dsemy.com>
Commit: Daniel Semyonov <daniel@dsemy.com>

    Define a face for highlighting completions
    
    * vcomplete.el (vcomplete-highlight): New face.
    (vcomplete--highlight-completion-at-point): Use 'vcomplete-highlight'.
---
 NEWS         | 4 ++++
 vcomplete.el | 6 +++++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/NEWS b/NEWS
index 64ec9b69f3..9df7f5d1bf 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,10 @@ See the end of the file for an explanation of the versioning 
scheme.
 
 * 1.1 (in development)
 
+** Add the 'vcomplete-highlight' face.
+This face is used to highlight completions. By default, it is the same
+as the built-in 'highlight' face.
+
 ** Add 'vcomplete-no-update-commands'.
 This custom variable is used to control which commands shouldn't cause
 the completions list buffer to update.
diff --git a/vcomplete.el b/vcomplete.el
index f720ee8904..2ec35db83f 100644
--- a/vcomplete.el
+++ b/vcomplete.el
@@ -101,6 +101,10 @@ Otherwise, operate according to `completion-auto-help'."
   :risky t
   :package-version '(vcomplete . 1.1))
 
+(defface vcomplete-highlight '((t :inherit highlight))
+  "Face for highlighting completions."
+  :package-version '(vcomplete . 1.1))
+
 ;;;; Completion commands:
 
 (defmacro vcomplete-with-completions-buffer (&rest body)
@@ -155,7 +159,7 @@ isn't a completion list buffer."
         (overlay-put
          (setq vcomplete--last-completion-overlay
                (make-overlay (car pos) (cdr pos)))
-         'face 'highlight)))))
+         'face 'vcomplete-highlight)))))
 
 (defun vcomplete--move-n-completions (n)
   "Move N completions in the `*Completions*' buffer."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]