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

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

[elpa] externals/mct 86ae024 1/2: Remove needless faces for line numbers


From: ELPA Syncer
Subject: [elpa] externals/mct 86ae024 1/2: Remove needless faces for line numbers
Date: Wed, 17 Nov 2021 04:57:20 -0500 (EST)

branch: externals/mct
commit 86ae02469f89c658c54a3754e44012700b06b65b
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Remove needless faces for line numbers
    
    Those were carried over from earlier versions of the code, when I was
    still testing the idea of remapping faces locally (we were doing the
    same for hl-line-mode until it was replaced by a bespoke overlay in
    commit b4eadd8).
---
 mct.el | 24 ------------------------
 1 file changed, 24 deletions(-)

diff --git a/mct.el b/mct.el
index 9bf6dd2..e91434a 100644
--- a/mct.el
+++ b/mct.el
@@ -227,37 +227,13 @@ NOTE that setting this option with `setq' requires a 
restart of
   "Face for current candidate in the completions' buffer."
   :group 'mct)
 
-(defface mct-line-number
-  '((default :inherit default)
-    (((class color) (min-colors 88) (background light))
-     :background "#f2eff3" :foreground "#252525")
-    (((class color) (min-colors 88) (background dark))
-     :background "#151823" :foreground "#dddddd")
-    (t :inverse-video t))
-  "Face for line numbers in the completions' buffer."
-  :group 'mct)
-
-(defface mct-line-number-current-line
-  '((default :inherit default)
-    (((class color) (min-colors 88) (background light))
-     :background "#8ac7ff" :foreground "#000000")
-    (((class color) (min-colors 88) (background dark))
-     :background "#142a79" :foreground "#ffffff")
-    (t :inverse-video t))
-  "Face for current line number in the completions' buffer."
-  :group 'mct)
-
 (declare-function display-line-numbers-mode "display-line-numbers")
-(declare-function face-remap-remove-relative "face-remap" (cookie))
 
 (defun mct--display-line-numbers ()
   "Set up line numbers for the completions' buffer.
 Add this to `completion-list-mode-hook'."
   (when (and (derived-mode-p 'completion-list-mode)
              mct-show-completion-line-numbers)
-    (face-remap-add-relative 'line-number 'mct-line-number)
-    (face-remap-add-relative 'line-number-current-line
-                             'mct-line-number-current-line)
     (display-line-numbers-mode 1)))
 
 ;; Thanks to Omar AntolĂ­n Camarena for recommending the use of



reply via email to

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