aboutsummaryrefslogtreecommitdiffstats
path: root/src/eval.c
diff options
context:
space:
mode:
authorPaul Eggert2022-05-11 10:13:09 -0700
committerPaul Eggert2022-05-11 10:18:12 -0700
commit4f27e4ff02d9d96b5cfbd196dd724e4a056cd8ef (patch)
tree10075770ba0daf732360fe37b379b9e78414937b /src/eval.c
parent678e05e851af9e5b1fdc50d7d2a661b33ad663d5 (diff)
downloademacs-4f27e4ff02d9d96b5cfbd196dd724e4a056cd8ef.tar.gz
emacs-4f27e4ff02d9d96b5cfbd196dd724e4a056cd8ef.zip
functionp doc improvement
* doc/lispref/eval.texi, doc/lispref/functions.texi, src/eval.c: Document functionp a bit more carefully. It can return t on non-functions.
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/eval.c b/src/eval.c
index 950338bf799..29c122e2fb2 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -2805,9 +2805,11 @@ apply1 (Lisp_Object fn, Lisp_Object arg)
2805DEFUN ("functionp", Ffunctionp, Sfunctionp, 1, 1, 0, 2805DEFUN ("functionp", Ffunctionp, Sfunctionp, 1, 1, 0,
2806 doc: /* Return t if OBJECT is a function. 2806 doc: /* Return t if OBJECT is a function.
2807 2807
2808An object is a function if it is callable via `funcall'; 2808An object is a function if it is callable via `funcall'; this includes
2809this includes primitive functions, byte-code functions, closures, and 2809symbols with function bindings, but excludes macros and special forms.
2810symbols with function bindings. */) 2810
2811Ordinarily return nil if OBJECT is not a function, although t might be
2812returned in rare cases. */)
2811 (Lisp_Object object) 2813 (Lisp_Object object)
2812{ 2814{
2813 if (FUNCTIONP (object)) 2815 if (FUNCTIONP (object))