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: running EDE from a file that is not under a project root dir Date: Fri, 07 Aug 2015 09:15:02 -0500 Message-ID: <864mkb89sp.fsf@stephe-leake.org> References: <861tfiexaz.fsf@stephe-leake.org> <55C14848.8030904@yandex.ru> <86wpxab2hb.fsf@stephe-leake.org> <55C1D79D.2020906@yandex.ru> <867fp8c0cg.fsf@stephe-leake.org> <55C33823.6070804@yandex.ru> <8637zwa3c5.fsf@stephe-leake.org> <55C3D564.4060003@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1438956984 14431 80.91.229.3 (7 Aug 2015 14:16:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Aug 2015 14:16:24 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 07 16:16: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 1ZNiRQ-0000uX-IN for ged-emacs-devel@m.gmane.org; Fri, 07 Aug 2015 16:16:12 +0200 Original-Received: from localhost ([::1]:49346 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNiRP-0003We-OG for ged-emacs-devel@m.gmane.org; Fri, 07 Aug 2015 10:16:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37909) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNiQf-00035x-8S for emacs-devel@gnu.org; Fri, 07 Aug 2015 10:15:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZNiQa-0006dl-89 for emacs-devel@gnu.org; Fri, 07 Aug 2015 10:15:25 -0400 Original-Received: from gproxy9-pub.mail.unifiedlayer.com ([69.89.20.122]:58931) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1ZNiQa-0006dV-1I for emacs-devel@gnu.org; Fri, 07 Aug 2015 10:15:20 -0400 Original-Received: (qmail 14396 invoked by uid 0); 7 Aug 2015 14:15:17 -0000 Original-Received: from unknown (HELO cmgw2) (10.0.90.83) by gproxy9.mail.unifiedlayer.com with SMTP; 7 Aug 2015 14:15:17 -0000 Original-Received: from host114.hostmonster.com ([74.220.207.114]) by cmgw2 with id 1qF91r00L2UdiVW01qFCNX; Fri, 07 Aug 2015 08:15:15 -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=7TrmocNJJFsbFba25bEA:9 Original-Received: from [76.218.37.33] (port=63273 helo=TAKVER2) by host114.hostmonster.com with esmtpa (Exim 4.84) (envelope-from ) id 1ZNiQR-0000hi-0z for emacs-devel@gnu.org; Fri, 07 Aug 2015 08:15:11 -0600 In-Reply-To: <55C3D564.4060003@yandex.ru> (Dmitry Gutov's message of "Fri, 7 Aug 2015 00:45:08 +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.20.122 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:188543 Archived-At: Dmitry Gutov writes: > On 08/06/2015 05:39 PM, Stephen Leake wrote: > >>> How so? As long as your project-find-functions element knows which >>> variable to look up, you should be all set. >> >> How would it know that? >> >> Suppose I have a gpr project backend for AdaCore gprbuild projects, and >> a gradle backend for Android gradle projects. > > I was assuming your project backends would share a codebase. But if > they don't, they'll need to depend on a third package (which can be > very small). Right. That "third package" is project.el. What's wrong with that? >> There are corresponding global variables; gpr-global-project, >> gradle-global-project, each with a project-find function. > > The third package would contain: variable global-project-current, > function global-project-visit, function global-project-try-it. How is that different from declaring these in project.el? >> I'm proposing to fix this by having one global variable with one >> find-function. > > So I take it you're asking the above global-project to be moved to the > core. Right. > I'm hesitant, but it's better than what I originally understood > your request to be (add the variable, and make it higher priority than > project-find-functions). It has the same priority as anything else in project-find-functions; if the user wants to give it top priority, they put it first (or only). > I wonder if the concept of the global project will be very popular. It's in many current IDEs; Android Studio, Arduino, AdaCore GPS. -- -- Stephe