From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?iso-8859-1?Q?Jo=E3o_T=E1vora?= Newsgroups: gmane.emacs.devel Subject: Re: Add a separate mode for .dir-locals.el Date: Thu, 17 Oct 2019 13:21:37 +0100 Message-ID: References: <2058328b-aee5-8cb1-2659-a793e1354517@mit.edu> <87wod4m7sr.fsf@gnus.org> <835zkndcz4.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="114532"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (windows-nt) Cc: emacs-devel@gnu.org To: =?iso-8859-1?Q?Cl=E9ment?= Pit-Claudel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 17 14:21:56 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iL4mw-000TfS-ST for ged-emacs-devel@m.gmane.org; Thu, 17 Oct 2019 14:21:55 +0200 Original-Received: from localhost ([::1]:45858 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iL4mv-0007RZ-GG for ged-emacs-devel@m.gmane.org; Thu, 17 Oct 2019 08:21:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54524) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iL4mn-0007P8-Gi for emacs-devel@gnu.org; Thu, 17 Oct 2019 08:21:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iL4mm-0007Z8-CI for emacs-devel@gnu.org; Thu, 17 Oct 2019 08:21:45 -0400 Original-Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]:53766) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iL4mm-0007Yi-3z for emacs-devel@gnu.org; Thu, 17 Oct 2019 08:21:44 -0400 Original-Received: by mail-wm1-x332.google.com with SMTP id i16so2340798wmd.3 for ; Thu, 17 Oct 2019 05:21:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=cxNdhwUgWhAdLzQEWvRdxUmjodH9YAaEy8uUOsFBGpM=; b=IUsap2qrYNXYkWUOTefAhqbWhMnhaBfNGU6U/Tw5Ic4Q3ffvgGJRE8catZv00Df7qp buM/HT89ntAgI976qYPWQjNwLMDQGTPeCExqPn0R5sAwXHz1C8Us1q0GGIBe9QM8XCH2 0uhh694niz+UY/+gAFwx0bShuKszn1us9Cwva30zM30FYMe3nSoHMstit4+LdO2vfRGk BRQMr9NOxPZmk8ndmh1hE1jhhXMzSwwlPiHn5pvMRRCyCKJfeQ/l3mcweufIKpEATNNV e8vhS6vKc7wFcHHQuG2I4TBFllsMR0eRpcgE6mJOWFGZb9P1XHEkkwfDvKwvNZMj9Npp TuaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=cxNdhwUgWhAdLzQEWvRdxUmjodH9YAaEy8uUOsFBGpM=; b=EhOfH1NEpVKOMoJ4L5S986wPioEfROR9SJcE5d/zMW1azWbVNZ3775ctv8XAciLRJM nPIA3eZiJS6zqwqD35gi+ACS27p9x8pzMburfCC4NqJljHXfdP1eMJp2qYQdjRfVgCGB lxKSDbkMTTNtVa5d+OOI2+gexewfDU9Mu1DHde+6OypUnkvvFjwOvFyo+08AjRJZ1EQ4 7ZP92TuRxR5IahctmRhgO5+8Ruf/1mm+AYVd/z7+Bn809/gUYOUGLSTv/NuAU9pM4GY4 8Wj6/IN2aydY1XKyoIRr51n3upRzkdwWe35kuoX3WKSijqDRTaPHV8ZwJSXnhq69e98k 9gRQ== X-Gm-Message-State: APjAAAX7qkJ/J9wvv/KUWAFRr9OjaaVmMqIrSI3WNxLpkO7WwWhgsFRT xawseGUO2/qhb6O/1I1XNWG/GCyB X-Google-Smtp-Source: APXvYqw+JMwB6ayTS2+iN0DdTTKew4W8zPyRoHLO58jRIJBzOUIT3bAUmnq52lsPcsQ4Wdqpyattdg== X-Received: by 2002:a05:600c:2908:: with SMTP id i8mr2586475wmd.20.1571314901176; Thu, 17 Oct 2019 05:21:41 -0700 (PDT) Original-Received: from GONDOMAR.yourcompany.com (mail3.siscog.pt. [195.23.29.18]) by smtp.gmail.com with ESMTPSA id f18sm1928024wmh.43.2019.10.17.05.21.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 Oct 2019 05:21:40 -0700 (PDT) In-Reply-To: (=?iso-8859-1?Q?=22Cl=E9ment?= Pit-Claudel"'s message of "Thu, 17 Oct 2019 07:51:59 -0400") X-Antivirus: AVG (VPS 191015-6, 16-10-2019), Outbound message X-Antivirus-Status: Clean X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::332 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.org gmane.emacs.devel:241133 Archived-At: Cl=E9ment Pit-Claudel writes: > On 2019-10-17 03:53, Eli Zaretskii wrote: >>> From: Lars Ingebrigtsen >>> Date: Thu, 17 Oct 2019 04:20:52 +0200 >>> Cc: Emacs developers >>> >>> Cl=E9ment Pit-Claudel writes: >>> >>>> The attached patch creates a trivial dir-locals-mode, derived from >>>> emacs-lisp-mode, and removes Flymake backends in that mode. >>>> >>>> Thoughts? >>> >>> Makes sense to me. >>=20 >> Isn't it more logical for this to be solved in Flymake itself, >> including letting users have Flymake enabled in their dir-locals >> files? > > CC-ing Jo=E3o for an opinion. My concern was mostly to give minor modes > a clear signal that they can use to tell whether they are in proper > emacs-lisp-mode, or in a dir-locals.el, as well as giving users a hook > for .dir-locals.el files. I've missed the rest of the thread and don't have time to catch up right now. But AFAIR, one can set flymake-diagnostic-functions in file-local variables. So a .dir-locals.el file could have comment trailer with its own file-local variables. If that's too meta, or too complicated, then dir-locals-mode sounds pretty good to me too. Actually it sounds better, because it's not exactly an emacs-lisp file, you can't load or compile it, for one. I don't know who proposed it, or what it meant exactly, but solving this in Flymake directly sounds like hack. Jo=E3o