diff options
| author | Chong Yidong | 2007-03-25 17:52:31 +0000 |
|---|---|---|
| committer | Chong Yidong | 2007-03-25 17:52:31 +0000 |
| commit | 98d4c36f4c50b6d641a4d4f770a47e7fb2347d5b (patch) | |
| tree | a1a4817c9ade4e3229a9374183e0535864db9094 | |
| parent | c324c766da1677b9b6adc7fd9ea229fa5f7101cf (diff) | |
| download | emacs-98d4c36f4c50b6d641a4d4f770a47e7fb2347d5b.tar.gz emacs-98d4c36f4c50b6d641a4d4f770a47e7fb2347d5b.zip | |
(compilation-start): Save compilation-directory rather than
default-directory as local var.
(compilation-directory): Mark as safe local var.
| -rw-r--r-- | lisp/progmodes/compile.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index aa77caf0670..62bb276feeb 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -391,6 +391,7 @@ be added." | |||
| 391 | ,(expand-file-name "compilation.txt" data-directory)) | 391 | ,(expand-file-name "compilation.txt" data-directory)) |
| 392 | :group 'compilation) | 392 | :group 'compilation) |
| 393 | 393 | ||
| 394 | ;;;###autoload(put 'compilation-directory 'safe-local-variable 'stringp) | ||
| 394 | (defvar compilation-directory nil | 395 | (defvar compilation-directory nil |
| 395 | "Directory to restore to when doing `recompile'.") | 396 | "Directory to restore to when doing `recompile'.") |
| 396 | 397 | ||
| @@ -1041,7 +1042,7 @@ Returns the compilation buffer created." | |||
| 1041 | highlight-regexp)) | 1042 | highlight-regexp)) |
| 1042 | ;; Output a mode setter, for saving and later reloading this buffer. | 1043 | ;; Output a mode setter, for saving and later reloading this buffer. |
| 1043 | (insert "-*- mode: " name-of-mode | 1044 | (insert "-*- mode: " name-of-mode |
| 1044 | "; default-directory: " (prin1-to-string default-directory) | 1045 | "; compilation-directory: " (prin1-to-string compilation-directory) |
| 1045 | " -*-\n" | 1046 | " -*-\n" |
| 1046 | (format "%s started at %s\n\n" | 1047 | (format "%s started at %s\n\n" |
| 1047 | mode-name | 1048 | mode-name |