aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2012-10-23 14:40:23 -0400
committerStefan Monnier2012-10-23 14:40:23 -0400
commit9c3e39f3ff724fdd0e622a8fde608e6346991346 (patch)
tree05bbfdfcfa685845c47ed8c1888a05cc3879ba21
parenta6709bc70c1ddde8f31c1470f06d39f67976d68d (diff)
downloademacs-9c3e39f3ff724fdd0e622a8fde608e6346991346.tar.gz
emacs-9c3e39f3ff724fdd0e622a8fde608e6346991346.zip
* lisp/vc/diff-mode.el (diff-hunk): `save-excursion' while refining.
Fixes: debbugs:12671
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/vc/diff-mode.el5
2 files changed, 8 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 2d3bd095278..05b7cfc176e 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12012-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * vc/diff-mode.el (diff-hunk): `save-excursion' while refining
4 (bug#12671).
5
12012-10-23 Glenn Morris <rgm@gnu.org> 62012-10-23 Glenn Morris <rgm@gnu.org>
2 7
3 * progmodes/gud.el (gud-menu-map): 8 * progmodes/gud.el (gud-menu-map):
diff --git a/lisp/vc/diff-mode.el b/lisp/vc/diff-mode.el
index 0e79c962b47..cdcc7ca4745 100644
--- a/lisp/vc/diff-mode.el
+++ b/lisp/vc/diff-mode.el
@@ -581,8 +581,9 @@ next hunk if TRY-HARDER is non-nil; otherwise signal an error."
581 (with-local-quit 581 (with-local-quit
582 (when (buffer-live-p buffer) 582 (when (buffer-live-p buffer)
583 (with-current-buffer buffer 583 (with-current-buffer buffer
584 (goto-char point) 584 (save-excursion
585 (diff-refine-hunk)))))))))) 585 (goto-char point)
586 (diff-refine-hunk)))))))))))
586 587
587(easy-mmode-define-navigation 588(easy-mmode-define-navigation
588 diff-file diff-file-header-re "file" diff-end-of-file) 589 diff-file diff-file-header-re "file" diff-end-of-file)