]> git.eshelyaron.com Git - emacs.git/commitdiff
read-multiple-choice: Improve key formatting
authorStefan Kangas <stefan@marxist.se>
Mon, 27 Dec 2021 19:25:50 +0000 (20:25 +0100)
committerStefan Kangas <stefan@marxist.se>
Mon, 27 Dec 2021 19:35:00 +0000 (20:35 +0100)
* lisp/emacs-lisp/rmc.el (rmc--add-key-description): Improve
formatting of key missing in the description.  Use face help-key-name
on terminals that can't display underline.

lisp/emacs-lisp/rmc.el

index 522d395eba70eb4229c0324f7d965f0081772d12..9d5fe40f9aa46cd4f807637a4e9fb965c6fafc9f 100644 (file)
            ;; Not in the name string, or a special character.
            ((or (not pos)
                 (member desc '("ESC" "TAB" "RET" "DEL" "SPC")))
-            (format "[%s] %s"
+            (format "%s %s"
                     (if graphical-terminal
                         (propertize desc 'face 'read-multiple-choice-face)
-                      desc)
+                      (propertize desc 'face 'help-key-name))
                     name))
            ;; The prompt character is in the name, so highlight
            ;; it on graphical terminals.