aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Gutov2015-05-18 02:01:04 +0300
committerDmitry Gutov2015-05-18 02:01:16 +0300
commitd7b3166e2b919df811694778dd4bde3e26e74cbc (patch)
tree698205535c0894c6d1c6f73083561dc86abee4cd
parent76f2d19edd7180874f9539897f674ae05d892419 (diff)
downloademacs-d7b3166e2b919df811694778dd4bde3e26e74cbc.tar.gz
emacs-d7b3166e2b919df811694778dd4bde3e26e74cbc.zip
Set up default-directory
* lisp/vc/vc-annotate.el (vc-annotate-mode-map): Remove duplicate binding for `v'. (vc-annotate-show-changeset-diff-revision-at-line): Set up an appropriate value for default-directory.
-rw-r--r--lisp/vc/vc-annotate.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/vc/vc-annotate.el b/lisp/vc/vc-annotate.el
index 8bcea5f164d..d369c90915a 100644
--- a/lisp/vc/vc-annotate.el
+++ b/lisp/vc/vc-annotate.el
@@ -175,7 +175,6 @@ List of factors, used to expand/compress the time scale. See `vc-annotate'."
175 (define-key m "p" 'vc-annotate-prev-revision) 175 (define-key m "p" 'vc-annotate-prev-revision)
176 (define-key m "w" 'vc-annotate-working-revision) 176 (define-key m "w" 'vc-annotate-working-revision)
177 (define-key m "v" 'vc-annotate-toggle-annotation-visibility) 177 (define-key m "v" 'vc-annotate-toggle-annotation-visibility)
178 (define-key m "v" 'vc-annotate-toggle-annotation-visibility)
179 (define-key m "\C-m" 'vc-annotate-goto-line) 178 (define-key m "\C-m" 'vc-annotate-goto-line)
180 m) 179 m)
181 "Local keymap used for VC-Annotate mode.") 180 "Local keymap used for VC-Annotate mode.")
@@ -605,7 +604,10 @@ the file in question, search for the log entry required and move point."
605 (interactive) 604 (interactive)
606 (when (eq 'file (vc-call-backend vc-annotate-backend 'revision-granularity)) 605 (when (eq 'file (vc-call-backend vc-annotate-backend 'revision-granularity))
607 (error "The %s backend does not support changeset diffs" vc-annotate-backend)) 606 (error "The %s backend does not support changeset diffs" vc-annotate-backend))
608 (vc-annotate-show-diff-revision-at-line-internal nil)) 607 ;; Make sure `diff-goto-source' will be able to find all files.
608 (let ((default-directory (vc-call-backend vc-annotate-backend
609 'root default-directory)))
610 (vc-annotate-show-diff-revision-at-line-internal nil)))
609 611
610(defun vc-annotate-warp-revision (revspec &optional file) 612(defun vc-annotate-warp-revision (revspec &optional file)
611 "Annotate the revision described by REVSPEC. 613 "Annotate the revision described by REVSPEC.