diff options
| -rw-r--r-- | doc/lispref/functions.texi | 4 | ||||
| -rw-r--r-- | src/eval.c | 4 |
2 files changed, 6 insertions, 2 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}). | |||
| 1122 | When lexical binding is enabled, @var{function-object} is converted | 1122 | When lexical binding is enabled, @var{function-object} is converted |
| 1123 | into a closure. @xref{Closures}. | 1123 | into a closure. @xref{Closures}. |
| 1124 | @end itemize | 1124 | @end itemize |
| 1125 | |||
| 1126 | When @var{function-object} is a symbol and the code is byte compiled, | ||
| 1127 | the byte-compiler will warn if that function is not defined or might | ||
| 1128 | not be known at run time. | ||
| 1125 | @end defspec | 1129 | @end defspec |
| 1126 | 1130 | ||
| 1127 | @cindex @samp{#'} syntax | 1131 | @cindex @samp{#'} syntax |
diff --git a/src/eval.c b/src/eval.c index 567c32e0d75..5bba8766373 100644 --- a/src/eval.c +++ b/src/eval.c | |||
| @@ -544,8 +544,8 @@ usage: (quote ARG) */) | |||
| 544 | 544 | ||
| 545 | DEFUN ("function", Ffunction, Sfunction, 1, UNEVALLED, 0, | 545 | DEFUN ("function", Ffunction, Sfunction, 1, UNEVALLED, 0, |
| 546 | doc: /* Like `quote', but preferred for objects which are functions. | 546 | doc: /* Like `quote', but preferred for objects which are functions. |
| 547 | In byte compilation, `function' causes its argument to be compiled. | 547 | In byte compilation, `function' causes its argument to be handled by |
| 548 | `quote' cannot do that. | 548 | the byte compiler. `quote' cannot do that. |
| 549 | usage: (function ARG) */) | 549 | usage: (function ARG) */) |
| 550 | (Lisp_Object args) | 550 | (Lisp_Object args) |
| 551 | { | 551 | { |