mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-05 11:45:45 +00:00
(easy-mmode-pretty-mode-name): Improve commentary.
This commit is contained in:
parent
c29d24ea5e
commit
906aee9391
@ -1,5 +1,8 @@
|
||||
2005-05-08 Eli Zaretskii <eliz@gnu.org>
|
||||
|
||||
* emacs-lisp/easy-mmode.el (easy-mmode-pretty-mode-name): Improve
|
||||
commentary.
|
||||
|
||||
* simple.el (next-error-overlay-arrow-position): Revert the change
|
||||
made on 2005-04-30.
|
||||
|
||||
|
@ -61,9 +61,11 @@
|
||||
If provided, LIGHTER will be used to help choose capitalization by,
|
||||
replacing its case-insensitive matches with the literal string in LIGHTER."
|
||||
(let* ((case-fold-search t)
|
||||
;; Produce "Foo-Bar Minor mode" from foo-bar-minor-mode.
|
||||
;; Produce "Foo-Bar minor mode" from foo-bar-minor-mode.
|
||||
(name (concat (replace-regexp-in-string
|
||||
;; "Foo-Bar-Minor" -> "Foo-Bar minor"
|
||||
;; If the original mode name included "-minor" (some
|
||||
;; of them don't, e.g. auto-revert-mode), then
|
||||
;; replace it with " minor".
|
||||
"-Minor" " minor"
|
||||
;; "foo-bar-minor" -> "Foo-Bar-Minor"
|
||||
(capitalize (replace-regexp-in-string
|
||||
|
Loading…
Reference in New Issue
Block a user