]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix the prompt in hi-lock-read-face-name
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 22 Jan 2022 11:36:29 +0000 (12:36 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 22 Jan 2022 12:14:43 +0000 (13:14 +0100)
* lisp/hi-lock.el (hi-lock-read-face-name): Fix the prompt after
recent changes (bug#53255).

lisp/hi-lock.el

index 53e6f779b319b7f2e897cb1410e3e32c3bec96f3..0a01d90cbba42abaad431a5ef3993190f8dcde9a 100644 (file)
@@ -729,10 +729,7 @@ with completion and history."
         face)
     (if (and hi-lock-auto-select-face (not current-prefix-arg))
        (setq face (or (pop hi-lock--unused-faces) (car defaults)))
-      (setq face (symbol-name
-                  (read-face-name
-                   (format-prompt "Highlight using face" (car defaults))
-                   defaults)))
+      (setq face (symbol-name (read-face-name "Highlight using face" defaults)))
       ;; Update list of un-used faces.
       (setq hi-lock--unused-faces (remove face hi-lock--unused-faces))
       ;; Grow the list of defaults.