unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#41905: Small change: In Customize, display name with with spaces, but keep symbol name underneath.
@ 2020-06-17  3:23 ej32u--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2020-06-17 21:20 ` Juri Linkov
                   ` (3 more replies)
  0 siblings, 4 replies; 34+ messages in thread
From: ej32u--- via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2020-06-17  3:23 UTC (permalink / raw)
  To: 41905


[-- Attachment #1.1: Type: text/plain, Size: 257 bytes --]

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.

[-- Attachment #1.2: Type: text/html, Size: 601 bytes --]

[-- Attachment #2: diff.txt --]
[-- Type: text/plain, Size: 479 bytes --]

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."

^ permalink raw reply related	[flat|nested] 34+ messages in thread

end of thread, other threads:[~2020-09-08 20:52 UTC | newest]

Thread overview: 34+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-17  3:23 bug#41905: Small change: In Customize, display name with with spaces, but keep symbol name underneath ej32u--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-06-17 21:20 ` Juri Linkov
2020-06-18 22:44   ` Juri Linkov
2020-09-05 12:00 ` Mauro Aranda
2020-09-05 12:13   ` Lars Ingebrigtsen
2020-09-05 12:12 ` Lars Ingebrigtsen
2020-09-05 12:50 ` Mauro Aranda
2020-09-05 12:56   ` Lars Ingebrigtsen
2020-09-05 13:08     ` Mauro Aranda
2020-09-05 13:12       ` Mauro Aranda
2020-09-05 13:24       ` Lars Ingebrigtsen
2020-09-05 13:48         ` Mauro Aranda
2020-09-05 13:52           ` Lars Ingebrigtsen
2020-09-05 14:16             ` Mauro Aranda
2020-09-05 14:36               ` Lars Ingebrigtsen
2020-09-05 14:58                 ` Mauro Aranda
2020-09-05 15:08                   ` Lars Ingebrigtsen
2020-09-05 15:20                   ` Lars Ingebrigtsen
2020-09-05 15:27                     ` Lars Ingebrigtsen
2020-09-05 15:07               ` Drew Adams
2020-09-05 15:31                 ` Mauro Aranda
2020-09-05 16:37                   ` Lars Ingebrigtsen
2020-09-06 12:17                   ` Lars Ingebrigtsen
2020-09-06 12:35                     ` Mauro Aranda
2020-09-06 12:39                       ` Lars Ingebrigtsen
2020-09-06 12:54                         ` Mauro Aranda
2020-09-06 18:40                           ` Juri Linkov
2020-09-07 18:22                             ` Juri Linkov
2020-09-07 19:44                               ` Mauro Aranda
2020-09-07 20:28                               ` Lars Ingebrigtsen
2020-09-08 18:33                                 ` Juri Linkov
2020-09-08 20:50                                   ` Lars Ingebrigtsen
2020-09-08 19:09                                 ` Juri Linkov
2020-09-08 20:52                                   ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).