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 19:22:57 +0000 Message-ID: <87wq4gq6pa.fsf@violet.siamics.net> References: <54B0CC33.2050100@dancol.org> <54BC60A8.6040401@yandex.ru> <54BD9071.5070802@yandex.ru> <54BFE680.9000109@yandex.ru> <871tmoro1s.fsf@violet.siamics.net> <54BFF33B.2020409@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 1421868208 3258 80.91.229.3 (21 Jan 2015 19:23:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 Jan 2015 19:23:28 +0000 (UTC) To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 21 20: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 1YE0s9-0001FQ-4O for ged-emacs-devel@m.gmane.org; Wed, 21 Jan 2015 20:23:25 +0100 Original-Received: from localhost ([::1]:49862 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YE0s8-0001Ri-GS for ged-emacs-devel@m.gmane.org; Wed, 21 Jan 2015 14:23:24 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56288) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YE0rw-0001RP-28 for emacs-devel@gnu.org; Wed, 21 Jan 2015 14:23:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YE0rs-0003Wq-QA for emacs-devel@gnu.org; Wed, 21 Jan 2015 14:23:12 -0500 Original-Received: from fely.am-1.org ([2a01:4f8:d15:1b86::2]:56548) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YE0rs-0003V1-HP for emacs-devel@gnu.org; Wed, 21 Jan 2015 14:23:08 -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=r56u3DaW0smRrbNxiNMcIgm49RE2+A/OsuBPgd3MKIU=; b=qHhpB7DJ1+K4FUJ/WFRoWyvEVvgmy3UkGFC2KVsc4TlecJshzTWeKwTxLgF5ALJnKal/Am3ReD9CcLSMOKtHa7pt5bNYKhNIKRS5Yl2hP+bph5Ld6X9HxdB9dGqCix067I3IDvdwzS5Lj/CMPW45J2rftC8xMjukBFSl8/cICyQ=; 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 1YE0ro-0003Vi-Th for emacs-devel@gnu.org; Wed, 21 Jan 2015 19:23:05 +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 1YE0rh-0004Qh-I1 for emacs-devel@gnu.org; Thu, 22 Jan 2015 02:22:57 +0700 Mail-Followup-To: Emacs developers In-Reply-To: <54BFF33B.2020409@yandex.ru> (Dmitry Gutov's message of "Wed, 21 Jan 2015 20:43:07 +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:181517 Archived-At: >>>>> Dmitry Gutov writes: >>>>> On 01/21/2015 08:22 PM, Ivan Shmakov wrote: >> The obvious other choice is, obviously, to use default-directory. > Why default-directory and not any of its parents? Are there any other Emacs commands applying read-directory-name to something other than default-directory? Anyway, the =E2=80=98default-dirname=E2=80=99 argument to read-directory-n= ame can be a list; the first two elements would be default-directory and vc-root (preferably in a customizable order; but personally, =E2=80=93 I can live up with either), with the rest being the intermediates. All win, no? > If the repository root is not the right choice, we now have to guess > which subtree of the repository the user is currently working on. Or the user can specify it explicitly; in particular, =E2=80=93 by choosing the right one from the =E2=80=98default-dirname=E2=80=99 list. --=20 FSF associate member #7257 http://boycottsystemd.org/ =E2=80=A6 3013 B6A0= 230E 334A