From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Unified project interface Date: Tue, 28 Jul 2015 17:33:55 +0300 Message-ID: <55B792D3.8070000@yandex.ru> References: <557039DB.4060607@yandex.ru> <85d21bbkqf.fsf@stephe-leake.org> <5570E86B.8070200@yandex.ru> <85iob2a2mm.fsf@stephe-leake.org> <55B2CDA4.8020207@yandex.ru> <868ua5caz6.fsf@stephe-leake.org> <55B441DD.9060806@yandex.ru> <86zj2jb1tx.fsf@stephe-leake.org> <55B517AC.5020401@yandex.ru> <86oaiybvbf.fsf@stephe-leake.org> <55B62B53.5060003@yandex.ru> <861tftaxgx.fsf@stephe-leake.org> <86si88a6ex.fsf@stephe-leake.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1438094100 10370 80.91.229.3 (28 Jul 2015 14:35:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Jul 2015 14:35:00 +0000 (UTC) To: Stephen Leake , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 28 16:34:52 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 1ZK5xz-0005mP-Hn for ged-emacs-devel@m.gmane.org; Tue, 28 Jul 2015 16:34:51 +0200 Original-Received: from localhost ([::1]:58942 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZK5xy-0006LV-QI for ged-emacs-devel@m.gmane.org; Tue, 28 Jul 2015 10:34:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37720) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZK5xv-0006K9-L6 for emacs-devel@gnu.org; Tue, 28 Jul 2015 10:34:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZK5xr-00015f-Fu for emacs-devel@gnu.org; Tue, 28 Jul 2015 10:34:47 -0400 Original-Received: from mail-wi0-f180.google.com ([209.85.212.180]:34028) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZK5xr-00015Z-9U for emacs-devel@gnu.org; Tue, 28 Jul 2015 10:34:43 -0400 Original-Received: by wibud3 with SMTP id ud3so183634558wib.1 for ; Tue, 28 Jul 2015 07:33:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=O2MqZSucH5M+V51JuYHAWC7O1L9YrfkGh1SUxcGIsSY=; b=wlkxHBAywMqQ6o6yJc0E5z9xLzZRRWbuQlzz1ebDb5ZUvhquuFeD7bLsZWYEItBxw4 6hqHqbZJu7l9kVequUkrE8s4enPERa5yXj+y1cn3qlbrJ9qNChpDJ8M4I6cJrUjeYshS wUSULGr2pUSl6ARbsI1k7+j09s71QXcw3M+8qnZxxfvmVAmsZkXzvz2eYPVP6ppYeqdl 3n/BT78nnmmjYRD6TBXcC8agPvmtClIkhJILirqO/fpXwpIhTXWqX49hEsW2IKL7YAyB 8BtN85X4zm+ZiSJ8BYerDxmMt2GBhicwsIS5HjDqKvFz8YhF3lzULu46qKWj2pj6P8N0 Du2w== X-Received: by 10.194.23.167 with SMTP id n7mr63932513wjf.112.1438094037723; Tue, 28 Jul 2015 07:33:57 -0700 (PDT) Original-Received: from [192.168.0.185] (static-nbl2-118.cytanet.com.cy. [212.31.107.118]) by smtp.googlemail.com with ESMTPSA id m10sm19329454wib.17.2015.07.28.07.33.56 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Jul 2015 07:33:57 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0 In-Reply-To: <86si88a6ex.fsf@stephe-leake.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.212.180 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:188130 Archived-At: On 07/28/2015 02:05 PM, Stephen Leake wrote: > I just realized project.el is in emacs master; I thought it was only in > the experimental branch. It would be cleaner to have it separate, but being able to dogfood it now is quite handy. > So some specific change proposals: > > - Rename 'project-directories' to 'project-root-directories' or > 'project-roots'. Either is fine with me, but note that y having "root" in the name we give up on adding a special "project-root" function in the future, one that you described earlier. > The current project root should always be first in the list. > - 'project-search-path' should not include 'project-root-directories'. I say we document it like that (or say that it's "allowed not to include"), but the consumers will still take care of the duplication (call project--prune-directories). That's easier on the implementations. > - 'elisp-search-path' should not include 'package-user-dir'; > package-user-dir is not an elisp source directory, and load-path > already includes the subdirs of it, if packages are initialized. What's the harm? It's an optimization: this way, we only call 'find' once per elpa dir, instead of doing it for each installed package. Not sure what's the overhead on that, but it seems wasteful.