diff options
| author | Lars Ingebrigtsen | 2019-07-26 13:05:08 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-07-26 13:05:08 +0200 |
| commit | 3a373bc2357d5676dbb60f311fce84597a22a9bd (patch) | |
| tree | f28dbe3db2cc33732442a0dc43210613e6a6b795 | |
| parent | e2f2745eb8d6598f1aef0a4d6a2bcc3981e0f7d5 (diff) | |
| download | emacs-3a373bc2357d5676dbb60f311fce84597a22a9bd.tar.gz emacs-3a373bc2357d5676dbb60f311fce84597a22a9bd.zip | |
Minor rewording of a couple of sentences in define-derived-mode doc
* lisp/emacs-lisp/derived.el (define-derived-mode): Reword
documentation to be less whimsical (bug#26301).
| -rw-r--r-- | lisp/emacs-lisp/derived.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/derived.el b/lisp/emacs-lisp/derived.el index 6db0584b987..ef9684e9284 100644 --- a/lisp/emacs-lisp/derived.el +++ b/lisp/emacs-lisp/derived.el | |||
| @@ -126,8 +126,9 @@ DOCSTRING: an optional documentation string--if you do not supply one, | |||
| 126 | BODY: forms to execute just before running the | 126 | BODY: forms to execute just before running the |
| 127 | hooks for the new mode. Do not use `interactive' here. | 127 | hooks for the new mode. Do not use `interactive' here. |
| 128 | 128 | ||
| 129 | BODY can start with a bunch of keyword arguments. The following keyword | 129 | BODY can start with keyword arguments; the following keywords are |
| 130 | arguments are currently understood: | 130 | currently supported: |
| 131 | |||
| 131 | :group GROUP | 132 | :group GROUP |
| 132 | Declare the customization group that corresponds to this mode. | 133 | Declare the customization group that corresponds to this mode. |
| 133 | The command `customize-mode' uses this. | 134 | The command `customize-mode' uses this. |
| @@ -149,7 +150,7 @@ You could then make new key bindings for `LaTeX-thesis-mode-map' | |||
| 149 | without changing regular LaTeX mode. In this example, BODY is empty, | 150 | without changing regular LaTeX mode. In this example, BODY is empty, |
| 150 | and DOCSTRING is generated by default. | 151 | and DOCSTRING is generated by default. |
| 151 | 152 | ||
| 152 | On a more complicated level, the following command uses `sgml-mode' as | 153 | As a more complex example, the following command uses `sgml-mode' as |
| 153 | the parent, and then sets the variable `case-fold-search' to nil: | 154 | the parent, and then sets the variable `case-fold-search' to nil: |
| 154 | 155 | ||
| 155 | (define-derived-mode article-mode sgml-mode \"Article\" | 156 | (define-derived-mode article-mode sgml-mode \"Article\" |