diff options
| author | Stefan Monnier | 2012-06-13 08:46:33 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2012-06-13 08:46:33 -0400 |
| commit | a12ac9d7951d68282e90fd49f218cc17d5342152 (patch) | |
| tree | e853e07e78d02944f2f62ff83433d9198c643667 | |
| parent | 87e6e64f99de751c4459eb7acc6ac31e20db1f25 (diff) | |
| download | emacs-a12ac9d7951d68282e90fd49f218cc17d5342152.tar.gz emacs-a12ac9d7951d68282e90fd49f218cc17d5342152.zip | |
* lisp/emacs-lisp/autoload.el (make-autoload): Accept nil doc-string-elt.
Add cl-defun and cl-defmacro.
Fixes: debbugs:11649
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/emacs-lisp/autoload.el | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4e52a213eab..0ad97e58935 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-06-13 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * emacs-lisp/autoload.el (make-autoload): Accept nil doc-string-elt | ||
| 4 | (bug#11649). Add cl-defun and cl-defmacro. | ||
| 5 | |||
| 1 | 2012-06-13 Drew Adams <drew.adams@oracle.com> | 6 | 2012-06-13 Drew Adams <drew.adams@oracle.com> |
| 2 | 7 | ||
| 3 | * help-mode.el (help-bookmark-make-record, help-bookmark-jump): | 8 | * help-mode.el (help-bookmark-make-record, help-bookmark-jump): |
diff --git a/lisp/emacs-lisp/autoload.el b/lisp/emacs-lisp/autoload.el index 9cd626c52f4..fba8915fd5f 100644 --- a/lisp/emacs-lisp/autoload.el +++ b/lisp/emacs-lisp/autoload.el | |||
| @@ -151,7 +151,8 @@ expression, in which case we want to handle forms differently." | |||
| 151 | easy-mmode-define-global-mode define-global-minor-mode | 151 | easy-mmode-define-global-mode define-global-minor-mode |
| 152 | define-globalized-minor-mode | 152 | define-globalized-minor-mode |
| 153 | easy-mmode-define-minor-mode define-minor-mode | 153 | easy-mmode-define-minor-mode define-minor-mode |
| 154 | defun* defmacro* define-overloadable-function)) | 154 | cl-defun defun* cl-defmacro defmacro* |
| 155 | define-overloadable-function)) | ||
| 155 | (let* ((macrop (memq car '(defmacro defmacro*))) | 156 | (let* ((macrop (memq car '(defmacro defmacro*))) |
| 156 | (name (nth 1 form)) | 157 | (name (nth 1 form)) |
| 157 | (args (cl-case car | 158 | (args (cl-case car |
| @@ -161,7 +162,7 @@ expression, in which case we want to handle forms differently." | |||
| 161 | ((define-generic-mode define-derived-mode | 162 | ((define-generic-mode define-derived-mode |
| 162 | define-compilation-mode) nil) | 163 | define-compilation-mode) nil) |
| 163 | (t))) | 164 | (t))) |
| 164 | (body (nthcdr (get car 'doc-string-elt) form)) | 165 | (body (nthcdr (or (get car 'doc-string-elt) 3) form)) |
| 165 | (doc (if (stringp (car body)) (pop body)))) | 166 | (doc (if (stringp (car body)) (pop body)))) |
| 166 | ;; Add the usage form at the end where describe-function-1 | 167 | ;; Add the usage form at the end where describe-function-1 |
| 167 | ;; can recover it. | 168 | ;; can recover it. |