bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#41905: Small change: In Customize, display name with with spaces, bu


From: Lars Ingebrigtsen
Subject: bug#41905: Small change: In Customize, display name with with spaces, but keep symbol name underneath.
Date: Tue, 08 Sep 2020 22:52:55 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Juri Linkov <juri@linkov.net> writes:

> Actually, you are right - destructive construction of strings is simpler:
>
> (let* ((name (symbol-name 'fill-column))
>        (text (replace-regexp-in-string
>               "\\b[a-z]"
>               (lambda (c) (propertize c 'display (upcase c)))
>               (replace-regexp-in-string
>              "[-:/]+"
>                (lambda (c) (propertize c 'display " "))
>                name))))
>   (insert text))

Makes sense to me.  Perhaps we should back out the fix I made here, and
add this one...  hm...  on the other hand, I think perhaps just doing
both is even better.  That is, do this to the prettified string, but
still add the 'data property.  So this would be a fix for bug#400.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

[Prev in Thread] Current Thread [Next in Thread]