Mercurial > emacs
changeset 86407:82fbd29a8553
(Compiler Errors): Clarify previous change.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 24 Nov 2007 16:00:21 +0000 |
parents | 22b18b2eec8e |
children | c4f8d28a93e7 |
files | doc/lispref/compile.texi |
diffstat | 1 files changed, 12 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/lispref/compile.texi Sat Nov 24 15:40:09 2007 +0000 +++ b/doc/lispref/compile.texi Sat Nov 24 16:00:21 2007 +0000 @@ -505,12 +505,14 @@ @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}). + You can tell the compiler that a function is defined using +@code{declare-function} (@pxref{Declaring Functions}). Likewise, you +can tell the compiler that a variable is defined using @code{defvar} +with no initial value. - Likewise, you can suppress a compiler warning for an unbound variable -@var{variable} by conditionalizing its use on a @code{boundp} test, -like this: + You can suppress the compiler warning for a specific use of an +undefined variable @var{variable} by conditionalizing its use on a +@code{boundp} test, like this: @example (if (boundp '@var{variable}) ...@var{variable}...) @@ -521,11 +523,8 @@ @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}: + You can suppress any and all compiler warnings within a certain +expression using the construct @code{with-no-warnings}: @c This is implemented with a defun, but conceptually it is @c a special form. @@ -536,10 +535,11 @@ inside @var{body}. We recommend that you use this construct around the smallest -possible piece of code. +possible piece of code, to avoid missing possible warnings other than one +one you intend to suppress. @end defspec -More precise control of warnings is possible by setting the variable + More precise control of warnings is possible by setting the variable @code{byte-compile-warnings}. @node Byte-Code Objects