diff options
| author | Paul Eggert | 2022-05-11 10:13:09 -0700 |
|---|---|---|
| committer | Paul Eggert | 2022-05-11 10:18:12 -0700 |
| commit | 4f27e4ff02d9d96b5cfbd196dd724e4a056cd8ef (patch) | |
| tree | 10075770ba0daf732360fe37b379b9e78414937b /src/eval.c | |
| parent | 678e05e851af9e5b1fdc50d7d2a661b33ad663d5 (diff) | |
| download | emacs-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.c | 8 |
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) | |||
| 2805 | DEFUN ("functionp", Ffunctionp, Sfunctionp, 1, 1, 0, | 2805 | DEFUN ("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 | ||
| 2808 | An object is a function if it is callable via `funcall'; | 2808 | An object is a function if it is callable via `funcall'; this includes |
| 2809 | this includes primitive functions, byte-code functions, closures, and | 2809 | symbols with function bindings, but excludes macros and special forms. |
| 2810 | symbols with function bindings. */) | 2810 | |
| 2811 | Ordinarily return nil if OBJECT is not a function, although t might be | ||
| 2812 | returned in rare cases. */) | ||
| 2811 | (Lisp_Object object) | 2813 | (Lisp_Object object) |
| 2812 | { | 2814 | { |
| 2813 | if (FUNCTIONP (object)) | 2815 | if (FUNCTIONP (object)) |