[Top][All Lists]

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

Re: vc-dir default directory: repository root?

From: Dan Nicolaescu
Subject: Re: vc-dir default directory: repository root?
Date: Sun, 11 Jan 2015 14:02:29 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)

Daniel Colascione <address@hidden> writes:

> I'd like to apply this patch. When I use vc-dir, I almost always want to
> look at the root of the repository, not the portion that contains the
> file I'm editing. What do you think?

That's not a good idea.
This code is used by all VCs, and that behavior is not what SVN/CVS
users want...

> diff --git a/lisp/vc/vc-dir.el b/lisp/vc/vc-dir.el
> index 8bba79c..e050c94 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

reply via email to

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