From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Using different default-directory and relative paths in VC, Was: Re: bug#21383 Date: Mon, 07 Sep 2015 21:31:42 -0400 Message-ID: References: <55E5094A.3010108@yandex.ru> <55E59487.1050804@yandex.ru> <55E5CA42.1080005@yandex.ru> <55E5DF1A.9010902@yandex.ru> <55E6D426.10105@yandex.ru> <55E89E83.6000501@yandex.ru> <55EA5CB0.9070007@yandex.ru> <55EB50D7.2030103@yandex.ru> <55EDF9BC.3000605@yandex.ru> <55EE1DD8.7060401@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1441675930 23787 80.91.229.3 (8 Sep 2015 01:32:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Sep 2015 01:32:10 +0000 (UTC) Cc: emacs-devel To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 08 03:32:01 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 1ZZ7lP-0002SB-Ty for ged-emacs-devel@m.gmane.org; Tue, 08 Sep 2015 03:32:00 +0200 Original-Received: from localhost ([::1]:59494 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZ7lP-00056d-Bs for ged-emacs-devel@m.gmane.org; Mon, 07 Sep 2015 21:31:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56565) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZ7lD-00056E-Cq for emacs-devel@gnu.org; Mon, 07 Sep 2015 21:31:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZ7lA-0005YA-8X for emacs-devel@gnu.org; Mon, 07 Sep 2015 21:31:47 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:63748) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZ7lA-0005X3-4f for emacs-devel@gnu.org; Mon, 07 Sep 2015 21:31:44 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0AxFgA731xV/5Wg+M5cgxCEAoVVu0CHSwQCAoE8OxIBAQEBAQEBgQpBBYNdAQEDAVYjEAsOJhIUGA0kiDcIzyMBAQEBBgEBAQEeizqFBQeELQWqYYhegUUjgjuBWSKCeAEBAQ X-IPAS-Result: A0AxFgA731xV/5Wg+M5cgxCEAoVVu0CHSwQCAoE8OxIBAQEBAQEBgQpBBYNdAQEDAVYjEAsOJhIUGA0kiDcIzyMBAQEBBgEBAQEeizqFBQeELQWqYYhegUUjgjuBWSKCeAEBAQ X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="162850776" Original-Received: from 206-248-160-149.dsl.teksavvy.com (HELO pastel.home) ([206.248.160.149]) by ironport2-out.teksavvy.com with ESMTP; 07 Sep 2015 21:31:43 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 9B8895F8F7; Mon, 7 Sep 2015 21:31:42 -0400 (EDT) In-Reply-To: <55EE1DD8.7060401@yandex.ru> (Dmitry Gutov's message of "Tue, 8 Sep 2015 02:29:28 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:189691 Archived-At: >> Sorry, I didn't realize you were talking about vc-state. No I guess >> vc-state would have to keep working with absolute file names (tho it >> could be extended to also accept relative file names). > It was just an example. Would vc-state keep working with absolute file > names, but vc-working-revision start only accepting relative ones? I guess all those functions which are part of the API exposed by VC to external packages would need to preserve support for absolute file names, yes. >> I'd expect that the caller should be able to easily arrange for each >> file in the list to *already* be relative to default-directory, so >> there's no need to look for the common parent. > If the relative file names start with "../", the result is pointless: I explicitly ruled them out in my earlier definition of "relative file names". Stefan