emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r110639: * lisp/vc/diff-mode.el (diff


From: Stefan Monnier
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r110639: * lisp/vc/diff-mode.el (diff-hunk): `save-excursion' while refining.
Date: Tue, 23 Oct 2012 14:40:23 -0400
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 110639
fixes bug: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=12671
committer: Stefan Monnier <address@hidden>
branch nick: trunk
timestamp: Tue 2012-10-23 14:40:23 -0400
message:
  * lisp/vc/diff-mode.el (diff-hunk): `save-excursion' while refining.
modified:
  lisp/ChangeLog
  lisp/vc/diff-mode.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2012-10-23 17:49:24 +0000
+++ b/lisp/ChangeLog    2012-10-23 18:40:23 +0000
@@ -1,3 +1,8 @@
+2012-10-23  Stefan Monnier  <address@hidden>
+
+       * vc/diff-mode.el (diff-hunk): `save-excursion' while refining
+       (bug#12671).
+
 2012-10-23  Glenn Morris  <address@hidden>
 
        * progmodes/gud.el (gud-menu-map):

=== modified file 'lisp/vc/diff-mode.el'
--- a/lisp/vc/diff-mode.el      2012-10-02 03:49:28 +0000
+++ b/lisp/vc/diff-mode.el      2012-10-23 18:40:23 +0000
@@ -581,8 +581,9 @@
                       (with-local-quit
                         (when (buffer-live-p buffer)
                           (with-current-buffer buffer
-                            (goto-char point)
-                            (diff-refine-hunk))))))))))
+                            (save-excursion
+                              (goto-char point)
+                              (diff-refine-hunk)))))))))))
 
 (easy-mmode-define-navigation
  diff-file diff-file-header-re "file" diff-end-of-file)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]