From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: cl-defgeneric vs random funcall in project.el Date: Tue, 4 Aug 2015 23:43:06 +0100 Message-ID: References: <86oaiwa57v.fsf@stephe-leake.org> <55B79B3F.1060200@yandex.ru> <86wpxj93r2.fsf@stephe-leake.org> <55B82A0C.5040709@yandex.ru> <86fv4782k2.fsf@stephe-leake.org> <55B92F76.7060104@yandex.ru> <86380686sm.fsf@stephe-leake.org> <55BA0AC4.7060906@yandex.ru> <86mvyd7jf0.fsf@stephe-leake.org> <55BA5BDD.1080009@yandex.ru> <86k2thz0dw.fsf@stephe-leake.org> <55BAC366.1010803@yandex.ru> <86fv44z94l.fsf@stephe-leake.org> <55BBFC3E.2010405@yandex.ru> <86h9ojjoll.fsf@stephe-leake.org> <55BCB6E5.2040804@yandex.ru> <86wpxfhyzm.fsf@stephe-leake.org> <55BCF888.4020907@yandex.ru> <55C1271A.2090202@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1438728214 22755 80.91.229.3 (4 Aug 2015 22:43:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Aug 2015 22:43:34 +0000 (UTC) Cc: Stephen Leake , emacs-devel To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 05 00:43:34 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 1ZMkvl-0004tZ-Vn for ged-emacs-devel@m.gmane.org; Wed, 05 Aug 2015 00:43:34 +0200 Original-Received: from localhost ([::1]:38410 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMkvl-0004eI-9J for ged-emacs-devel@m.gmane.org; Tue, 04 Aug 2015 18:43:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39514) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMkvi-0004cm-1j for emacs-devel@gnu.org; Tue, 04 Aug 2015 18:43:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZMkve-0008Nw-M4 for emacs-devel@gnu.org; Tue, 04 Aug 2015 18:43:29 -0400 Original-Received: from mail-io0-x236.google.com ([2607:f8b0:4001:c06::236]:33863) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZMkve-0008N2-Gj for emacs-devel@gnu.org; Tue, 04 Aug 2015 18:43:26 -0400 Original-Received: by ioea135 with SMTP id a135so32205753ioe.1 for ; Tue, 04 Aug 2015 15:43:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=UZBhlXgVZ11qTm+sAiaGL2cj1h2obYXdAgGWofULhyo=; b=O+cEHcZsfvlVbMcKqmpDf4XJ9qI2KHf9oEjuvx0pMgXnVtfrgkMhwwS18izsiWcWaS Dsy+pIRVmZjCMYVzJi9877jzZsWPU5o39FBGJ0BVgPLXpeI3Rxyit9ZT7hdVo8Q6tmcl qRxYQX4fdoNK/b1d3xDkka7yVJgEBPoEjF09R7ylSx/MEkgWE/Gmgn71+7vwAnmuxw/Q AbjdMIcZC+P/QwbzKhL1DedFjrzwoUuZMdqSCuIodEr1yfi7DA9hh/k0anPfQC/MxgsN Vh2jBHKgMFSjWJnrm5vabCM5IdVgTNEUpWX9nSv7xdkYAOPskSriObFHFIAht404zW0B GuZg== X-Received: by 10.107.18.31 with SMTP id a31mr7806511ioj.22.1438728205926; Tue, 04 Aug 2015 15:43:25 -0700 (PDT) Original-Received: by 10.107.30.210 with HTTP; Tue, 4 Aug 2015 15:43:06 -0700 (PDT) In-Reply-To: <55C1271A.2090202@yandex.ru> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c06::236 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:188416 Archived-At: On Tue, Aug 4, 2015 at 9:56 PM, Dmitry Gutov wrote: > On 08/04/2015 10:59 PM, Jo=C3=A3o T=C3=A1vora wrote: . Originally, I discarded this kind of idea as too hacky, but > indeed, there's value in limiting ourselves to .dir-locals.el here. > > To continue this line of thought, would you say the variables should have > global meaning (meaning all project backends should honor them), or shoul= d > they be only used in the VC project backend? Hmmm, you've kind of stumped me. I don't have enough context to answer. I just cringed a bit at the idea of having to edit a different kind of file for setting emacs variables. I suppose you would provide something like add-dir-local-variable, but still... > I've been leaning towards the latter, but project-vc-ignores is a pretty > terrible name, in this context. Assuming my half-baked understanding of all of this is minimally correct, I'd say "global" though. I might want to change my project from make to cmake to something else and keep my list of ignored dirs, right? I wrote somewhere else that I think some kind of vision is needed for the whole thing (a simple ASCII diagram would do for me). Personally, I tend to like your approach and it seems to be modular and simple, but I got lost in the details of your discussion with Stephen..= . Is the general picture something like this? uses auto-picks one fns from and gets info from +---------------+ +----------+ +----------------+ | xref | | | | project-vc | | M-x compile |------->|project.el|------->|project-makefile| |grep-my-project| | | | project-xcode | +---------------+ +----------+ +----------------+ -- Jo=C3=A3o T=C3=A1vora