From 8d450453fae4518f79f7f951d8c70e11f887a934 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Tue, 21 Nov 2017 08:53:31 -0800 Subject: * lisp/emacs-lisp/byte-run.el (inline): Give it a doc. --- lisp/emacs-lisp/byte-run.el | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lisp/emacs-lisp/byte-run.el') diff --git a/lisp/emacs-lisp/byte-run.el b/lisp/emacs-lisp/byte-run.el index abfcdb347a3..e4f21c9d6d4 100644 --- a/lisp/emacs-lisp/byte-run.el +++ b/lisp/emacs-lisp/byte-run.el @@ -286,8 +286,12 @@ The return value is undefined. ;; Redefined in byte-opt.el. -;; This is not documented--it's not clear that we should promote it. -(fset 'inline 'progn) +;; This was undocumented and unused for decades. +(defalias 'inline 'progn + "Like `progn', but when compiled inline top-level function calls in body. +You don't need this. (See bytecomp.el commentary for more details.) + +\(fn BODY...)") ;;; Interface to inline functions. -- cgit v1.2.3 From 2fdc01c036bdb17bdb11bd4d4de7730db2e5a19d Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Tue, 21 Nov 2017 13:28:00 -0500 Subject: * lisp/emacs-lisp/byte-run.el (defsubst): Doc fix. --- lisp/emacs-lisp/byte-run.el | 1 + 1 file changed, 1 insertion(+) (limited to 'lisp/emacs-lisp/byte-run.el') diff --git a/lisp/emacs-lisp/byte-run.el b/lisp/emacs-lisp/byte-run.el index e4f21c9d6d4..d6c43ecf462 100644 --- a/lisp/emacs-lisp/byte-run.el +++ b/lisp/emacs-lisp/byte-run.el @@ -322,6 +322,7 @@ You don't need this. (See bytecomp.el commentary for more details.) (defmacro defsubst (name arglist &rest body) "Define an inline function. The syntax is just like that of `defun'. + \(fn NAME ARGLIST &optional DOCSTRING DECL &rest BODY)" (declare (debug defun) (doc-string 3)) (or (memq (get name 'byte-optimizer) -- cgit v1.2.3