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: Per-language project-search-path, was: Re: Unified project interface Date: Sat, 1 Aug 2015 17:12:57 +0300 Message-ID: <55BCD3E9.40606@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> <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> <86d1z7jnl9.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 1438438403 15860 80.91.229.3 (1 Aug 2015 14:13:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 1 Aug 2015 14:13:23 +0000 (UTC) Cc: Eric Ludlam To: Stephen Leake , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 01 16:13:19 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 1ZLXXK-0005HP-LW for ged-emacs-devel@m.gmane.org; Sat, 01 Aug 2015 16:13:18 +0200 Original-Received: from localhost ([::1]:53929 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZLXXJ-0007VU-Lp for ged-emacs-devel@m.gmane.org; Sat, 01 Aug 2015 10:13:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39847) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZLXX7-0007VP-Bq for emacs-devel@gnu.org; Sat, 01 Aug 2015 10:13:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZLXX4-0001pX-38 for emacs-devel@gnu.org; Sat, 01 Aug 2015 10:13:05 -0400 Original-Received: from mail-wi0-x22b.google.com ([2a00:1450:400c:c05::22b]:34059) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZLXX3-0001pT-SA for emacs-devel@gnu.org; Sat, 01 Aug 2015 10:13:02 -0400 Original-Received: by wibud3 with SMTP id ud3so87662913wib.1 for ; Sat, 01 Aug 2015 07:13:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:from:cc:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=fSribmFGQsViEi3tff3tAVfrfkNJgHaQ+JDmZni4RTA=; b=kWMjRWmAKCmjOK9swEA27pMEtrCB/t6bTFjUNsl5d7VPCrz17D7l3It9GQHsFvp3a2 M6hC77XFlk/gAXiPcUxpejqsZ9/9khG2Zysy/AIsCkfovtOQSVQq01ybqjnkZnvzEZbN K84U/R1ELlJxktVAhcpmzwO/m8GxFkC71mR6SGdOFzPHHuotp4pKzm5VzHcDKQfo1tGZ fWGaEuP9gDqkrIYbCAG7UlOWn+Y/9CrR5NnRCptsvySc9IGdiMo1hnaYiT5JztQMtnDK kDkrbmYLAhnNOP5CWlSxsWjnnGltTWfyp1shgl+jfJ4PbJqWDUwzMK7bS8RZ6wznhvpb DJqw== X-Received: by 10.194.48.108 with SMTP id k12mr17889680wjn.151.1438438381289; Sat, 01 Aug 2015 07:13:01 -0700 (PDT) Original-Received: from [192.168.1.2] ([185.105.175.24]) by smtp.googlemail.com with ESMTPSA id uo6sm12707767wjc.1.2015.08.01.07.13.00 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 01 Aug 2015 07:13:00 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:40.0) Gecko/20100101 Thunderbird/40.0 In-Reply-To: <86d1z7jnl9.fsf@stephe-leake.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::22b 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:188273 Archived-At: On 08/01/2015 01:43 PM, Stephen Leake wrote: > 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. I'm not discussing a particular project backend here, just the API. And you can use the user-selected backend everywhere, if there's an appropriate element at the head of project-find-functions. If I recall, you've mentioned a concept of project file listing different search-paths for different languages. Without project-search-path taking the language into account, you'll have to append all paths together. And what about jdee? Would you treat lisp/.dir-locals.el as the project file for Elisp, and ask the user to select it? > As you point out, there are use cases for using the major mode to > influence the project, and others for not doing that. I've only listed the implementation difficulties. If there are any particular problems with the concept of dispatching on the language, I'd like to hear about those. > I don't know which would be better as the default; the only general > solution is to require a project file. How does that translate to API requirements? > Ede also uses the (require 'path/file) style; not surprising, since it > was written by the CEDET team. It does. This doesn't seem relevant. > 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. That's true, unfortunately. The only implementations I could find are in malabar-mode (another third-party project attempting to provide a Java editing environment). Eric, could you tell if we're missing anything? Are there other places where ede-source-paths is defined or used? Any reason why symref isn't using it?