diff options
| author | Eli Zaretskii | 2024-10-27 13:16:36 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2024-10-27 13:16:36 +0200 |
| commit | b0aaee93fde245b972a0d69b60328550f53bc043 (patch) | |
| tree | 027474143244d079837c93577968747082d31c7e /src/data.c | |
| parent | 299a1f240750595d7b0132aec5eb3a2b58c9d943 (diff) | |
| download | emacs-b0aaee93fde245b972a0d69b60328550f53bc043.tar.gz emacs-b0aaee93fde245b972a0d69b60328550f53bc043.zip | |
Update the documentation of void functions
* doc/lispref/functions.texi (Function Cells):
* src/data.c (Ffboundp, Ffmakunbound, Fsymbol_function): Update
documentation to the changes of how void functions are represented
since Emacs 24.5. (Bug#73886)
Diffstat (limited to 'src/data.c')
| -rw-r--r-- | src/data.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/data.c b/src/data.c index 13b4593e005..bf83755bff3 100644 --- a/src/data.c +++ b/src/data.c | |||
| @@ -756,7 +756,7 @@ global value outside of any lexical scope. */) | |||
| 756 | breaking backward compatibility, as some users of fboundp may | 756 | breaking backward compatibility, as some users of fboundp may |
| 757 | expect t in particular, rather than any true value. */ | 757 | expect t in particular, rather than any true value. */ |
| 758 | DEFUN ("fboundp", Ffboundp, Sfboundp, 1, 1, 0, | 758 | DEFUN ("fboundp", Ffboundp, Sfboundp, 1, 1, 0, |
| 759 | doc: /* Return t if SYMBOL's function definition is not void. */) | 759 | doc: /* Return t if SYMBOL's function definition is neither void nor nil. */) |
| 760 | (Lisp_Object symbol) | 760 | (Lisp_Object symbol) |
| 761 | { | 761 | { |
| 762 | CHECK_SYMBOL (symbol); | 762 | CHECK_SYMBOL (symbol); |
| @@ -782,12 +782,12 @@ See also `fmakunbound'. */) | |||
| 782 | } | 782 | } |
| 783 | 783 | ||
| 784 | DEFUN ("fmakunbound", Ffmakunbound, Sfmakunbound, 1, 1, 0, | 784 | DEFUN ("fmakunbound", Ffmakunbound, Sfmakunbound, 1, 1, 0, |
| 785 | doc: /* Make SYMBOL's function definition be void. | 785 | doc: /* Make SYMBOL's function definition be nil. |
| 786 | Return SYMBOL. | 786 | Return SYMBOL. |
| 787 | 787 | ||
| 788 | If a function definition is void, trying to call a function by that | 788 | If a function definition is nil or void, trying to call a function by |
| 789 | name will cause a `void-function' error. For more details, see Info | 789 | that name will cause a `void-function' error. For more details, see |
| 790 | node `(elisp) Function Cells'. | 790 | Info node `(elisp) Function Cells'. |
| 791 | 791 | ||
| 792 | See also `makunbound'. */) | 792 | See also `makunbound'. */) |
| 793 | (register Lisp_Object symbol) | 793 | (register Lisp_Object symbol) |
| @@ -800,7 +800,7 @@ See also `makunbound'. */) | |||
| 800 | } | 800 | } |
| 801 | 801 | ||
| 802 | DEFUN ("symbol-function", Fsymbol_function, Ssymbol_function, 1, 1, 0, | 802 | DEFUN ("symbol-function", Fsymbol_function, Ssymbol_function, 1, 1, 0, |
| 803 | doc: /* Return SYMBOL's function definition, or nil if that is void. */) | 803 | doc: /* Return SYMBOL's function definition, or nil if that is void or nil. */) |
| 804 | (Lisp_Object symbol) | 804 | (Lisp_Object symbol) |
| 805 | { | 805 | { |
| 806 | CHECK_SYMBOL (symbol); | 806 | CHECK_SYMBOL (symbol); |