From 5bb0cda3c6abd23fdf1716acf6da2b5d950270c7 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Sat, 24 Nov 2007 03:06:42 +0000 Subject: [PATCH] (Compiler Errors): Mention declaring functions, defvar with no initvalue, and byte-compile-warnings. --- doc/lispref/ChangeLog | 6 ++++++ doc/lispref/compile.texi | 9 +++++++++ 2 files changed, 15 insertions(+) diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index c739a43a1a4..16c78f429ea 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog @@ -1,3 +1,9 @@ +2007-11-24 Glenn Morris + + * functions.texi (Declaring Functions): New section. + * compile.texi (Compiler Errors): Mention declaring functions, + defvar with no initvalue, and byte-compile-warnings. + 2007-11-15 Martin Rudalics * vol1.texi (Top): Remove Frame-Local Variables from Node Listing. diff --git a/doc/lispref/compile.texi b/doc/lispref/compile.texi index aeaa9f79eb8..fdd145ac9f1 100644 --- a/doc/lispref/compile.texi +++ b/doc/lispref/compile.texi @@ -505,6 +505,9 @@ The call to @var{func} must be in the @var{then-form} of the @code{if}, and @var{func} must appear quoted in the call to @code{fboundp}. (This feature operates for @code{cond} as well.) + You can tell the compiler that a function is defined using a +@code{declare-function} statement (@pxref{Declaring Functions}). + Likewise, you can suppress a compiler warning for an unbound variable @var{variable} by conditionalizing its use on a @code{boundp} test, like this: @@ -518,6 +521,9 @@ The reference to @var{variable} must be in the @var{then-form} of the @code{if}, and @var{variable} must appear quoted in the call to @code{boundp}. + You can tell the compiler that a variable is defined using a +@code{defvar} statement with no initial value. + You can suppress any compiler warnings using the construct @code{with-no-warnings}: @@ -533,6 +539,9 @@ We recommend that you use this construct around the smallest possible piece of code. @end defspec +More precise control of warnings is possible by setting the variable +@code{byte-compile-warnings}. + @node Byte-Code Objects @section Byte-Code Function Objects @cindex compiled function -- 2.39.2