Subject: bug#41905: Small change: In Customize, display name with with spaces, but keep symbol name underneath.

From: [email-masked]
Date: Wed, 17 Jun 2020 03:23:30 +0000

Hello,

This patch changes custom-unlispify-menu-entry to display symbols names with the "display" text property, but to keep the symbol name underneath. This is good when using try-expand-dabbrev-all-buffers, such as when writing the init file.

Thank you.

diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el
index 1ec2708550..f5d0c69894 100644
--- a/lisp/cus-edit.el
+++ b/lisp/cus-edit.el
@@ -561,7 +561,8 @@ custom-unlispify-menu-entry
 	   (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."