From 9239be8e76102a42c22c1e7c7028b89dc289174a Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sun, 14 Aug 2022 19:45:32 +0300 Subject: [PATCH] ; 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'. --- doc/lispref/functions.texi | 3 ++- etc/NEWS | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) 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'. -- 2.39.5