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: Sat, 08 Aug 2015 10:26:19 -0500 Message-ID: <86io8p3ip0.fsf@stephe-leake.org> References: <861tfiexaz.fsf@stephe-leake.org> <55C16D73.6080801@siege-engine.com> <86egjick23.fsf@stephe-leake.org> <55C1F8B5.7000003@siege-engine.com> <86y4hoaj4n.fsf@stephe-leake.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1439047633 15668 80.91.229.3 (8 Aug 2015 15:27:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Aug 2015 15:27:13 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 08 17:27:02 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 1ZO61V-0002YV-2v for ged-emacs-devel@m.gmane.org; Sat, 08 Aug 2015 17:27:01 +0200 Original-Received: from localhost ([::1]:53100 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZO61T-0006CD-Ul for ged-emacs-devel@m.gmane.org; Sat, 08 Aug 2015 11:26:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34217) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZO61G-0006Bw-EZ for emacs-devel@gnu.org; Sat, 08 Aug 2015 11:26:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZO61D-0005uT-7n for emacs-devel@gnu.org; Sat, 08 Aug 2015 11:26:46 -0400 Original-Received: from gproxy5-pub.mail.unifiedlayer.com ([67.222.38.55]:36177) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1ZO61D-0005rt-0x for emacs-devel@gnu.org; Sat, 08 Aug 2015 11:26:43 -0400 Original-Received: (qmail 5480 invoked by uid 0); 8 Aug 2015 15:26:35 -0000 Original-Received: from unknown (HELO cmgw3) (10.0.90.84) by gproxy5.mail.unifiedlayer.com with SMTP; 8 Aug 2015 15:26:35 -0000 Original-Received: from host114.hostmonster.com ([74.220.207.114]) by cmgw3 with id 2MSW1r0172UdiVW01MSZkN; Sat, 08 Aug 2015 15:26:34 -0600 X-Authority-Analysis: v=2.1 cv=Qc314Krv 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=dMuJOXMfAAAA:8 a=p9d0mwcCdy_B870DhGcA:9 Original-Received: from [76.218.37.33] (port=59132 helo=TAKVER2) by host114.hostmonster.com with esmtpa (Exim 4.84) (envelope-from ) id 1ZO611-00068c-Bv for emacs-devel@gnu.org; Sat, 08 Aug 2015 09:26:31 -0600 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: 67.222.38.55 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:188615 Archived-At: Stephen Leake writes: > Eric Ludlam writes: > >> Other project type also have emacs lisp targets, such as the Emacs >> project type. To use, just enabled ede with >> >> (global-ede-mode 1) >> >> And go edit some Emacs. > > Is that supposed to work for random elisp code, or only for code in the > core Emacs repository? > > I don't see any effect in random elisp code; in particular, M-: > (ede-current-project) returns nil. > > Testing; same result in emacs/master/lisp/xml.el. > > So I'm missing something. I tracked this down. To get this to work, I need the following: (require 'ede) (require 'ede/emacs) (global-ede-mode 1) Then when I edit a file in an Emacs git checkout, (ede-current-project) returns the emacs project. That project doesn't support 'compile', which is a little surprising. I was wondering if it could handle out-of-tree builds, which I use. Along the way, I discovered that the ede code in Emacs core is a little broken by the recent changes in eieio/cl-generic. I see this is fixed (at least partly?) in the current EDE SourceForge git. So I'll use that code base for further work. -- -- Stephe