diff options
| author | John Paul Wallington | 2008-06-21 20:00:04 +0000 |
|---|---|---|
| committer | John Paul Wallington | 2008-06-21 20:00:04 +0000 |
| commit | a86a16098e5d2b6cbd9ed16dba9c19267d690dea (patch) | |
| tree | 0810e6bd121ab38a9b5b8259e1ef74d3b9ef2398 | |
| parent | 536db356f95596886aa07a5ed312b2e298685d15 (diff) | |
| download | emacs-a86a16098e5d2b6cbd9ed16dba9c19267d690dea.tar.gz emacs-a86a16098e5d2b6cbd9ed16dba9c19267d690dea.zip | |
(define-derived-mode): Add `doc-string' declaration.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/emacs-lisp/derived.el | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2a921529949..b7ff4e56087 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2008-06-21 John Paul Wallington <jpw@pobox.com> | ||
| 2 | |||
| 3 | * emacs-lisp/derived.el (define-derived-mode): Add `doc-string' decl. | ||
| 4 | |||
| 5 | * textmodes/rst.el (rst-mode): Put docstring in right place. | ||
| 6 | |||
| 1 | 2008-06-21 Chong Yidong <cyd@stupidchicken.com> | 7 | 2008-06-21 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 8 | ||
| 3 | * startup.el (fancy-about-text, fancy-startup-tail): Increase text | 9 | * startup.el (fancy-about-text, fancy-startup-tail): Increase text |
diff --git a/lisp/emacs-lisp/derived.el b/lisp/emacs-lisp/derived.el index 13b91c8f3d3..83cb7aeee78 100644 --- a/lisp/emacs-lisp/derived.el +++ b/lisp/emacs-lisp/derived.el | |||
| @@ -162,7 +162,8 @@ The new mode runs the hook constructed by the function | |||
| 162 | 162 | ||
| 163 | See Info node `(elisp)Derived Modes' for more details." | 163 | See Info node `(elisp)Derived Modes' for more details." |
| 164 | (declare (debug (&define name symbolp sexp [&optional stringp] | 164 | (declare (debug (&define name symbolp sexp [&optional stringp] |
| 165 | [&rest keywordp sexp] def-body))) | 165 | [&rest keywordp sexp] def-body)) |
| 166 | (doc-string 4)) | ||
| 166 | 167 | ||
| 167 | (when (and docstring (not (stringp docstring))) | 168 | (when (and docstring (not (stringp docstring))) |
| 168 | ;; Some trickiness, since what appears to be the docstring may really be | 169 | ;; Some trickiness, since what appears to be the docstring may really be |