From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: Re: Unified project interface Date: Mon, 27 Jul 2015 20:21:18 -0500 Message-ID: <861tftaxgx.fsf@stephe-leake.org> 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1438046544 16717 80.91.229.3 (28 Jul 2015 01:22:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Jul 2015 01:22:24 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 28 03:22:13 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 1ZJtas-0006no-Ss for ged-emacs-devel@m.gmane.org; Tue, 28 Jul 2015 03:22:11 +0200 Original-Received: from localhost ([::1]:56622 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZJtar-00063m-LU for ged-emacs-devel@m.gmane.org; Mon, 27 Jul 2015 21:22:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33632) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZJtad-00063X-QD for emacs-devel@gnu.org; Mon, 27 Jul 2015 21:21:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZJtaY-0005Y6-PN for emacs-devel@gnu.org; Mon, 27 Jul 2015 21:21:55 -0400 Original-Received: from gproxy7-pub.mail.unifiedlayer.com ([70.40.196.235]:38511) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1ZJtaY-0005Vk-J8 for emacs-devel@gnu.org; Mon, 27 Jul 2015 21:21:50 -0400 Original-Received: (qmail 23721 invoked by uid 0); 28 Jul 2015 01:21:40 -0000 Original-Received: from unknown (HELO cmgw2) (10.0.90.83) by gproxy7.mail.unifiedlayer.com with SMTP; 28 Jul 2015 01:21:40 -0000 Original-Received: from host114.hostmonster.com ([74.220.207.114]) by cmgw2 with id xdMW1q00F2UdiVW01dMZ1L; Mon, 27 Jul 2015 19:21:38 -0600 X-Authority-Analysis: v=2.1 cv=O9qq4nNW c=1 sm=1 tr=0 a=CQdxDb2CKd3SRg4I0/XZPQ==:117 a=CQdxDb2CKd3SRg4I0/XZPQ==:17 a=DsvgjBjRAAAA:8 a=f5113yIGAAAA:8 a=9i_RQKNPAAAA:8 a=y7kgw_RnJtkA:10 a=hEr_IkYJT6EA:10 a=x_XPkuGwIRMA:10 a=zOBTXjUuO1YA:10 a=vaJtXVxTAAAA:8 a=HcylS20BjkjL0FTNPQMA:9 a=p567xZStjal8oGTi:21 a=bZLoCQTW3fIDK5CD:21 Original-Received: from [76.218.37.33] (port=52745 helo=TAKVER2) by host114.hostmonster.com with esmtpa (Exim 4.84) (envelope-from ) id 1ZJtaF-0004Cf-Uc for emacs-devel@gnu.org; Mon, 27 Jul 2015 19:21:32 -0600 In-Reply-To: <55B62B53.5060003@yandex.ru> (Dmitry Gutov's message of "Mon, 27 Jul 2015 16:00:03 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (windows-nt) X-Identified-User: {2442:host114.hostmonster.com:stephele:stephe-leake.org} {sentby:smtp auth 76.218.37.33 authed with stephen_leake@stephe-leake.org} X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 70.40.196.235 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:188115 Archived-At: Dmitry Gutov writes: > On 07/26/2015 09:57 PM, Stephen Leake wrote: > >> A list of project names. Depending on the project manager, that implies >> a list of project files in one syntax or another, each of which >> specifies a set of project directories (explicitly or implicitly). > > Could you give an example? Ada, gradle. > Since they're referred only by names, this sounds like a list of > dependencies on the installed packages. Those we usually don't want to > edit, and I'd classify them as system includes. I don't know who this "we" is, but I usually structure a large project as a main with several lower level libraries, all of which I maintain, and I edit them all together to implement new functionality in main. So that has to be a choice. >> Trust what the project file says. The user told Emacs to use the project >> file; it should not try to be smarter. > > So, xref-find-regexp won't call project-root. Got it. Actually, 'xref-find-regexp' should be named 'project-find-regexp' (or prj-find-regexp). Keep 'xref' for strictly cross-reference stuff; 'project' is for more general project stuff. Either that, or drop 'project' and just call it all 'xref'. >> If the user wants documentation in the project, then it is in the >> project file. If the project manager tool is brain-dead and can't handle >> documentation, the the user can switch tools. > > In that case, will the user add the documentation directory to the > search-path section of the project file? Yes, except most backend project files don't have things called "search-path", since they are not for editors; it would be "source-path". > To sum up, I see a strong case for project-search-path as you > described it (maybe under a different name; like project-directories, > as it is now), and so far, no real case for project-root. Ok, we are converging. -- -- Stephe