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: bug#12492: vc-dir vs. vc-root-dir Date: Wed, 21 Jan 2015 20:55:11 +0000 Message-ID: <87sif3rh00.fsf@violet.siamics.net> References: <505E43E1.9090801@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 1421873757 32377 80.91.229.3 (21 Jan 2015 20:55:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 Jan 2015 20:55:57 +0000 (UTC) To: 12492@debbugs.gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 21 21:55:53 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 1YE2Jc-0002vq-QY for ged-emacs-devel@m.gmane.org; Wed, 21 Jan 2015 21:55:52 +0100 Original-Received: from localhost ([::1]:50136 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YE2Jc-0001Xn-5r for ged-emacs-devel@m.gmane.org; Wed, 21 Jan 2015 15:55:52 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46848) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YE2JF-0001Xd-QW for emacs-devel@gnu.org; Wed, 21 Jan 2015 15:55:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YE2JB-00038T-Nd for emacs-devel@gnu.org; Wed, 21 Jan 2015 15:55:29 -0500 Original-Received: from fely.am-1.org ([2a01:4f8:d15:1b86::2]:56559) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YE2JB-00038L-EG for emacs-devel@gnu.org; Wed, 21 Jan 2015 15:55:25 -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=ouS19/yGf/f2vX/48ST705fAAhQiW6dU6Q6hMWWZgZ4=; b=pOgZyaIJXAk4URMPgtFHxa2qFcZTOUgwa7IYl6MjtOBNtstACUTG5ahRk3o+7xbWe6Dfos6aIuXbrct8gNkifK4P9Oe+cIUi/l6vR1nxX7ZPvn2g9cykOmhnFAzXG1hnicLLrndBipxe9uJ9WexqUHyfEtxmCp4ZdqKxDQzwXIA=; 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 1YE2J7-0004BD-JF; Wed, 21 Jan 2015 20:55:22 +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 1YE2Iy-0004kU-25; Thu, 22 Jan 2015 03:55:12 +0700 Mail-Followup-To: 12492@debbugs.gnu.org In-Reply-To: <505E43E1.9090801@yandex.ru> (Dmitry Gutov's message of "Sun, 23 Sep 2012 03:04:01 +0400") 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:181532 Archived-At: >>>>> Dmitry Gutov writes: [=E2=80=A6] > 2) For almost all backends we can easily deduce the repository root > directory (exceptions: cvs, rcs, sccs), and I believe that in almost > all cases the user wants to see the status of this directory, not of > some subdirectory or any directory unrelated to the current buffer. > Hence the function vc-root-dir, which I think should be bound to 'C-x > v d' and the respective menu item. In the rare case when the user > need to do something unusual, they can do M-x vc-dir. We already have at least two pairs of commands (C-x v l vs. C-x v L /and/ C-x v =3D vs. C-x v D), of which one operates on the current file /and/ the other on the repository as a whole. Is there any good reason we can=E2=80=99t have a similar arrangement for vc-dir (C-x v d) and the proposed vc-root-dir command (say, C-x v /, =E2=80=93 where =E2=80=98/=E2=80=99 is a kind of obvious mnemonic= for =E2=80=9Croot=E2=80=9D)? I find it way better than f302475471df, as it both keeps the current behavior for C-x v d for those who may still want it /and/ it offers a /prompt-free/ shortcut for those who=E2=80=99d always want to use vc-dir on the root. > When the backend doesn't have the function vc-xx-root, vc-root-dir > interactively delegates to vc-dir, so for CVS, for example, the > behavior will not change. That=E2=80=99s certainly sensible, too. [=E2=80=A6] --=20 FSF associate member #7257 http://boycottsystemd.org/ =E2=80=A6 3013 B6A0= 230E 334A