From: Eli Zaretskii Date: Sun, 14 Aug 2022 16:45:32 +0000 (+0300) Subject: ; Fix documentation of 'compiled-function-p' (bug#56648) X-Git-Tag: emacs-29.0.90~1447^2~163 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9239be8e76102a42c22c1e7c7028b89dc289174a;p=emacs.git ; Fix documentation of 'compiled-function-p' (bug#56648) * etc/NEWS: Fix a typo and expand the description of 'compiled-function-p'. * doc/lispref/functions.texi (What Is a Function): Fix wording of the documentation of 'compiled-function-p'. --- diff --git a/doc/lispref/functions.texi b/doc/lispref/functions.texi index a7ce3270f5f..8c6328b4402 100644 --- a/doc/lispref/functions.texi +++ b/doc/lispref/functions.texi @@ -219,7 +219,8 @@ function. For example: @defun compiled-function-p object This function returns @code{t} if @var{object} is a function object -implemented in byte-code or machine code. +that was either byte-compiled (@pxref{Byte Compilation}) or +natively-compiled (@pxref{Native Compilation}). @end defun @defun subr-arity subr diff --git a/etc/NEWS b/etc/NEWS index 0584403d8c7..0788b94da22 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -2572,7 +2572,9 @@ patcomp.el, pc-mode.el, pc-select.el, s-region.el, and sregex.el. * Lisp Changes in Emacs 29.1 +++ -** New function 'compile-function-p'. +** New function 'compiled-function-p'. +This returns non-nil if its argument is either a byte-compiled or a +natively-compiled function object. --- ** 'deactivate-mark' can have new value 'dont-save'.