* bug#23986: 25.0.94: Patch to make custom-unlispify-menu-entry handle : and / in symbol names
@ 2016-07-14 16:40 Robert Weiner
2019-06-25 12:09 ` Lars Ingebrigtsen
0 siblings, 1 reply; 2+ messages in thread
From: Robert Weiner @ 2016-07-14 16:40 UTC (permalink / raw)
To: 23986
[-- Attachment #1: Type: text/plain, Size: 193 bytes --]
Many Emacs Lisp packages use : or / characters to delimit symbol name
spaces within symbol names. This patch handles these characters when
customize unlispifies a symbol name for display.
Bob
[-- Attachment #2: cus-edit.el.patch --]
[-- Type: application/octet-stream, Size: 772 bytes --]
*** cus-edit-orig.el.gz 2016-07-14 12:35:23.000000000 -0400
--- cus-edit.el.gz 2016-07-14 12:35:23.000000000 -0400
***************
*** 558,564 ****
(setq prefixes nil)
(delete-region (point-min) (point)))
(setq prefixes (cdr prefixes))))))
! (subst-char-in-region (point-min) (point-max) ?- ?\s t)
(capitalize-region (point-min) (point-max))
(unless no-suffix
(goto-char (point-max))
--- 558,566 ----
(setq prefixes nil)
(delete-region (point-min) (point)))
(setq prefixes (cdr prefixes))))))
! (goto-char (point-min))
! (while (re-search-forward "[-:/]+" nil t)
! (replace-match " "))
(capitalize-region (point-min) (point-max))
(unless no-suffix
(goto-char (point-max))
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#23986: 25.0.94: Patch to make custom-unlispify-menu-entry handle : and / in symbol names
2016-07-14 16:40 bug#23986: 25.0.94: Patch to make custom-unlispify-menu-entry handle : and / in symbol names Robert Weiner
@ 2019-06-25 12:09 ` Lars Ingebrigtsen
0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2019-06-25 12:09 UTC (permalink / raw)
To: Robert Weiner; +Cc: rswgnu, 23986
Robert Weiner <rsw@gnu.org> writes:
> Many Emacs Lisp packages use : or / characters to delimit symbol name
> spaces within symbol names. This patch handles these characters when
> customize unlispifies a symbol name for display.
Makes sense; I've now applied the patch to the Emacs trunk.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-06-25 12:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-14 16:40 bug#23986: 25.0.94: Patch to make custom-unlispify-menu-entry handle : and / in symbol names Robert Weiner
2019-06-25 12:09 ` Lars Ingebrigtsen
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.