* lisp/emacs-lisp/inline.el (define-inline): Add a doc string.

This commit is contained in:
Eli Zaretskii 2017-12-22 12:37:19 +02:00
parent f7a62c2b48
commit 34fcfc5c04

View file

@ -124,6 +124,10 @@ After VARS is handled, BODY is evaluated in the new environment."
;;;###autoload ;;;###autoload
(defmacro define-inline (name args &rest body) (defmacro define-inline (name args &rest body)
"Define an inline function NAME with arguments ARGS and body in BODY.
This is like `defmacro', but has several advantages.
See Info node `(elisp)Defining Functions' for more details."
;; FIXME: How can this work with CL arglists? ;; FIXME: How can this work with CL arglists?
(declare (indent defun) (debug defun) (doc-string 3)) (declare (indent defun) (debug defun) (doc-string 3))
(let ((doc (if (stringp (car-safe body)) (list (pop body)))) (let ((doc (if (stringp (car-safe body)) (list (pop body))))