summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMichael Heerdegen <michael_heerdegen@web.de>2019-04-27 09:40:10 +0200
committerMichael Heerdegen <michael_heerdegen@web.de>2019-05-24 00:51:46 +0200
commit84a3da15e96504cfcbaf295cfb0babca8d8700e5 (patch)
treed36bee86f5042b63324e1ef0faa53221ac11370e /doc
parenta564d6e8bb0e5058c4c356a85a42c091436ad382 (diff)
downloademacs-84a3da15e96504cfcbaf295cfb0babca8d8700e5.tar.gz
Improve documentation of the 'function' special form
Point out that 'function' quoting is beneficial also for symbols. * src/eval.c (function): Enhance docstring. * doc/lispref/functions.texi (Anonymous Functions): Improve documentation.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/functions.texi4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/lispref/functions.texi b/doc/lispref/functions.texi
index 97f7fb9f79e..2f9d898c9b0 100644
--- a/doc/lispref/functions.texi
+++ b/doc/lispref/functions.texi
@@ -1122,6 +1122,10 @@ a byte-code function object (@pxref{Byte Compilation}).
When lexical binding is enabled, @var{function-object} is converted
into a closure. @xref{Closures}.
@end itemize
+
+When @var{function-object} is a symbol and the code is byte compiled,
+the byte-compiler will warn if that function is not defined or might
+not be known at run time.
@end defspec
@cindex @samp{#'} syntax