From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: vc-dir default directory: repository root? Date: Wed, 21 Jan 2015 19:48:48 +0200 Message-ID: <54BFE680.9000109@yandex.ru> References: <54B0CC33.2050100@dancol.org> <54BC60A8.6040401@yandex.ru> <54BD9071.5070802@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1421862550 2482 80.91.229.3 (21 Jan 2015 17:49:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 Jan 2015 17:49:10 +0000 (UTC) Cc: Daniel Colascione , Emacs developers To: Dan Nicolaescu , Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 21 18:49:10 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 1YDzOu-0006Bm-WB for ged-emacs-devel@m.gmane.org; Wed, 21 Jan 2015 18:49:09 +0100 Original-Received: from localhost ([::1]:49541 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDzOt-0005PB-Sm for ged-emacs-devel@m.gmane.org; Wed, 21 Jan 2015 12:49:07 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34864) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDzOg-0005P1-E5 for emacs-devel@gnu.org; Wed, 21 Jan 2015 12:48:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YDzOd-0004qC-Iy for emacs-devel@gnu.org; Wed, 21 Jan 2015 12:48:54 -0500 Original-Received: from mail-wi0-x236.google.com ([2a00:1450:400c:c05::236]:50135) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDzOd-0004q1-CV; Wed, 21 Jan 2015 12:48:51 -0500 Original-Received: by mail-wi0-f182.google.com with SMTP id n3so33464637wiv.3; Wed, 21 Jan 2015 09:48:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=J1EoRxZm6deU9ds1WK+YKBItb3fgBKHxijkK2c8gTpw=; b=E9RsgAltAzLpAa+DeBl2Lmj2uQmN/NsCU7IewXG5jvMk1gxFeMKxfzoPPdyB/MFaql Uz0brXjnxH01KFNnl4JR7LR7sDnlVDzAS4O0TL7QPc3HrFlgsdFJ8+gXRXkoM49oZVpn xXfhBRzhG81u8S595/kMW9PcYewtPDVLFozZyc8gGsjWhlpyDOsAIu9soLqGHNE8ffMx CXc5W4w+KSprck4guuLFOVAh9pS44nLVxgXx8cWMkz4BE0Rgr9YLqtgSFBJoqKD6GL15 BpStKIgrkZm5QJgGSfmwOHEP+xBWm8hiKUAD3e75xIGpIaPaJEsYSpUQZTSemPRngzgt VAew== X-Received: by 10.194.142.174 with SMTP id rx14mr28203575wjb.110.1421862530394; Wed, 21 Jan 2015 09:48:50 -0800 (PST) Original-Received: from [192.168.0.185] (static-nbl2-118.cytanet.com.cy. [212.31.107.118]) by mx.google.com with ESMTPSA id eu8sm8175110wib.21.2015.01.21.09.48.49 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Jan 2015 09:48:49 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:33.0) Gecko/20100101 Thunderbird/33.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::236 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:181509 Archived-At: On 01/21/2015 07:33 PM, Dan Nicolaescu wrote: >> We don't really know what "most people like". We do know that a whole lot of people consider Magit to be the best thing since sliced bread. It does not provide such functionality, and I don't see anyone asking. With prefix, it allows you to choose a different repository. > That's not quite true, I wrote vc-dir.el in 2007, mostly to deal better > with git and hg project, "project root" was quite well known at a time. If the main purpose of vc-dir is to deal with modern systems better, we should better follow their conventions. > 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. 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.