aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorStefan Monnier2024-10-27 14:52:25 -0400
committerStefan Monnier2024-10-27 14:52:25 -0400
commit9e1abf11fc1c3285cfa631ec71f3836d54e2c8d8 (patch)
tree8976ae6421309e969fb5dff88bbcd14ad8bfd5eb /doc
parent7a8ca202c5eeb810e5f86510c3ea46d3ec519222 (diff)
downloademacs-9e1abf11fc1c3285cfa631ec71f3836d54e2c8d8.tar.gz
emacs-9e1abf11fc1c3285cfa631ec71f3836d54e2c8d8.zip
Tweak doc w.r.t to "void function" (bug#73886)
* doc/lispref/functions.texi (Function Cells): Avoid talking about the function cell being void. * src/data.c (Fboundp, Ffmakunbound, Fsymbol_function): Don't suggest that "void" can be considered as a kind of value.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/functions.texi11
1 files changed, 4 insertions, 7 deletions
diff --git a/doc/lispref/functions.texi b/doc/lispref/functions.texi
index bfb8789d05b..7fb9fb37c0a 100644
--- a/doc/lispref/functions.texi
+++ b/doc/lispref/functions.texi
@@ -1510,10 +1510,7 @@ indirect-function}.
1510@kindex void-function 1510@kindex void-function
1511This returns the object in the function cell of @var{symbol}. It does 1511This returns the object in the function cell of @var{symbol}. It does
1512not check that the returned object is a legitimate function. 1512not check that the returned object is a legitimate function.
1513 1513If the function is void, the return value is @code{nil}.
1514If the function cell is void, the return value is @code{nil}. It is
1515impossible to distinguish between a function cell that is void and one
1516set to @code{nil}.
1517 1514
1518@example 1515@example
1519@group 1516@group
@@ -1533,9 +1530,9 @@ set to @code{nil}.
1533@end defun 1530@end defun
1534 1531
1535@cindex void function cell 1532@cindex void function cell
1536 If you have never given a symbol any function definition, we say 1533 If you have never given a symbol any function definition, its function
1537that that symbol's function cell is @dfn{void}. In other words, the 1534cell contains the default value @code{nil} and we say
1538function cell does not have any Lisp object in it. If you try to call 1535that that function is @dfn{void}. If you try to call
1539the symbol as a function, Emacs signals a @code{void-function} error. 1536the symbol as a function, Emacs signals a @code{void-function} error.
1540 1537
1541 Unlike with void variables (@pxref{Void Variables}), a symbol's 1538 Unlike with void variables (@pxref{Void Variables}), a symbol's