aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2002-09-09 21:41:34 +0000
committerStefan Monnier2002-09-09 21:41:34 +0000
commit4f6d5bf0090c9e9de4f70eef4a21fd4c1feda082 (patch)
treeae511b305fcd7bfa5119def83c8649ddea8f5d2f
parente986c1753844f251cb1dcba9d0d323cdd39901be (diff)
downloademacs-4f6d5bf0090c9e9de4f70eef4a21fd4c1feda082.tar.gz
emacs-4f6d5bf0090c9e9de4f70eef4a21fd4c1feda082.zip
(byte-compile-file): Don't switch buffer.
-rw-r--r--lisp/emacs-lisp/bytecomp.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index f5fec5b1262..a96b1b64c28 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -10,7 +10,7 @@
10 10
11;;; This version incorporates changes up to version 2.10 of the 11;;; This version incorporates changes up to version 2.10 of the
12;;; Zawinski-Furuseth compiler. 12;;; Zawinski-Furuseth compiler.
13(defconst byte-compile-version "$Revision: 2.112 $") 13(defconst byte-compile-version "$Revision: 2.113 $")
14 14
15;; This file is part of GNU Emacs. 15;; This file is part of GNU Emacs.
16 16
@@ -1554,7 +1554,9 @@ The value is non-nil if there were no errors, nil if errors."
1554 ;; It is important that input-buffer not be current at this call, 1554 ;; It is important that input-buffer not be current at this call,
1555 ;; so that the value of point set in input-buffer 1555 ;; so that the value of point set in input-buffer
1556 ;; within byte-compile-from-buffer lingers in that buffer. 1556 ;; within byte-compile-from-buffer lingers in that buffer.
1557 (setq output-buffer (byte-compile-from-buffer input-buffer filename)) 1557 (setq output-buffer
1558 (save-current-buffer
1559 (byte-compile-from-buffer input-buffer filename)))
1558 (if byte-compiler-error-flag 1560 (if byte-compiler-error-flag
1559 nil 1561 nil
1560 (when byte-compile-verbose 1562 (when byte-compile-verbose
@@ -3833,7 +3835,7 @@ already up-to-date."
3833 3835
3834;;;###autoload 3836;;;###autoload
3835(defun batch-byte-recompile-directory () 3837(defun batch-byte-recompile-directory ()
3836 "Runs `byte-recompile-directory' on the dirs remaining on the command line. 3838 "Run `byte-recompile-directory' on the dirs remaining on the command line.
3837Must be used only with `-batch', and kills Emacs on completion. 3839Must be used only with `-batch', and kills Emacs on completion.
3838For example, invoke `emacs -batch -f batch-byte-recompile-directory .'." 3840For example, invoke `emacs -batch -f batch-byte-recompile-directory .'."
3839 ;; command-line-args-left is what is left of the command line (startup.el) 3841 ;; command-line-args-left is what is left of the command line (startup.el)