diff options
| author | Robert Weiner | 2019-06-25 14:08:49 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-06-25 14:53:52 +0200 |
| commit | e9b05221abc7c8b440072d6600691017ffda5015 (patch) | |
| tree | 9555d92e6385b8d757d124ab0f01f6ecb2d83fb4 | |
| parent | 14fc8a108ba19c8d773df6de42f413be551c3025 (diff) | |
| download | emacs-e9b05221abc7c8b440072d6600691017ffda5015.tar.gz emacs-e9b05221abc7c8b440072d6600691017ffda5015.zip | |
Unlispify even more in custom-unlispify-menu-entry
* lisp/cus-edit.el (custom-unlispify-menu-entry): Also allow : and
/ as separators in symbols when making the symbols look more
human-readable (bug#23986).
| -rw-r--r-- | lisp/cus-edit.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el index 5fd93224f8a..0b9fb27a737 100644 --- a/lisp/cus-edit.el +++ b/lisp/cus-edit.el | |||
| @@ -552,7 +552,11 @@ value unless you are sure you know what it does." | |||
| 552 | (setq prefixes nil) | 552 | (setq prefixes nil) |
| 553 | (delete-region (point-min) (point))) | 553 | (delete-region (point-min) (point))) |
| 554 | (setq prefixes (cdr prefixes)))))) | 554 | (setq prefixes (cdr prefixes)))))) |
| 555 | (subst-char-in-region (point-min) (point-max) ?- ?\s t) | 555 | (goto-char (point-min)) |
| 556 | ;; Translate characters commonly used as delimiters between | ||
| 557 | ;; words in symbols into space; e.g. foo:bar-zot/thing. | ||
| 558 | (while (re-search-forward "[-:/]+" nil t) | ||
| 559 | (replace-match " ")) | ||
| 556 | (capitalize-region (point-min) (point-max)) | 560 | (capitalize-region (point-min) (point-max)) |
| 557 | (unless no-suffix | 561 | (unless no-suffix |
| 558 | (goto-char (point-max)) | 562 | (goto-char (point-max)) |