diff options
| author | Jim Blandy | 1993-06-22 03:50:08 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-06-22 03:50:08 +0000 |
| commit | 929cc9de2d35f53d69b1d2cc530684da83b328f3 (patch) | |
| tree | 5777d0f46b60fcc364ab16402c8738c9e8c36f0e /lisp/diff.el | |
| parent | fdce0b3948b9e212a9af63c4c8587fcad44fda30 (diff) | |
| download | emacs-929cc9de2d35f53d69b1d2cc530684da83b328f3.tar.gz emacs-929cc9de2d35f53d69b1d2cc530684da83b328f3.zip | |
* 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.el | 3 |
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.") | |||
| 113 | (match-beginning subexpr) | 113 | (match-beginning subexpr) |
| 114 | (match-end subexpr))))) | 114 | (match-end subexpr))))) |
| 115 | (save-excursion | 115 | (save-excursion |
| 116 | (set-buffer (find-file-noselect file)) | 116 | (save-match-data |
| 117 | (set-buffer (find-file-noselect file))) | ||
| 117 | (save-excursion | 118 | (save-excursion |
| 118 | (goto-line line) | 119 | (goto-line line) |
| 119 | (point-marker))))) | 120 | (point-marker))))) |