From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Ludlam Newsgroups: gmane.emacs.devel Subject: Re: running EDE from a file that is not under a project root dir Date: Wed, 05 Aug 2015 07:42:32 -0400 Message-ID: <55C1F6A8.8030901@siege-engine.com> References: <861tfiexaz.fsf@stephe-leake.org> <55C16D73.6080801@siege-engine.com> <86egjick23.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 1438774974 8225 80.91.229.3 (5 Aug 2015 11:42:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Aug 2015 11:42:54 +0000 (UTC) To: Stephen Leake , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 05 13:42:44 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 1ZMx5n-0008Ps-Fd for ged-emacs-devel@m.gmane.org; Wed, 05 Aug 2015 13:42:43 +0200 Original-Received: from localhost ([::1]:40052 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMx5m-0003Zp-VY for ged-emacs-devel@m.gmane.org; Wed, 05 Aug 2015 07:42:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48667) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMx5j-0003ZW-1j for emacs-devel@gnu.org; Wed, 05 Aug 2015 07:42:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZMx5e-0004gb-0g for emacs-devel@gnu.org; Wed, 05 Aug 2015 07:42:38 -0400 Original-Received: from mail-vk0-f49.google.com ([209.85.213.49]:34667) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMx5d-0004gX-RA for emacs-devel@gnu.org; Wed, 05 Aug 2015 07:42:33 -0400 Original-Received: by vkhl6 with SMTP id l6so14486330vkh.1 for ; Wed, 05 Aug 2015 04:42:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=+wwiG3wUsU9doggp4B9lAB+omBuRPQ18gyoCCL4vIuQ=; b=nMYguVLFSkfTZBIvq6tIYkiPpiU4oTtoIFgvB/NTI/kaI54I87ix81lFCdsUoOHlty VJpoYFUWN1ejjalZBrzrN9aVGEcZyCFoAwZD6ju7aT8uCyrXoiAm5+LAZHm6Le15mU/M Z0kFyw0KXgEDhVoEQk00LqqpVk75EgYy6VzXTkCmZwVifVUZG22AI6U4utZ0wdbsTvwJ Zb+/tsp/rkXACMiyqDS6fxlKHygvXqAALFbGzO34Ek63zQlEHu9+WEmdSGhcrwYuQeFI s91ysu2uQRRvPFOoCWDar+j/F1ew5ILrqbvQmyD4ZY6ur9E6dywngix82fCMvsLySTD2 7UuQ== X-Received: by 10.52.115.231 with SMTP id jr7mr12187085vdb.90.1438774953302; Wed, 05 Aug 2015 04:42:33 -0700 (PDT) Original-Received: from [192.168.1.202] (pool-71-184-198-118.bstnma.fios.verizon.net. [71.184.198.118]) by smtp.googlemail.com with ESMTPSA id x2sm501405vdb.13.2015.08.05.04.42.32 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Aug 2015 04:42:32 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 In-Reply-To: <86egjick23.fsf@stephe-leake.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.213.49 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:188437 Archived-At: On 08/05/2015 02:43 AM, Stephen Leake wrote: >> >I find the global project concept scary. I can't say how many times >> >I've edited Emacs code that was wasn't on my load path because I had >> >multiple checkouts of the same code. Mostly just too many times. > You misunderstand my point. I don't want a project that includes all > files on the disk (which is what I think you are refering to); I want a > single project that is active in all buffers. > > Most other IDEs I've used have the notion of a single active project; > the splash screen asks for the project to open. > > That's how Emacs Ada mode works; the user selects the single active > project. They can later select another one. I have used IDEs with "global" projects, and I consider Emacs an IDE with a single global project for "emacs lisp" code (among other things, of course. :) It has handy functions like 'find-function' and 'find-library' that lets you move to definitions and files. The reason I don't like global projects is that if you are in one resource (for Emacs any old .el, .txt, etc) and call `find-function', it will jump off to the code, but unless you pay attention, you might end up somewhere you don't expect. For example, if I have two versions of my source code open, such as ede.el in Emacs vs ede.el in CEDET's repository, and I blindly jump from a symbol, I'll could end up in the wrong place based on what my load path is. In my mind, all files should be deterministically bound to a project so when you perform an operation, you always know where you're going. Some files are "in" projects. In your case, a way to associate a notes file outside a project to a project sounds important. Having a 'global' project could be useful if you only ever edit one project at a time in a given emacs instance, and you want everything to behave as if it were. I don't picture most Emacs users operating like that. If it is feature to be added, it should be optional. Eric