Display name with with spaces, but keep symbol name underneath
authorej-32u <ej32u@protonmail.com>
Sat, 5 Sep 2020 12:12:22 +0000 (14:12 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 5 Sep 2020 12:12:22 +0000 (14:12 +0200)
* lisp/cus-edit.el (custom-unlispify-menu-entry): Display the
pretty name, but keep the real symbol name as the value (bug#41905).

Copyright-paperwork-exempt: yes

lisp/cus-edit.el

index 23ceb3a857affeb94d79446af529d853c9d5e990..59ac52f0a4035270e4fe386b2fdb10ca88f3a9be 100644 (file)
@@ -561,7 +561,8 @@ value unless you are sure you know what it does."
           (unless no-suffix
             (goto-char (point-max))
             (insert "..."))
-          (buffer-string)))))
+          (propertize (symbol-name symbol)
+                       'display (buffer-string))))))
 
 (defcustom custom-unlispify-tag-names t
   "Display tag names as words instead of symbols if non-nil."