]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix defcustom :type in replace.el (Bug#65920)
authorMauro Aranda <maurooaranda@gmail.com>
Wed, 13 Sep 2023 15:49:40 +0000 (12:49 -0300)
committerStefan Kangas <stefankangas@gmail.com>
Wed, 13 Sep 2023 16:01:41 +0000 (18:01 +0200)
* lisp/replace.el (list-matching-lines-face)
(list-matching-lines-buffer-name-face): Allow a nil value.

lisp/replace.el

index eeac734f3bd7c73949d3a193aa23e967b702bbba..6b06e48c38432a7852ae1dd34b3b11d758364226 100644 (file)
@@ -1667,13 +1667,15 @@ A positive number means to include that many lines both before and after."
 (defcustom list-matching-lines-face 'match
   "Face used by \\[list-matching-lines] to show the text that matches.
 If the value is nil, don't highlight the matching portions specially."
-  :type 'face
+  :type '(choice (const :tag "Don't highlight matching portions" nil)
+                 face)
   :group 'matching)
 
 (defcustom list-matching-lines-buffer-name-face 'underline
   "Face used by \\[list-matching-lines] to show the names of buffers.
 If the value is nil, don't highlight the buffer names specially."
-  :type 'face
+  :type '(choice (const :tag "Don't highlight buffer names" nil)
+                 face)
   :group 'matching)
 
 (defcustom list-matching-lines-current-line-face 'lazy-highlight