aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Paul Wallington2008-06-21 20:00:04 +0000
committerJohn Paul Wallington2008-06-21 20:00:04 +0000
commita86a16098e5d2b6cbd9ed16dba9c19267d690dea (patch)
tree0810e6bd121ab38a9b5b8259e1ef74d3b9ef2398
parent536db356f95596886aa07a5ed312b2e298685d15 (diff)
downloademacs-a86a16098e5d2b6cbd9ed16dba9c19267d690dea.tar.gz
emacs-a86a16098e5d2b6cbd9ed16dba9c19267d690dea.zip
(define-derived-mode): Add `doc-string' declaration.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/emacs-lisp/derived.el3
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 @@
12008-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
12008-06-21 Chong Yidong <cyd@stupidchicken.com> 72008-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
163See Info node `(elisp)Derived Modes' for more details." 163See 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