From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: vc-dir default directory: repository root? Date: Sun, 11 Jan 2015 14:02:29 -0500 Message-ID: References: <54B0CC33.2050100@dancol.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1421002973 767 80.91.229.3 (11 Jan 2015 19:02:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 11 Jan 2015 19:02:53 +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 20:02:46 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 1YANmg-0002YN-F6 for ged-emacs-devel@m.gmane.org; Sun, 11 Jan 2015 20:02:46 +0100 Original-Received: from localhost ([::1]:59128 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YANmg-0000t4-0E for ged-emacs-devel@m.gmane.org; Sun, 11 Jan 2015 14:02:46 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57913) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YANmS-0000sA-C5 for emacs-devel@gnu.org; Sun, 11 Jan 2015 14:02:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YANmQ-0007MF-0e for emacs-devel@gnu.org; Sun, 11 Jan 2015 14:02:32 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49098) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YANmP-0007MB-U8 for emacs-devel@gnu.org; Sun, 11 Jan 2015 14:02:29 -0500 Original-Received: from dann by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1YANmP-0004bZ-Ff; Sun, 11 Jan 2015 14:02:29 -0500 In-Reply-To: <54B0CC33.2050100@dancol.org> (Daniel Colascione's message of "Fri, 09 Jan 2015 22:52:35 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e 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:181157 Archived-At: Daniel Colascione 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