diff options
Diffstat (limited to 'lisp/diff.el')
| -rw-r--r-- | lisp/diff.el | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/lisp/diff.el b/lisp/diff.el index ae49cf1f371..4e8d54afcd9 100644 --- a/lisp/diff.el +++ b/lisp/diff.el | |||
| @@ -24,7 +24,7 @@ | |||
| 24 | 24 | ||
| 25 | (require 'compile) | 25 | (require 'compile) |
| 26 | 26 | ||
| 27 | (defvar diff-switches nil | 27 | (defvar diff-switches "-c" |
| 28 | "*A string or list of strings specifying switches to be be passed to diff.") | 28 | "*A string or list of strings specifying switches to be be passed to diff.") |
| 29 | 29 | ||
| 30 | (defvar diff-regexp-alist | 30 | (defvar diff-regexp-alist |
| @@ -93,9 +93,14 @@ is nil, REGEXP matches only half a section.") | |||
| 93 | (function (lambda (file subexpr) | 93 | (function (lambda (file subexpr) |
| 94 | (setq compilation-error-list | 94 | (setq compilation-error-list |
| 95 | (cons | 95 | (cons |
| 96 | (cons (set-marker (make-marker) | 96 | (cons (save-excursion |
| 97 | (match-beginning subexpr) | 97 | ;; Report location of message |
| 98 | (current-buffer)) | 98 | ;; at beginning of line. |
| 99 | (goto-char | ||
| 100 | (match-beginning subexpr)) | ||
| 101 | (beginning-of-line) | ||
| 102 | (point-marker)) | ||
| 103 | ;; Report location of corresponding text. | ||
| 99 | (let ((line (string-to-int | 104 | (let ((line (string-to-int |
| 100 | (buffer-substring | 105 | (buffer-substring |
| 101 | (match-beginning subexpr) | 106 | (match-beginning subexpr) |