summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/cl-macs.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2012-05-17 21:46:20 -0400
committerStefan Monnier <monnier@iro.umontreal.ca>2012-05-17 21:46:20 -0400
commitb581bb5c8ac2aed4a610097aaaca4a8d354fe9b4 (patch)
tree3fac722bbeb0fdf55dc40e414732a3867f29c9e1 /lisp/emacs-lisp/cl-macs.el
parent70b8ef8f7855b9983d17731acad2fdfb4fb2a5be (diff)
downloademacs-b581bb5c8ac2aed4a610097aaaca4a8d354fe9b4.tar.gz
emacs-b581bb5c8ac2aed4a610097aaaca4a8d354fe9b4.tar.bz2
emacs-b581bb5c8ac2aed4a610097aaaca4a8d354fe9b4.zip
* lisp/emacs-lisp/lisp-mode.el (doc-string-elt): Move those properties to
their respective macro declarations. * lisp/skeleton.el (define-skeleton): * lisp/progmodes/compile.el (define-compilation-mode): * lisp/ibuf-macs.el (define-ibuffer-sorter, define-ibuffer-op) (define-ibuffer-filter): * lisp/emacs-lisp/generic.el (define-generic-mode): * lisp/emacs-lisp/easy-mmode.el (define-minor-mode) (define-globalized-minor-mode): * lisp/emacs-lisp/cl-macs.el (defun*, defmacro*, defstruct, deftype): * lisp/emacs-lisp/byte-run.el (defsubst): * lisp/custom.el (deftheme): Add doc-string metadata.
Diffstat (limited to 'lisp/emacs-lisp/cl-macs.el')
-rw-r--r--lisp/emacs-lisp/cl-macs.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/cl-macs.el b/lisp/emacs-lisp/cl-macs.el
index 441ae55758c..c547a4f6460 100644
--- a/lisp/emacs-lisp/cl-macs.el
+++ b/lisp/emacs-lisp/cl-macs.el
@@ -227,6 +227,7 @@ and BODY is implicitly surrounded by (block NAME ...).
cl-declarations-or-string
[&optional ("interactive" interactive)]
def-body))
+ (doc-string 3)
(indent 2))
(let* ((res (cl-transform-lambda (cons args body) name))
(form (list* 'defun name (cdr res))))
@@ -279,6 +280,7 @@ and BODY is implicitly surrounded by (block NAME ...).
\(fn NAME ARGLIST [DOCSTRING] BODY...)"
(declare (debug
(&define name cl-macro-list cl-declarations-or-string def-body))
+ (doc-string 3)
(indent 2))
(let* ((res (cl-transform-lambda (cons args body) name))
(form (list* 'defmacro name (cdr res))))
@@ -2587,7 +2589,8 @@ one keyword is supported, `:read-only'. If this has a non-nil
value, that slot cannot be set via `setf'.
\(fn NAME SLOTS...)"
- (declare (debug
+ (declare (doc-string 2)
+ (debug
(&define ;Makes top-level form not be wrapped.
[&or symbolp
(gate
@@ -2854,7 +2857,7 @@ value, that slot cannot be set via `setf'.
(defmacro deftype (name arglist &rest body)
"Define NAME as a new data type.
The type name can then be used in `typecase', `check-type', etc."
- (declare (debug defmacro*))
+ (declare (debug defmacro*) (doc-string 3))
(list 'eval-when '(compile load eval)
(cl-transform-function-property
name 'cl-deftype-handler (cons (list* '&cl-defs ''('*) arglist) body))))