From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Wolfgang Jenkner Newsgroups: gmane.emacs.devel Subject: Re: vc-dir default directory: repository root? Date: Sun, 11 Jan 2015 16:53:18 +0100 Message-ID: <85vbkdqpox.fsf@iznogoud.viz> References: <54B0CC33.2050100@dancol.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1420991624 25349 80.91.229.3 (11 Jan 2015 15:53:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 11 Jan 2015 15:53:44 +0000 (UTC) Cc: Emacs developers To: Daniel Colascione Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 11 16:53:36 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 1YAKpa-0007p0-Ir for ged-emacs-devel@m.gmane.org; Sun, 11 Jan 2015 16:53:34 +0100 Original-Received: from localhost ([::1]:58620 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAKpZ-0008V4-Cm for ged-emacs-devel@m.gmane.org; Sun, 11 Jan 2015 10:53:33 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58772) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAKpV-0008Uo-RS for emacs-devel@gnu.org; Sun, 11 Jan 2015 10:53:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YAKpP-00085T-Mo for emacs-devel@gnu.org; Sun, 11 Jan 2015 10:53:29 -0500 Original-Received: from b2bfep11.mx.upcmail.net ([62.179.121.56]:39972) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAKpP-00081Y-3V for emacs-devel@gnu.org; Sun, 11 Jan 2015 10:53:23 -0500 Original-Received: from edge11.upcmail.net ([192.168.13.81]) by b2bfep11.mx.upcmail.net (InterMail vM.8.01.05.11 201-2260-151-128-20120928) with ESMTP id <20150111155320.XUGN22355.b2bfep11-int.chello.at@edge11.upcmail.net> for ; Sun, 11 Jan 2015 16:53:20 +0100 Original-Received: from iznogoud.viz ([91.119.83.248]) by edge11.upcmail.net with edge id eftK1p0045MU3DX0BftKz8; Sun, 11 Jan 2015 16:53:20 +0100 X-SourceIP: 91.119.83.248 Original-Received: from wolfgang by iznogoud.viz with local (Exim 4.84 (FreeBSD)) (envelope-from ) id 1YAKpK-0000Gr-Pc; Sun, 11 Jan 2015 16:53:18 +0100 Mail-Followup-To: Daniel Colascione , Emacs developers In-Reply-To: <54B0CC33.2050100@dancol.org> (Daniel Colascione's message of "Fri, 09 Jan 2015 22:52:35 -0800") User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (berkeley-unix) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 62.179.121.56 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:181152 Archived-At: On Fri, Jan 09 2015, Daniel Colascione wrote: > 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? [...] > (file-truename (read-directory-name "VC status for directory: " > - default-directory default-directory t > + (vc-root-dir) nil t It's much more convenient to delete some trailing components of the directory name than to add them. I think that the current behaviour makes sense, in particular for large or rather heterogeneous repos. Wolfgang (stating the obvious)