1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-09 08:21:30 -07:00

* lisp/faces.el (read-face-name-sample-text): Add defconst (bug#53960).

(read-face-name): Use it instead of hard-coded string.
This commit is contained in:
Juri Linkov 2022-02-13 20:44:14 +02:00
parent 997dd86a9f
commit fc44bc6255

View file

@ -1065,6 +1065,9 @@ of the default face. Value is FACE."
(defvar crm-separator) ; from crm.el
(defconst read-face-name-sample-text "SAMPLE"
"Text string to display as the sample text for `read-face-name'.")
(defun read-face-name (prompt &optional default multiple)
"Read one or more face names, prompting with PROMPT.
PROMPT should not end in a space or a colon.
@ -1115,7 +1118,9 @@ returned. Otherwise, DEFAULT is returned verbatim."
(mapcar
(lambda (face)
(list face
(concat (propertize "SAMPLE" 'face face) "\t")
(concat (propertize read-face-name-sample-text
'face face)
"\t")
""))
faces))))
aliasfaces nonaliasfaces faces)