[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 2c3b05c: lisp/emacs-lisp/derived.el (define-derived
From: |
Oleh Krehel |
Subject: |
[Emacs-diffs] master 2c3b05c: lisp/emacs-lisp/derived.el (define-derived-mode): Declare indent 3. |
Date: |
Tue, 27 Jan 2015 10:00:49 +0000 |
branch: master
commit 2c3b05c93e4884460068a12357ebd04ae4cd7446
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
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 ...")
---
lisp/ChangeLog | 4 ++++
lisp/emacs-lisp/derived.el | 3 ++-
2 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 16cb21d..2b02373 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
+2015-01-27 Oleh Krehel <address@hidden>
+
+ * emacs-lisp/derived.el (define-derived-mode): Declare indent 3.
+
2015-01-27 Katsumi Yamaoka <address@hidden>
* emacs-lisp/cl.el (cl--function-convert): Run cl--labels-convert
diff --git a/lisp/emacs-lisp/derived.el b/lisp/emacs-lisp/derived.el
index a250ea6..52da4c9 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 2c3b05c: lisp/emacs-lisp/derived.el (define-derived-mode): Declare indent 3.,
Oleh Krehel <=