Commit a12ac9d7 authored by Stefan Monnier's avatar Stefan Monnier

* lisp/emacs-lisp/autoload.el (make-autoload): Accept nil doc-string-elt.

Add cl-defun and cl-defmacro.

Fixes: debbugs:11649
parent 87e6e64f
2012-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
* emacs-lisp/autoload.el (make-autoload): Accept nil doc-string-elt
(bug#11649). Add cl-defun and cl-defmacro.
2012-06-13 Drew Adams <drew.adams@oracle.com>
* help-mode.el (help-bookmark-make-record, help-bookmark-jump):
......
......@@ -151,7 +151,8 @@ expression, in which case we want to handle forms differently."
easy-mmode-define-global-mode define-global-minor-mode
define-globalized-minor-mode
easy-mmode-define-minor-mode define-minor-mode
defun* defmacro* define-overloadable-function))
cl-defun defun* cl-defmacro defmacro*
define-overloadable-function))
(let* ((macrop (memq car '(defmacro defmacro*)))
(name (nth 1 form))
(args (cl-case car
......@@ -161,7 +162,7 @@ expression, in which case we want to handle forms differently."
((define-generic-mode define-derived-mode
define-compilation-mode) nil)
(t)))
(body (nthcdr (get car 'doc-string-elt) form))
(body (nthcdr (or (get car 'doc-string-elt) 3) form))
(doc (if (stringp (car body)) (pop body))))
;; Add the usage form at the end where describe-function-1
;; can recover it.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment