diff options
| author | Stefan Monnier | 2002-09-13 19:45:36 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2002-09-13 19:45:36 +0000 |
| commit | 3baada38f8047e7821979b961a07e02659cedf99 (patch) | |
| tree | 0953bdd2fc087b841ae4f5b5d6720d57cd965118 | |
| parent | 8b6c1445c268de4c7b8a8ab6d10b560af230370c (diff) | |
| download | emacs-3baada38f8047e7821979b961a07e02659cedf99.tar.gz emacs-3baada38f8047e7821979b961a07e02659cedf99.zip | |
(diff-mode): Turn on compilation-minor-mode
support again, but more carefully this time.
| -rw-r--r-- | lisp/diff-mode.el | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/lisp/diff-mode.el b/lisp/diff-mode.el index ce0a7bb4fb1..b04719298a8 100644 --- a/lisp/diff-mode.el +++ b/lisp/diff-mode.el | |||
| @@ -878,16 +878,19 @@ a diff with \\[diff-reverse-direction]." | |||
| 878 | ;; (set (make-local-variable 'page-delimiter) "--- [^\t]+\t") | 878 | ;; (set (make-local-variable 'page-delimiter) "--- [^\t]+\t") |
| 879 | ;; compile support | 879 | ;; compile support |
| 880 | 880 | ||
| 881 | ;;;; compile support is not good enough yet. Also it can be annoying | 881 | ;;;; compile support is not good enough yet. It should be merged |
| 882 | ;; and should thus only be enabled conditionally. | 882 | ;;;; with diff.el's support. |
| 883 | ;; (set (make-local-variable 'compilation-file-regexp-alist) | 883 | (set (make-local-variable 'compilation-file-regexp-alist) |
| 884 | ;; diff-file-regexp-alist) | 884 | diff-file-regexp-alist) |
| 885 | ;; (set (make-local-variable 'compilation-error-regexp-alist) | 885 | (set (make-local-variable 'compilation-error-regexp-alist) |
| 886 | ;; diff-error-regexp-alist) | 886 | diff-error-regexp-alist) |
| 887 | ;; (when (string-match "\\.rej\\'" (or buffer-file-name "")) | 887 | (when (string-match "\\.rej\\'" (or buffer-file-name "")) |
| 888 | ;; (set (make-local-variable 'compilation-current-file) | 888 | (set (make-local-variable 'compilation-current-file) |
| 889 | ;; (substring buffer-file-name 0 (match-beginning 0)))) | 889 | (substring buffer-file-name 0 (match-beginning 0)))) |
| 890 | ;; (compilation-shell-minor-mode 1) | 890 | ;; Be careful not to change compilation-last-buffer when we're just |
| 891 | ;; doing a C-x v = (for example). | ||
| 892 | (let ((compilation-last-buffer compilation-last-buffer)) | ||
| 893 | (compilation-shell-minor-mode 1)) | ||
| 891 | 894 | ||
| 892 | (when (and (> (point-max) (point-min)) diff-default-read-only) | 895 | (when (and (> (point-max) (point-min)) diff-default-read-only) |
| 893 | (toggle-read-only t)) | 896 | (toggle-read-only t)) |