summaryrefslogtreecommitdiff
path: root/lisp/diff.el
diff options
context:
space:
mode:
authorJim Blandy <jimb@redhat.com>1993-06-22 03:50:08 +0000
committerJim Blandy <jimb@redhat.com>1993-06-22 03:50:08 +0000
commitfc6b87ea7f7c325471f715dc48e80697c005f868 (patch)
tree630ed9212dcbc4e524280629f85f1b285e5ded1a /lisp/diff.el
parent118a5aa950c69cda9496e4544b479c491eead47a (diff)
downloademacs-fc6b87ea7f7c325471f715dc48e80697c005f868.tar.gz
* diff.el (diff-parse-differences): Preserve the match data
across the call to find-file-noselect.
Diffstat (limited to 'lisp/diff.el')
-rw-r--r--lisp/diff.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/diff.el b/lisp/diff.el
index d4c5f5d3a2e..7043c9ac73e 100644
--- a/lisp/diff.el
+++ b/lisp/diff.el
@@ -113,7 +113,8 @@ is nil, REGEXP matches only half a section.")
(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)))))