/[emacs]/emacs/lispref/compile.texi
ViewVC logotype

Diff of /emacs/lispref/compile.texi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.14 by rms, Mon Jul 14 16:00:44 2003 UTC revision 1.15 by rms, Wed Aug 6 01:17:13 2003 UTC
# Line 421  defined are always ``located'' at the en Line 421  defined are always ``located'' at the en
421  commands won't find the places they are really used.  To do that,  commands won't find the places they are really used.  To do that,
422  you must search for the function names.  you must search for the function names.
423    
424      You can suppress the compiler warning for calling an undefined
425    function @var{func} by conditionalizing the function call on a
426    @code{fboundp} test, like this:
427    
428    @example
429    (if (fboundp '@var{func}) ...(@var{func} ...)...)
430    @end example
431    
432    @noindent
433    The call to @var{func} must be in the @var{then-form} of the @code{if},
434    and @var{func} must appear quoted in the call to @code{fboundp}.
435    Likewise, you can suppress a compiler warning for an unbound variable
436    @var{variable} by conditionalizing its use on a @code{boundp} test,
437    like this:
438    
439    @example
440    (if (boundp '@var{variable}) ...@var{variable}...)
441    @end example
442    
443    @noindent
444    The reference to @var{variable} must be in the @var{then-form} of the
445    @code{if}, and @var{variable} must appear quoted in the call to
446    @code{boundp}.
447    
448      You can suppress any compiler warnings using the construct
449    @code{with-no-warnings}:
450    
451    @defmac with-no-warnings body...
452    In execution, this is equivalent to @code{(progn @var{body}...)},
453    but the compiler does not issue warnings for anything that occurs
454    inside @var{body}.
455    
456    We recommend that you use this construct around the smallest
457    possible piece of code.
458    @end defun
459    
460  @node Byte-Code Objects  @node Byte-Code Objects
461  @section Byte-Code Function Objects  @section Byte-Code Function Objects
462  @cindex compiled function  @cindex compiled function

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26