diff options
| author | Stefan Monnier | 2001-01-24 23:26:40 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2001-01-24 23:26:40 +0000 |
| commit | cdbb79c1ed6de3e378af811cdbedf2d08192b14e (patch) | |
| tree | b6a7d5aad2b172093fd00f331efa0cc8e772a13c /lisp | |
| parent | 411e42030513baa141c736c709bb9c1e2817e3b4 (diff) | |
| download | emacs-cdbb79c1ed6de3e378af811cdbedf2d08192b14e.tar.gz emacs-cdbb79c1ed6de3e378af811cdbedf2d08192b14e.zip | |
(diff-mode): Disable preliminary support for `compile'.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/diff-mode.el | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/lisp/diff-mode.el b/lisp/diff-mode.el index 8d836894f5d..b53d36bfc79 100644 --- a/lisp/diff-mode.el +++ b/lisp/diff-mode.el | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | ;; Author: Stefan Monnier <monnier@cs.yale.edu> | 5 | ;; Author: Stefan Monnier <monnier@cs.yale.edu> |
| 6 | ;; Keywords: patch diff | 6 | ;; Keywords: patch diff |
| 7 | ;; Revision: $Id: diff-mode.el,v 1.34 2000/11/12 16:59:52 monnier Exp $ | 7 | ;; Revision: $Id: diff-mode.el,v 1.35 2000/11/14 18:09:21 fx Exp $ |
| 8 | 8 | ||
| 9 | ;; This file is part of GNU Emacs. | 9 | ;; This file is part of GNU Emacs. |
| 10 | 10 | ||
| @@ -25,7 +25,7 @@ | |||
| 25 | 25 | ||
| 26 | ;;; Commentary: | 26 | ;;; Commentary: |
| 27 | 27 | ||
| 28 | ;; Provides support for font-lock patterns, outline-regexps, navigation | 28 | ;; Provides support for font-lock, outline, navigation |
| 29 | ;; commands, editing and various conversions as well as jumping | 29 | ;; commands, editing and various conversions as well as jumping |
| 30 | ;; to the corresponding source file. | 30 | ;; to the corresponding source file. |
| 31 | 31 | ||
| @@ -45,7 +45,8 @@ | |||
| 45 | ;; Todo: | 45 | ;; Todo: |
| 46 | 46 | ||
| 47 | ;; - Improve narrowed-view support. | 47 | ;; - Improve narrowed-view support. |
| 48 | ;; - Improve the `compile' support (?). | 48 | ;; - re-enable (conditionally) the `compile' support after improving it to use |
| 49 | ;; the same code as diff-goto-source. | ||
| 49 | ;; - Support for # comments in context->unified. | 50 | ;; - Support for # comments in context->unified. |
| 50 | ;; - Do a fuzzy search in diff-goto-source. | 51 | ;; - Do a fuzzy search in diff-goto-source. |
| 51 | ;; - Allow diff.el to use diff-mode. | 52 | ;; - Allow diff.el to use diff-mode. |
| @@ -874,14 +875,18 @@ This mode runs `diff-mode-hook'. | |||
| 874 | ;; (set (make-local-variable 'paragraph-separate) paragraph-start) | 875 | ;; (set (make-local-variable 'paragraph-separate) paragraph-start) |
| 875 | ;; (set (make-local-variable 'page-delimiter) "--- [^\t]+\t") | 876 | ;; (set (make-local-variable 'page-delimiter) "--- [^\t]+\t") |
| 876 | ;; compile support | 877 | ;; compile support |
| 877 | (set (make-local-variable 'compilation-file-regexp-alist) | 878 | |
| 878 | diff-file-regexp-alist) | 879 | ;;;; compile support is not good enough yet. Also it can be annoying |
| 879 | (set (make-local-variable 'compilation-error-regexp-alist) | 880 | ;; and should thus only be enabled conditionally. |
| 880 | diff-error-regexp-alist) | 881 | ;; (set (make-local-variable 'compilation-file-regexp-alist) |
| 881 | (when (string-match "\\.rej\\'" (or buffer-file-name "")) | 882 | ;; diff-file-regexp-alist) |
| 882 | (set (make-local-variable 'compilation-current-file) | 883 | ;; (set (make-local-variable 'compilation-error-regexp-alist) |
| 883 | (substring buffer-file-name 0 (match-beginning 0)))) | 884 | ;; diff-error-regexp-alist) |
| 884 | (compilation-shell-minor-mode 1) | 885 | ;; (when (string-match "\\.rej\\'" (or buffer-file-name "")) |
| 886 | ;; (set (make-local-variable 'compilation-current-file) | ||
| 887 | ;; (substring buffer-file-name 0 (match-beginning 0)))) | ||
| 888 | ;; (compilation-shell-minor-mode 1) | ||
| 889 | |||
| 885 | ;; setup change hooks | 890 | ;; setup change hooks |
| 886 | (toggle-read-only t) | 891 | (toggle-read-only t) |
| 887 | (if (not diff-update-on-the-fly-flag) | 892 | (if (not diff-update-on-the-fly-flag) |
| @@ -1086,7 +1091,7 @@ With a prefix argument, REVERSE the hunk." | |||
| 1086 | ((null line-offset) | 1091 | ((null line-offset) |
| 1087 | (error "Can't find the text to patch")) | 1092 | (error "Can't find the text to patch")) |
| 1088 | ((and switched | 1093 | ((and switched |
| 1089 | ;; A reversed patch was detected, perhaps apply it in reverse | 1094 | ;; A reversed patch was detected, perhaps apply it in reverse. |
| 1090 | (not (save-window-excursion | 1095 | (not (save-window-excursion |
| 1091 | (pop-to-buffer buf) | 1096 | (pop-to-buffer buf) |
| 1092 | (goto-char (+ pos (cdr old))) | 1097 | (goto-char (+ pos (cdr old))) |