emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lispref/compile.texi


From: Richard M. Stallman
Subject: [Emacs-diffs] Changes to emacs/lispref/compile.texi
Date: Tue, 05 Aug 2003 21:17:13 -0400

Index: emacs/lispref/compile.texi
diff -c emacs/lispref/compile.texi:1.14 emacs/lispref/compile.texi:1.15
*** emacs/lispref/compile.texi:1.14     Mon Jul 14 12:00:44 2003
--- emacs/lispref/compile.texi  Tue Aug  5 21:17:13 2003
***************
*** 421,426 ****
--- 421,462 ----
  commands won't find the places they are really used.  To do that,
  you must search for the function names.
   
+   You can suppress the compiler warning for calling an undefined
+ function @var{func} by conditionalizing the function call on a
+ @code{fboundp} test, like this:
+ 
+ @example
+ (if (fboundp '@var{func}) ...(@var{func} ...)...)
+ @end example
+ 
+ @noindent
+ 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}.
+ Likewise, you can suppress a compiler warning for an unbound variable
+ @var{variable} by conditionalizing its use on a @code{boundp} test,
+ like this:
+ 
+ @example
+ (if (boundp '@var{variable}) address@hidden)
+ @end example
+ 
+ @noindent
+ 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 suppress any compiler warnings using the construct
+ @code{with-no-warnings}:
+ 
+ @defmac with-no-warnings body...
+ In execution, this is equivalent to @code{(progn @var{body}...)},
+ but the compiler does not issue warnings for anything that occurs
+ inside @var{body}.
+ 
+ We recommend that you use this construct around the smallest
+ possible piece of code.
+ @end defun
+ 
  @node Byte-Code Objects
  @section Byte-Code Function Objects
  @cindex compiled function




reply via email to

[Prev in Thread] Current Thread [Next in Thread]