aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorEli Zaretskii2024-10-27 08:23:06 -0400
committerEli Zaretskii2024-10-27 08:23:06 -0400
commitaeaeccbe3219c655b091fa3867c87b02b6289a1b (patch)
tree2a685cfbffd88b9ec0d44583c661984abfdeaf76 /doc
parentc5b410d6120b62f14664cb06715689b6a0505ca5 (diff)
parentc78b4d2b31d9b763aa506d8498f70b3e651bbbf5 (diff)
downloademacs-aeaeccbe3219c655b091fa3867c87b02b6289a1b.tar.gz
emacs-aeaeccbe3219c655b091fa3867c87b02b6289a1b.zip
Merge from origin/emacs-30
c78b4d2b31d Fix doc string of 'wdired-use-dired-vertical-movement' b0aaee93fde Update the documentation of void functions 299a1f24075 ; * lisp/vc/log-edit.el (log-edit-diff-function): Grammar... 67a27ff53bf ; Fix typos
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/emacs.texi2
-rw-r--r--doc/lispref/functions.texi24
2 files changed, 13 insertions, 13 deletions
diff --git a/doc/emacs/emacs.texi b/doc/emacs/emacs.texi
index 5932af301f9..634788392d2 100644
--- a/doc/emacs/emacs.texi
+++ b/doc/emacs/emacs.texi
@@ -1432,7 +1432,7 @@ If you need to contact the Free Software Foundation, see
1432 1432
1433@display 1433@display
1434Free Software Foundation 1434Free Software Foundation
143531 Milk Street # 960789 143531 Milk Street, # 960789
1436Boston, MA 02196 1436Boston, MA 02196
1437USA 1437USA
1438@end display 1438@end display
diff --git a/doc/lispref/functions.texi b/doc/lispref/functions.texi
index ef3e665f9f2..db2c4197144 100644
--- a/doc/lispref/functions.texi
+++ b/doc/lispref/functions.texi
@@ -1511,9 +1511,9 @@ indirect-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 1513
1514If the function cell is void, the return value is @code{nil}. To 1514If the function cell is void, the return value is @code{nil}. It is
1515distinguish between a function cell that is void and one set to 1515impossible to distinguish between a function cell that is void and one
1516@code{nil}, use @code{fboundp} (see below). 1516set to @code{nil}.
1517 1517
1518@example 1518@example
1519@group 1519@group
@@ -1538,24 +1538,24 @@ that that symbol's function cell is @dfn{void}. In other words, the
1538function cell does not have any Lisp object in it. If you try to call 1538function cell does not have any Lisp object in it. If you try to call
1539the symbol as a function, Emacs signals a @code{void-function} error. 1539the symbol as a function, Emacs signals a @code{void-function} error.
1540 1540
1541 Note that void is not the same as @code{nil} or the symbol 1541 Unlike with void variables (@pxref{Void Variables}), a symbol's
1542@code{void}. The symbols @code{nil} and @code{void} are Lisp objects, 1542function cell that contains @code{nil} is indistinguishable from the
1543and can be stored into a function cell just as any other object can be 1543function's being void. Note that void is not the same as the symbol
1544(and @code{void} can be a valid function if you define it with 1544@code{void}: @code{void} can be a valid function if you define it with
1545@code{defun}). A void function cell contains no object whatsoever. 1545@code{defun}.
1546 1546
1547 You can test the voidness of a symbol's function definition with 1547 You can test the voidness of a symbol's function definition with
1548@code{fboundp}. After you have given a symbol a function definition, you 1548@code{fboundp}. After you have given a symbol a function definition, you
1549can make it void once more using @code{fmakunbound}. 1549can make it void once more using @code{fmakunbound}.
1550 1550
1551@defun fboundp symbol 1551@defun fboundp symbol
1552This function returns @code{t} if the symbol has an object in its 1552This function returns @code{t} if the symbol has a non-@code{nil} object
1553function cell, @code{nil} otherwise. It does not check that the object 1553in its function cell, @code{nil} otherwise. It does not check that the
1554is a legitimate function. 1554object is a legitimate function.
1555@end defun 1555@end defun
1556 1556
1557@defun fmakunbound symbol 1557@defun fmakunbound symbol
1558This function makes @var{symbol}'s function cell void, so that a 1558This function makes @var{symbol}'s function cell @code{nil}, so that a
1559subsequent attempt to access this cell will cause a 1559subsequent attempt to access this cell will cause a
1560@code{void-function} error. It returns @var{symbol}. (See also 1560@code{void-function} error. It returns @var{symbol}. (See also
1561@code{makunbound}, in @ref{Void Variables}.) 1561@code{makunbound}, in @ref{Void Variables}.)