From a86a16098e5d2b6cbd9ed16dba9c19267d690dea Mon Sep 17 00:00:00 2001 From: John Paul Wallington Date: Sat, 21 Jun 2008 20:00:04 +0000 Subject: [PATCH] (define-derived-mode): Add `doc-string' declaration. --- lisp/ChangeLog | 6 ++++++ lisp/emacs-lisp/derived.el | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2a921529949..b7ff4e56087 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,9 @@ +2008-06-21 John Paul Wallington + + * emacs-lisp/derived.el (define-derived-mode): Add `doc-string' decl. + + * textmodes/rst.el (rst-mode): Put docstring in right place. + 2008-06-21 Chong Yidong * 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 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 -- 2.39.2