From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ivan Shmakov Newsgroups: gmane.emacs.devel Subject: Re: vc-dir default directory: repository root? Date: Wed, 21 Jan 2015 18:22:55 +0000 Message-ID: <871tmoro1s.fsf@violet.siamics.net> References: <54B0CC33.2050100@dancol.org> <54BC60A8.6040401@yandex.ru> <54BD9071.5070802@yandex.ru> <54BFE680.9000109@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1421864615 6386 80.91.229.3 (21 Jan 2015 18:23:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 Jan 2015 18:23:35 +0000 (UTC) To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 21 19:23:28 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YDzw5-0000bw-DL for ged-emacs-devel@m.gmane.org; Wed, 21 Jan 2015 19:23:25 +0100 Original-Received: from localhost ([::1]:49670 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDzw4-0006vD-Mo for ged-emacs-devel@m.gmane.org; Wed, 21 Jan 2015 13:23:24 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44575) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDzvq-0006uu-Iy for emacs-devel@gnu.org; Wed, 21 Jan 2015 13:23:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YDzvp-0000Sx-4c for emacs-devel@gnu.org; Wed, 21 Jan 2015 13:23:10 -0500 Original-Received: from fely.am-1.org ([2a01:4f8:d15:1b86::2]:56543) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDzvo-0000Rc-Qw for emacs-devel@gnu.org; Wed, 21 Jan 2015 13:23:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=siamics.net; s=a2013295; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:Sender:References:Subject:To:From; bh=vSJVX11Lk/zEnpHyxeOt1sCgl/ZiCq45HKtxVYTjUb4=; b=M9h2maA+ufzfuwBjiECDUs2WWiL53v37m2JGRhMMdS+dXCN4u5dOsp7Oxh5cEKnizsy3HGUEneBuXjg1Uxccvnp2heHBZgiJOj7Dm0tTWSyd7o9ATXkq8edah8Znd0Jj7WgpjvZAO3K7SirILOWvJOiWb3wKdc26fnPsfU+3TV0=; Original-Received: from [2a02:2560:6d4:26ca::1:1d] (helo=violet.siamics.net) by fely.am-1.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1YDzvl-00034T-E6 for emacs-devel@gnu.org; Wed, 21 Jan 2015 18:23:06 +0000 Original-Received: from localhost ([::1] helo=violet.siamics.net) by violet.siamics.net with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1YDzvb-0004Jl-QJ for emacs-devel@gnu.org; Thu, 22 Jan 2015 01:22:55 +0700 Mail-Followup-To: Emacs developers In-Reply-To: <54BFE680.9000109@yandex.ru> (Dmitry Gutov's message of "Wed, 21 Jan 2015 19:48:48 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a01:4f8:d15:1b86::2 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:181511 Archived-At: >>>>> Dmitry Gutov writes: >>>>> On 01/21/2015 07:33 PM, Dan Nicolaescu wrote: [=E2=80=A6] >> I provided an alternative suggestion: make C-u C-x v d default to >> the root directory, or something to put it in history. > That's not good. 'C-u' should mean "I want to choose", and no prefix > should mean "do the best possible thing", which is to use the > repository root, since there's no obvious other choice. The obvious other choice is, obviously, to use default-directory. > I'd propose a patch like that, but vc-dir already changes behavior > with prefix, and in a different way (allows to select the backend). > Not sure how best to combine the two. I=E2=80=99d rather support the addition of a separate vc-root-dir command (as per http://debbugs.gnu.org/12492), especially given that we already have vc-root-diff and vc-print-root-log. --=20 FSF associate member #7257 Zybex (Moody Malongo Mix) =E2=80=94 Ahriakin = =E2=80=A6 230E 334A