# HG changeset patch # User Richard M. Stallman # Date 867020927 0 # Node ID 1ff0bfd405085caa8f4cf3ab2439ceadaf5c8c96 # Parent 7c853eb6ad19d1ccc148fcfc8f0397ce8bd4c02f (byte-compile-file): Doc fix. (batch-byte-compile-file): Return what byte-compile-file returns. diff -r 7c853eb6ad19 -r 1ff0bfd40508 lisp/emacs-lisp/bytecomp.el --- a/lisp/emacs-lisp/bytecomp.el Sun Jun 22 22:55:28 1997 +0000 +++ b/lisp/emacs-lisp/bytecomp.el Sun Jun 22 23:08:47 1997 +0000 @@ -10,7 +10,7 @@ ;;; This version incorporates changes up to version 2.10 of the ;;; Zawinski-Furuseth compiler. -(defconst byte-compile-version "$Revision: 2.28 $") +(defconst byte-compile-version "$Revision: 2.29 $") ;; This file is part of GNU Emacs. @@ -1203,7 +1203,8 @@ (defun byte-compile-file (filename &optional load) "Compile a file of Lisp code named FILENAME into a file of byte code. The output file's name is made by appending `c' to the end of FILENAME. -With prefix arg (noninteractively: 2nd arg), load the file after compiling." +With prefix arg (noninteractively: 2nd arg), load the file after compiling. +The value is t if there were no errors, nil if errors." ;; (interactive "fByte compile file: \nP") (interactive (let ((file buffer-file-name) @@ -3317,7 +3318,7 @@ (defun batch-byte-compile-file (file) (condition-case err - (progn (byte-compile-file file) t) + (byte-compile-file file) (error (message (if (cdr err) ">>Error occurred processing %s: %s (%s)"