[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/progmodes/compile.el,v
From: |
Sam Steingold |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/progmodes/compile.el,v |
Date: |
Fri, 02 May 2008 18:37:09 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Sam Steingold <sds> 08/05/02 18:37:08
Index: progmodes/compile.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/progmodes/compile.el,v
retrieving revision 1.467
retrieving revision 1.468
diff -u -b -r1.467 -r1.468
--- progmodes/compile.el 1 May 2008 23:56:10 -0000 1.467
+++ progmodes/compile.el 2 May 2008 18:37:07 -0000 1.468
@@ -1159,10 +1159,6 @@
(buffer-disable-undo (current-buffer))
;; first transfer directory from where M-x compile was called
(setq default-directory thisdir)
- ;; Remember the original dir, so we can use it when we recompile.
- ;; default-directory' can't be used reliably for that because it may be
- ;; affected by the special handling of "cd ...;".
- (set (make-local-variable 'compilation-directory) thisdir)
;; Make compilation buffer read-only. The filter can still write it.
;; Clear out the compilation buffer.
(let ((inhibit-read-only t)
@@ -1182,6 +1178,11 @@
(setq buffer-read-only nil)
(with-no-warnings (comint-mode))
(compilation-shell-minor-mode))
+ ;; Remember the original dir, so we can use it when we recompile.
+ ;; default-directory' can't be used reliably for that because it may be
+ ;; affected by the special handling of "cd ...;".
+ ;; NB: must be fone after (funcall mode) as that resets local variables
+ (set (make-local-variable 'compilation-directory) thisdir)
(if highlight-regexp
(set (make-local-variable 'compilation-highlight-regexp)
highlight-regexp))
- [Emacs-diffs] Changes to emacs/lisp/progmodes/compile.el,v, Juri Linkov, 2008/05/01
- [Emacs-diffs] Changes to emacs/lisp/progmodes/compile.el,v,
Sam Steingold <=
- [Emacs-diffs] Changes to emacs/lisp/progmodes/compile.el,v, Nick Roberts, 2008/05/05
- [Emacs-diffs] Changes to emacs/lisp/progmodes/compile.el,v, Chong Yidong, 2008/05/05
- [Emacs-diffs] Changes to emacs/lisp/progmodes/compile.el,v, Chong Yidong, 2008/05/05
- [Emacs-diffs] Changes to emacs/lisp/progmodes/compile.el,v, Glenn Morris, 2008/05/06
- [Emacs-diffs] Changes to emacs/lisp/progmodes/compile.el,v, Sam Steingold, 2008/05/08