# HG changeset patch # User Thien-Thi Nguyen # Date 1188689595 0 # Node ID cbeb8c965cdb43251618fbeba197dd29a319d7fe # Parent 201d3c4ab213249eaaa44891dc7483f141d8656c (byte-recompile-directory): Fix bug: Don't expand top-level file name more than once. diff -r 201d3c4ab213 -r cbeb8c965cdb lisp/emacs-lisp/bytecomp.el --- a/lisp/emacs-lisp/bytecomp.el Sat Sep 01 23:26:52 2007 +0000 +++ b/lisp/emacs-lisp/bytecomp.el Sat Sep 01 23:33:15 2007 +0000 @@ -975,7 +975,7 @@ (pos (if (and byte-compile-current-file (integerp byte-compile-read-position)) (with-current-buffer byte-compile-current-buffer - (format "%d:%d:" + (format "%d:%d:" (save-excursion (goto-char byte-compile-last-position) (1+ (count-lines (point-min) (point-at-bol)))) @@ -1552,7 +1552,7 @@ ;; compilation-mode copies value of default-directory. (unless (eq major-mode 'compilation-mode) (compilation-mode)) - (let ((directories (list (expand-file-name directory))) + (let ((directories (list default-directory)) (default-directory default-directory) (skip-count 0) (fail-count 0) @@ -1659,7 +1659,7 @@ byte-compile-dest-file) (setq target-file (byte-compile-dest-file filename)) (setq byte-compile-dest-file target-file) - (with-current-buffer + (with-current-buffer (setq input-buffer (get-buffer-create " *Compiler Input*")) (erase-buffer) (setq buffer-file-coding-system nil)