diff options
| author | Eli Zaretskii | 2005-05-08 19:39:20 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2005-05-08 19:39:20 +0000 |
| commit | 906aee93915154417fa2b78d6fa6a869f7f1c71f (patch) | |
| tree | 38323f458086dd9b33a279da582bea82fd602b4b | |
| parent | c29d24ea5e332075074765346d20f24ef25d2e77 (diff) | |
| download | emacs-906aee93915154417fa2b78d6fa6a869f7f1c71f.tar.gz emacs-906aee93915154417fa2b78d6fa6a869f7f1c71f.zip | |
(easy-mmode-pretty-mode-name): Improve commentary.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/emacs-lisp/easy-mmode.el | 6 |
2 files changed, 7 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c5c345d9c0c..f7255a505aa 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2005-05-08 Eli Zaretskii <eliz@gnu.org> | 1 | 2005-05-08 Eli Zaretskii <eliz@gnu.org> |
| 2 | 2 | ||
| 3 | * emacs-lisp/easy-mmode.el (easy-mmode-pretty-mode-name): Improve | ||
| 4 | commentary. | ||
| 5 | |||
| 3 | * simple.el (next-error-overlay-arrow-position): Revert the change | 6 | * simple.el (next-error-overlay-arrow-position): Revert the change |
| 4 | made on 2005-04-30. | 7 | made on 2005-04-30. |
| 5 | 8 | ||
diff --git a/lisp/emacs-lisp/easy-mmode.el b/lisp/emacs-lisp/easy-mmode.el index 94db7cc586f..a02f7be7d13 100644 --- a/lisp/emacs-lisp/easy-mmode.el +++ b/lisp/emacs-lisp/easy-mmode.el | |||
| @@ -61,9 +61,11 @@ | |||
| 61 | If provided, LIGHTER will be used to help choose capitalization by, | 61 | If provided, LIGHTER will be used to help choose capitalization by, |
| 62 | replacing its case-insensitive matches with the literal string in LIGHTER." | 62 | replacing its case-insensitive matches with the literal string in LIGHTER." |
| 63 | (let* ((case-fold-search t) | 63 | (let* ((case-fold-search t) |
| 64 | ;; Produce "Foo-Bar Minor mode" from foo-bar-minor-mode. | 64 | ;; Produce "Foo-Bar minor mode" from foo-bar-minor-mode. |
| 65 | (name (concat (replace-regexp-in-string | 65 | (name (concat (replace-regexp-in-string |
| 66 | ;; "Foo-Bar-Minor" -> "Foo-Bar minor" | 66 | ;; If the original mode name included "-minor" (some |
| 67 | ;; of them don't, e.g. auto-revert-mode), then | ||
| 68 | ;; replace it with " minor". | ||
| 67 | "-Minor" " minor" | 69 | "-Minor" " minor" |
| 68 | ;; "foo-bar-minor" -> "Foo-Bar-Minor" | 70 | ;; "foo-bar-minor" -> "Foo-Bar-Minor" |
| 69 | (capitalize (replace-regexp-in-string | 71 | (capitalize (replace-regexp-in-string |