]> code.delx.au - gnu-emacs-elpa/commitdiff
diff-hl-diff-goto-hunk: Fix when the process call is async
authorDmitry Gutov <dgutov@yandex.ru>
Mon, 1 Oct 2012 23:42:36 +0000 (03:42 +0400)
committerDmitry Gutov <dgutov@yandex.ru>
Tue, 2 Oct 2012 04:05:55 +0000 (08:05 +0400)
Like with Bazaar.

diff-hl.el

index 46a54c34eb3726a9315ad27815ed35b74903e599..0dd0f47bec4edd0e5f0e12f161210dbbcf994af6 100644 (file)
@@ -3,7 +3,7 @@
 ;; Author:   Dmitry Gutov <dgutov@yandex.ru>\r
 ;; URL:      https://github.com/dgutov/diff-hl\r
 ;; Keywords: vc, diff\r
-;; Version:  1.3.2\r
+;; Version:  1.3.3\r
 ;; Package-Requires: ((smartrep "0.0.3"))\r
 \r
 ;; This file is not part of GNU Emacs.\r
     (vc-diff-internal t (vc-deduce-fileset) nil nil t)\r
     (vc-exec-after `(if (eobp)\r
                         (with-current-buffer ,buffer (diff-hl-remove-overlays))\r
-                      (diff-hl-diff-skip-to ,line)))))\r
+                      (diff-hl-diff-skip-to ,line)\r
+                      (setq vc-sentinel-movepoint (point))))))\r
 \r
 (defun diff-hl-diff-skip-to (line)\r
   "In `diff-mode', skip to the hunk and line corresponding to LINE\r