From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Eric M. Ludlam" Newsgroups: gmane.emacs.devel Subject: Re: A unified project root interface Date: Tue, 19 Mar 2013 08:23:48 -0400 Message-ID: <514858D4.80506@siege-engine.com> References: <20130309174419.6e1cadb4@forcix.kollektiv-hamburg.de> <87hakh2299.fsf@fimbulvetr.bsc.es> <513FBA1C.5040100@siege-engine.com> <87vc8vyy66.fsf@engster.org> <5143C11D.8070705@siege-engine.com> <87sj3vv35h.fsf@engster.org> <20130316160203.6b889aba@forcix.kollektiv-hamburg.de> <87ehffuf1g.fsf@engster.org> <20130317001630.125e1987@forcix.kollektiv-hamburg.de> <87y5dmsz5u.fsf@engster.org> <20130317191817.764a44f5@forcix.kollektiv-hamburg.de> <87ppywtj9s.fsf@engster.org> <87li9juabi.fsf@engster.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1363695834 3423 80.91.229.3 (19 Mar 2013 12:23:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Mar 2013 12:23:54 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 19 13:24:21 2013 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 1UHvaW-0000ni-D5 for ged-emacs-devel@m.gmane.org; Tue, 19 Mar 2013 13:24:20 +0100 Original-Received: from localhost ([::1]:38811 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHva9-0003jm-6e for ged-emacs-devel@m.gmane.org; Tue, 19 Mar 2013 08:23:57 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50563) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHva5-0003jV-JM for emacs-devel@gnu.org; Tue, 19 Mar 2013 08:23:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UHva4-00028n-6b for emacs-devel@gnu.org; Tue, 19 Mar 2013 08:23:53 -0400 Original-Received: from mail-ve0-f182.google.com ([209.85.128.182]:64492) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHva4-00028U-2M for emacs-devel@gnu.org; Tue, 19 Mar 2013 08:23:52 -0400 Original-Received: by mail-ve0-f182.google.com with SMTP id ox1so310313veb.13 for ; Tue, 19 Mar 2013 05:23:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=za8zpBOPWUGIp7ifnd2vyu5RXZgS780rKsYzok1RsnY=; b=nyYtlsIK8SiuCEJOvq9yhiiVGIPheWjLmObvPQgxpW8t4Jw+YhJZMNkKtFmKXO5+ah ta0fV/WR54HaauV0asl1y5/i2hkwLG4vshI1XQ6ohwPM12at/vcqXjelvl5FHZMo06i6 9XX19nu60ZeP/tFmGkdoBizR8Iz4Rut4l2+4YZO6JiRIfdVeT//O+LfA6o1s8J5IujXi H8ykdDpvv3hg3xOymbYIEypIT/pvsOu8AQ0soLHFj+82GfS2WZDU3E1nWpZQiNZC/7xM bfQN+my5wyAHiZwgWoueVRDSsl2B4X1KhpJioMxmgKDIoLK1/gzJf+HzVFMmiC1epZAa 1Fvw== X-Received: by 10.58.186.241 with SMTP id fn17mr2074738vec.8.1363695831019; Tue, 19 Mar 2013 05:23:51 -0700 (PDT) Original-Received: from [192.168.1.201] (pool-72-74-140-235.bstnma.fios.verizon.net. [72.74.140.235]) by mx.google.com with ESMTPS id l5sm28910366vdi.4.2013.03.19.05.23.49 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 19 Mar 2013 05:23:49 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.3a1pre) Gecko/20091222 Shredder/3.1a1pre In-Reply-To: <87li9juabi.fsf@engster.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.128.182 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:157950 Archived-At: On 03/19/2013 03:18 AM, David Engster wrote: > John Yates writes: >> I took the sense of the OP to be that the concept of a project-root >> deserved to become part of the core set of emacs concepts unrelated to >> optional packages e.g. much as file and directory local variables. >> Once the concept gets pulled into the core extension author simply >> assume existence of project-root functionality without needing to have >> to enable in any particular way. > > OK, if this is something which should be available with emacs -Q right > at startup, then EDE is out. It indeed is too big for that. Hi David, If you look at ede/base.el at the baseclass ede-project-placeholder, you will see bits from an old implementation of a project cache. It used to save just the root directories between emacs sessions, and the placeholder was used in the project cache to speed up detection. The goal was a "Recent Projects" menu item to load projects from. I never got that far though. It should be possible to revive that old bit of code and have a mode of EDE that only creates placeholders for detected projects, and only loads the project if the user asks, calls 'ede-compile', or some other explicit action. In this scenario, I'm sure it would be possible to trim ede/base.el, and ede.el to be minimal, and provide just the root project detection. CLOS would still be involved, but the result would be pretty light-weight. I'd be happy to help figure that out if it would be useful. Eric