aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1996-12-30 18:52:14 +0000
committerRichard M. Stallman1996-12-30 18:52:14 +0000
commitcd891e6848e0bc8380710ee24af1572fd6200d10 (patch)
tree0d01e72deadc7e0681982738713d2c50041acba0
parentad8d56b96027294edeb48a7d529e109a9dcc3034 (diff)
downloademacs-cd891e6848e0bc8380710ee24af1572fd6200d10.tar.gz
emacs-cd891e6848e0bc8380710ee24af1572fd6200d10.zip
(byte-compile-file): Set default-directory in compiler input buffer.
-rw-r--r--lisp/emacs-lisp/bytecomp.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index a4310dc2cbd..1ffd3cae2ca 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.23 $") 13(defconst byte-compile-version "$Revision: 2.24 $")
14 14
15;; This file is part of GNU Emacs. 15;; This file is part of GNU Emacs.
16 16
@@ -1249,7 +1249,9 @@ With prefix arg (noninteractively: 2nd arg), load the file after compiling."
1249 (default-major-mode 'emacs-lisp-mode) 1249 (default-major-mode 'emacs-lisp-mode)
1250 (enable-local-eval nil)) 1250 (enable-local-eval nil))
1251 (normal-mode) 1251 (normal-mode)
1252 (setq filename buffer-file-name))) 1252 (setq filename buffer-file-name))
1253 ;; Set the default directory, in case an eval-when-compile uses it.
1254 (setq default-directory (file-name-directory filename)))
1253 (setq byte-compiler-error-flag nil) 1255 (setq byte-compiler-error-flag nil)
1254 ;; It is important that input-buffer not be current at this call, 1256 ;; It is important that input-buffer not be current at this call,
1255 ;; so that the value of point set in input-buffer 1257 ;; so that the value of point set in input-buffer