1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-15 09:47:20 +00:00

Comment on last change to define-derived-mode

* lisp/emacs-lisp/derived.el (define-derived-mode): Add comment.
This commit is contained in:
Leo Liu 2016-03-01 11:50:11 +08:00
parent 7c1e6ebfcb
commit b6d6304179

View File

@ -162,7 +162,13 @@ 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)
;; Ask not what
;;(indent 3)
;; can do for you, ask what it can do to others. IOW, the
;; missing of indentation setting here is the indentation
;; setting and not an oversight.
)
(when (and docstring (not (stringp docstring)))
;; Some trickiness, since what appears to be the docstring may really be