changeset 3874:0a694f8e1730

* diff.el (diff-parse-differences): Preserve the match data across the call to find-file-noselect.
author Jim Blandy <jimb@redhat.com>
date Tue, 22 Jun 1993 03:50:08 +0000
parents e67c6c10dd7c
children c5b6f641698a
files lisp/diff.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/diff.el	Tue Jun 22 03:44:28 1993 +0000
+++ b/lisp/diff.el	Tue Jun 22 03:50:08 1993 +0000
@@ -113,7 +113,8 @@
 						(match-beginning subexpr)
 						(match-end subexpr)))))
 				    (save-excursion
-				      (set-buffer (find-file-noselect file))
+				      (save-match-data
+					(set-buffer (find-file-noselect file)))
 				      (save-excursion
 					(goto-line line)
 					(point-marker)))))