From: Dan Nicolaescu <dann@gnu.org>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: Daniel Colascione <dancol@dancol.org>,
Emacs developers <emacs-devel@gnu.org>
Subject: Re: vc-dir default directory: repository root?
Date: Tue, 20 Jan 2015 15:06:43 -0500 [thread overview]
Message-ID: <yxqh9vlz06k.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <54BD9071.5070802@yandex.ru> (Dmitry Gutov's message of "Tue, 20 Jan 2015 01:17:05 +0200")
Dmitry Gutov <dgutov@yandex.ru> writes:
> On 01/19/2015 05:47 PM, Dan Nicolaescu wrote:
>
>> CVS does not work on the root level.
>> Even in SVN, it's ok and desirable to just look at a subdirectory.
>
> Isn't that an implementation detail, as far as the current discussion
> is concerned? Git can also show only the status of files in a
> subdirectory, if you ask it.
>
>> vc-dir has used the current directory since the beginning, I haven't
>> seen any request to change it until now, it doesn't seem like changing
>> the default behavior after so many years when there were no requests to
>> do it is a good idea just because someone sent a patch to change it.
>
> You've missed http://debbugs.gnu.org/12492, then. This patch also
> constitutes one request, obviously.
>
> And you shouldn't forget that VC is not the most popular VCS package
> among advanced Emacs users, Magit is. We're playing catch-up.
>
>> vc-hg displays the "Root" in the vc-dir header. The intention with that
>> was to make it a button that would display vc-dir on the top level
>> directory.
>> All backends (especially vc-git) should implement that Root header and
>> implement a button for it...
>
> That's an awkward proposal. To have to open vc-dir, then move my hand
> to the mouse, or point to the button, then push it...
Buttons can be pressed with the keyboard. That was just another way to
get to the root...
> Root is a good default, so vc-dir buffer for it should be easier to
> create than for a subdirectory.
It looks like root is a personal preference, there's still not much in
terms of solid arguments of why to change a long time default, and the
patch doesn't even give a way to get the current behavior, which most
people like.
You can make C-u C-x v d start vc-dir in the root directory. Or you can
put the root directory in the history so that when C-x v d prompts for a
directory it's just a M-p away. Or highlight the root in the path shown
by C-x v d. These can be accomplished without removing the current
behavior.
next prev parent reply other threads:[~2015-01-20 20:06 UTC|newest]
Thread overview: 49+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-10 6:52 vc-dir default directory: repository root? Daniel Colascione
2015-01-11 1:26 ` Stefan Monnier
2015-01-11 8:33 ` Andreas Schwab
2015-01-11 15:53 ` Wolfgang Jenkner
2015-01-11 19:02 ` Dan Nicolaescu
2015-01-19 1:40 ` Dmitry Gutov
2015-01-19 15:47 ` Dan Nicolaescu
2015-01-19 23:17 ` Dmitry Gutov
2015-01-20 20:06 ` Dan Nicolaescu [this message]
2015-01-21 14:33 ` Stefan Monnier
2015-01-21 16:20 ` Ivan Shmakov
2015-01-21 17:33 ` Dan Nicolaescu
2015-01-21 17:48 ` Dmitry Gutov
2015-01-21 18:22 ` Ivan Shmakov
2015-01-21 18:43 ` Dmitry Gutov
2015-01-21 19:22 ` Ivan Shmakov
2015-01-21 18:47 ` João Távora
2015-01-21 19:06 ` Dmitry Gutov
2015-01-21 20:14 ` João Távora
2015-01-21 20:30 ` Dmitry Gutov
2015-01-22 12:40 ` João Távora
2015-01-22 15:19 ` Dan Nicolaescu
2015-01-21 19:35 ` Wolfgang Jenkner
2015-01-21 19:42 ` Daniel Colascione
2015-01-21 20:16 ` Stefan Monnier
2015-01-22 9:59 ` Daniel Colascione
2015-01-22 1:44 ` Dmitry Gutov
2015-01-22 9:17 ` Andreas Schwab
2015-01-22 11:14 ` Dmitry Gutov
2015-01-22 12:04 ` Jan D.
2015-01-22 14:18 ` Stefan Monnier
2015-01-22 14:23 ` Dmitry Gutov
2015-01-22 14:38 ` Andreas Schwab
2015-01-22 14:46 ` Dmitry Gutov
2015-01-22 15:30 ` Drew Adams
2015-01-22 16:16 ` Dmitry Gutov
2015-01-22 15:40 ` Andreas Schwab
2015-01-22 14:45 ` Ivan Shmakov
2015-01-22 14:49 ` Dmitry Gutov
2015-01-22 15:50 ` Ivan Shmakov
2015-01-22 16:26 ` Dmitry Gutov
2015-01-22 16:11 ` Wolfgang Jenkner
2015-01-19 1:38 ` Dmitry Gutov
2015-01-19 3:01 ` Stefan Monnier
2015-01-19 4:54 ` Dmitry Gutov
2015-01-19 14:16 ` Stefan Monnier
2015-01-19 14:55 ` Dmitry Gutov
2015-01-19 14:57 ` Daniel Colascione
2015-01-19 22:43 ` Dmitry Gutov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=yxqh9vlz06k.fsf@fencepost.gnu.org \
--to=dann@gnu.org \
--cc=dancol@dancol.org \
--cc=dgutov@yandex.ru \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).