comparison lisp/emacs-lisp/bytecomp.el @ 80709:6552247ba6b0

(byte-compile-maybe-guarded): Doc fix (sync from trunk 2008-06-13). (byte-compile-file): Doc fix (sync from trunk 2008-04-27).
author Glenn Morris <rgm@gnu.org>
date Sun, 10 Aug 2008 20:08:38 +0000
parents 78ee6fae0e41
children
comparison
equal deleted inserted replaced
80708:b61555440556 80709:6552247ba6b0
1618 1618
1619 ;;;###autoload 1619 ;;;###autoload
1620 (defun byte-compile-file (filename &optional load) 1620 (defun byte-compile-file (filename &optional load)
1621 "Compile a file of Lisp code named FILENAME into a file of byte code. 1621 "Compile a file of Lisp code named FILENAME into a file of byte code.
1622 The output file's name is generated by passing FILENAME to the 1622 The output file's name is generated by passing FILENAME to the
1623 `byte-compile-dest-file' function (which see). 1623 function `byte-compile-dest-file' (which see).
1624 With prefix arg (noninteractively: 2nd arg), LOAD the file after compiling. 1624 With prefix arg (noninteractively: 2nd arg), LOAD the file after compiling.
1625 The value is non-nil if there were no errors, nil if errors." 1625 The value is non-nil if there were no errors, nil if errors."
1626 ;; (interactive "fByte compile file: \nP") 1626 ;; (interactive "fByte compile file: \nP")
1627 (interactive 1627 (interactive
1628 (let ((file buffer-file-name) 1628 (let ((file buffer-file-name)
3442 ,tag)) 3442 ,tag))
3443 3443
3444 (defmacro byte-compile-maybe-guarded (condition &rest body) 3444 (defmacro byte-compile-maybe-guarded (condition &rest body)
3445 "Execute forms in BODY, potentially guarded by CONDITION. 3445 "Execute forms in BODY, potentially guarded by CONDITION.
3446 CONDITION is a variable whose value is a test in an `if' or `cond'. 3446 CONDITION is a variable whose value is a test in an `if' or `cond'.
3447 BODY is the code to compile first arm of the if or the body of the 3447 BODY is the code to compile in the first arm of the if or the body of
3448 cond clause. If CONDITION's value is of the form (fboundp 'foo) 3448 the cond clause. If CONDITION's value is of the form (fboundp 'foo)
3449 or (boundp 'foo), the relevant warnings from BODY about foo's 3449 or (boundp 'foo), the relevant warnings from BODY about foo's
3450 being undefined will be suppressed. 3450 being undefined will be suppressed.
3451 3451
3452 If CONDITION's value is (not (featurep 'emacs)) or (featurep 'xemacs), 3452 If CONDITION's value is (not (featurep 'emacs)) or (featurep 'xemacs),
3453 that suppresses all warnings during execution of BODY." 3453 that suppresses all warnings during execution of BODY."