summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorJohn Paul Wallington <jpw@pobox.com>2008-06-21 20:00:04 +0000
committerJohn Paul Wallington <jpw@pobox.com>2008-06-21 20:00:04 +0000
commita86a16098e5d2b6cbd9ed16dba9c19267d690dea (patch)
tree0810e6bd121ab38a9b5b8259e1ef74d3b9ef2398 /lisp/emacs-lisp
parent536db356f95596886aa07a5ed312b2e298685d15 (diff)
downloademacs-a86a16098e5d2b6cbd9ed16dba9c19267d690dea.tar.gz
emacs-a86a16098e5d2b6cbd9ed16dba9c19267d690dea.tar.bz2
emacs-a86a16098e5d2b6cbd9ed16dba9c19267d690dea.zip
(define-derived-mode): Add `doc-string' declaration.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/derived.el3
1 files changed, 2 insertions, 1 deletions
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
See Info node `(elisp)Derived Modes' for more details."
(declare (debug (&define name symbolp sexp [&optional stringp]
- [&rest keywordp sexp] def-body)))
+ [&rest keywordp sexp] def-body))
+ (doc-string 4))
(when (and docstring (not (stringp docstring)))
;; Some trickiness, since what appears to be the docstring may really be