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: Per-language project-search-path, was: Re: Unified project interface Date: Sat, 01 Aug 2015 05:43:30 -0500 Message-ID: <86d1z7jnl9.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> <861tftaxgx.fsf@stephe-leake.org> <55B78F49.6010101@yandex.ru> <868ua09s1y.fsf@stephe-leake.org> <55B7CD86.20306@yandex.ru> <86oaiv8zqn.fsf@stephe-leake.org> <55B9590C.3080108@yandex.ru> <86wpxi6ovl.fsf@stephe-leake.org> <55BABE27.4040105@yandex.ru> <868u9wz4mw.fsf@stephe-leake.org> <55BC1D5F.4010502@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1438425842 30703 80.91.229.3 (1 Aug 2015 10:44:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 1 Aug 2015 10:44:02 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 01 12:43: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 1ZLUGd-0003X6-MP for ged-emacs-devel@m.gmane.org; Sat, 01 Aug 2015 12:43:51 +0200 Original-Received: from localhost ([::1]:53276 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZLUGd-0001Gb-8Q for ged-emacs-devel@m.gmane.org; Sat, 01 Aug 2015 06:43:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60459) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZLUGa-0001GW-Nx for emacs-devel@gnu.org; Sat, 01 Aug 2015 06:43:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZLUGV-0003Qr-OL for emacs-devel@gnu.org; Sat, 01 Aug 2015 06:43:48 -0400 Original-Received: from gproxy2-pub.mail.unifiedlayer.com ([69.89.18.3]:38554) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1ZLUGV-0003QT-I2 for emacs-devel@gnu.org; Sat, 01 Aug 2015 06:43:43 -0400 Original-Received: (qmail 31807 invoked by uid 0); 1 Aug 2015 10:43:37 -0000 Original-Received: from unknown (HELO cmgw2) (10.0.90.83) by gproxy2.mail.unifiedlayer.com with SMTP; 1 Aug 2015 10:43:37 -0000 Original-Received: from host114.hostmonster.com ([74.220.207.114]) by cmgw2 with id zNjY1q0052UdiVW01NjbEN; Sat, 01 Aug 2015 04:43:35 -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=uRRa74qj2VoA:10 a=vaJtXVxTAAAA:8 a=mF7IZslPORcM6Pp6IzEA:9 Original-Received: from [76.218.37.33] (port=63887 helo=TAKVER2) by host114.hostmonster.com with esmtpa (Exim 4.84) (envelope-from ) id 1ZLUGL-0004Hj-L6 for emacs-devel@gnu.org; Sat, 01 Aug 2015 04:43:33 -0600 In-Reply-To: <55BC1D5F.4010502@yandex.ru> (Dmitry Gutov's message of "Sat, 1 Aug 2015 04:14:07 +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: 69.89.18.3 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:188263 Archived-At: Dmitry Gutov writes: > On 07/31/2015 07:13 PM, Stephen Leake wrote: > >> The elisp project (depending on current Emacs version) will only want to >> search one of: >> >> (lisp) >> (lisp lisp-emacs-24) >> (lisp lisp-emacs-23) >> >> The Ada project will only want to search the "ada" and "build" >> directories (for the Makefile and Ada project file). > > By the way, do you think project-search-path should have a major-mode > (or language) argument? Or maybe depend on it implicitly, via the > current buffer? My experience is always with a project file; the user explicitly selects which project file is active. That can be multi-language or single-language. So I'm not familiar with the project system trying to guess a project on the fly, as the current code does. As you point out, there are use cases for using the major mode to influence the project, and others for not doing that. I don't know which would be better as the default; the only general solution is to require a project file. > ede-source-paths dispatches on both PROJECT and MODE; to reuse it (in > the ede project backend), we'd have to produce the mode argument. Ede also uses the (require 'path/file) style; not surprising, since it was written by the CEDET team. I don't see any implementations of ede-source-paths, and only one use of it, so it's hard to say what the purpose of the mode parameter is. -- -- Stephe