aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/diff.el
diff options
context:
space:
mode:
authorRichard M. Stallman1992-09-20 20:58:22 +0000
committerRichard M. Stallman1992-09-20 20:58:22 +0000
commitc21d3ee2cf7e0686bb2e19eb8d2224597035c672 (patch)
tree3e0fb2b0ad1a2480125ccf6341e5be10f9eec8f1 /lisp/diff.el
parent09121adc4e1561d51fc01c834ab281f3fcf074c9 (diff)
downloademacs-c21d3ee2cf7e0686bb2e19eb8d2224597035c672.tar.gz
emacs-c21d3ee2cf7e0686bb2e19eb8d2224597035c672.zip
entered into RCS
Diffstat (limited to 'lisp/diff.el')
-rw-r--r--lisp/diff.el13
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)