diff options
author | Daniel Colascione <dancol@dancol.org> | 2015-01-19 21:44:30 -0800 |
---|---|---|
committer | Daniel Colascione <dancol@dancol.org> | 2015-01-19 21:45:25 -0800 |
commit | f302475471df0553b3ee442112981f9b146e0b55 (patch) | |
tree | 38dd9b9a4d9c069bcfdd3022fa17c43501b49f41 | |
parent | ef5a526f1b51b76b0f753e0936c80743a7f4463d (diff) |
Make vc-dir default to repository root
* lisp/vc/vc-dir.el (vc-dir): Default to repository root, not
default-directory.
-rw-r--r-- | lisp/ChangeLog | 5 | ||||
-rw-r--r-- | lisp/vc/vc-dir.el | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index cabad65d8c..22a06a9168 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2015-01-20 Daniel Colascione <dancol@dancol.org> + + * vc/vc-dir.el (vc-dir): Default to repository root, not + default-directory. + 2015-01-20 Dmitry Gutov <dgutov@yandex.ru> * progmodes/etags.el (xref-etags-location): New class. diff --git a/lisp/vc/vc-dir.el b/lisp/vc/vc-dir.el index 8bba79c111..e050c94750 100644 --- a/lisp/vc/vc-dir.el +++ b/lisp/vc/vc-dir.el @@ -1241,7 +1241,7 @@ These are the commands available for use in the file status buffer: ;; Otherwise if you do C-x v d -> C-x C-f -> C-c v d ;; you may get a new *vc-dir* buffer, different from the original (file-truename (read-directory-name "VC status for directory: " - default-directory default-directory t + (vc-root-dir) nil t nil)) (if current-prefix-arg (intern |