diff options
| author | Richard M. Stallman | 2003-10-20 23:32:51 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2003-10-20 23:32:51 +0000 |
| commit | a6d3209fdcd1b9dfe8c6786e05c4af07d1d60ea6 (patch) | |
| tree | 2eea8aebceb5126655842dd57f04fd594604f7cf /lisp/diff.el | |
| parent | 6166a68eefd067cde05066a92fd576c1ffea62ee (diff) | |
| download | emacs-a6d3209fdcd1b9dfe8c6786e05c4af07d1d60ea6.tar.gz emacs-a6d3209fdcd1b9dfe8c6786e05c4af07d1d60ea6.zip | |
(diff-parse-differences): Don't visit the files now;
instead, just record the error locus.
Diffstat (limited to 'lisp/diff.el')
| -rw-r--r-- | lisp/diff.el | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/lisp/diff.el b/lisp/diff.el index 9f1d3fa1732..5981e1888e1 100644 --- a/lisp/diff.el +++ b/lisp/diff.el | |||
| @@ -118,7 +118,7 @@ is nil, REGEXP matches only half a hunk.") | |||
| 118 | (function (lambda (file subexpr) | 118 | (function (lambda (file subexpr) |
| 119 | (setq compilation-error-list | 119 | (setq compilation-error-list |
| 120 | (cons | 120 | (cons |
| 121 | (cons (save-excursion | 121 | (list (save-excursion |
| 122 | ;; Report location of message | 122 | ;; Report location of message |
| 123 | ;; at beginning of line. | 123 | ;; at beginning of line. |
| 124 | (goto-char | 124 | (goto-char |
| @@ -126,16 +126,12 @@ is nil, REGEXP matches only half a hunk.") | |||
| 126 | (beginning-of-line) | 126 | (beginning-of-line) |
| 127 | (point-marker)) | 127 | (point-marker)) |
| 128 | ;; Report location of corresponding text. | 128 | ;; Report location of corresponding text. |
| 129 | (let ((line (string-to-int | 129 | (list file nil) |
| 130 | (buffer-substring | 130 | (string-to-int |
| 131 | (match-beginning subexpr) | 131 | (buffer-substring |
| 132 | (match-end subexpr))))) | 132 | (match-beginning subexpr) |
| 133 | (save-excursion | 133 | (match-end subexpr))) |
| 134 | (save-match-data | 134 | nil) |
| 135 | (set-buffer (find-file-noselect file))) | ||
| 136 | (save-excursion | ||
| 137 | (goto-line line) | ||
| 138 | (point-marker))))) | ||
| 139 | compilation-error-list))))) | 135 | compilation-error-list))))) |
| 140 | 136 | ||
| 141 | (found-desired nil) | 137 | (found-desired nil) |