summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/derived.el
diff options
context:
space:
mode:
authorOleh Krehel <ohwoeowho@gmail.com>2015-01-27 10:48:40 +0100
committerOleh Krehel <ohwoeowho@gmail.com>2015-01-27 10:48:40 +0100
commit2c3b05c93e4884460068a12357ebd04ae4cd7446 (patch)
tree1c0fe866ad0f8155fd907b80c75373bf8e06f09b /lisp/emacs-lisp/derived.el
parent589094a48966583f6b428d89807f504f5401b4ed (diff)
downloademacs-2c3b05c93e4884460068a12357ebd04ae4cd7446.tar.gz
lisp/emacs-lisp/derived.el (define-derived-mode): Declare indent 3.
Now, e.g. `indent-sexp' will produce: (define-derived-mode outline-mode text-mode "Outline" "Set ...") instead of: (define-derived-mode outline-mode text-mode "Outline" "Set ...")
Diffstat (limited to 'lisp/emacs-lisp/derived.el')
-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 a250ea60d21..52da4c99eaf 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))
- (doc-string 4))
+ (doc-string 4)
+ (indent 3))
(when (and docstring (not (stringp docstring)))
;; Some trickiness, since what appears to be the docstring may really be