aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/diff.el18
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)