From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Add a separate mode for .dir-locals.el Date: Fri, 18 Oct 2019 08:56:48 -0400 Message-ID: References: <2058328b-aee5-8cb1-2659-a793e1354517@mit.edu> <87wod4m7sr.fsf@gnus.org> <835zkndcz4.fsf@gnu.org> <83ftjrbjhm.fsf@gnu.org> <83ftjr9sx4.fsf@gnu.org> <83eezb9s5b.fsf@gnu.org> <83bluf9qgb.fsf@gnu.org> <835zkn9o01.fsf@gnu.org> <83o8ye8ptv.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="174865"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: cpitclaudel@gmail.com, joaotavora@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 18 14:57:17 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 1iLRoe-000jDb-Mu for ged-emacs-devel@m.gmane.org; Fri, 18 Oct 2019 14:57:13 +0200 Original-Received: from localhost ([::1]:39544 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLRoc-0005yr-Qb for ged-emacs-devel@m.gmane.org; Fri, 18 Oct 2019 08:57:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45728) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLRoU-0005w0-KI for emacs-devel@gnu.org; Fri, 18 Oct 2019 08:57:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iLRoT-0003dV-4F for emacs-devel@gnu.org; Fri, 18 Oct 2019 08:57:02 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:19053) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iLRoN-0003bq-I7; Fri, 18 Oct 2019 08:56:55 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 9CA558122F; Fri, 18 Oct 2019 08:56:53 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 57A1E8109E; Fri, 18 Oct 2019 08:56:52 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1571403412; bh=SpaH0MQ85AuwGp+B0oi6kXw8TeRngDz5PJrRowkpKvk=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=iEdD0qwlEazdz5PiReMFZftqDUMoh43eAiIFEOCkdJ8V8O4ayRg01VewLrbGwGBgD c2hSOdapaOjoK0IB5JnAzaH95/S1rrFrqFy3N9EeRDajJjw2fWEyNLM+gEY15KhZZN WsLpO2Xljv/m3YrzKdNpah340BKB89VSSQ5Ggs7pJdtE91pxud4lR6IOR/xbnTSZ8P nXxqBmk9qZ9PlC+dsKxV/hC2Rd5xIeBCCAut03GW8QBKxxgD/Awf+Leu7i3jgH46Zj z+CveqtXJDf2NtBX4tr3U9i/d2x7RRm8TKy/8FKE5MoTarNCl4AFp75h+GWdq4+mcS OrdJXjFWycD0Q== Original-Received: from pastel (unknown [216.154.15.203]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 06C2F120090; Fri, 18 Oct 2019 08:56:51 -0400 (EDT) In-Reply-To: <83o8ye8ptv.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 18 Oct 2019 10:39:40 +0300") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 132.204.25.50 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:241201 Archived-At: >> > What drawbacks do you see in the other solution? I see only >> > advantages. >> I must admit that I don't know what "other solution" you're referring to. > It was mentioned up-thread: > > > In fact, no. Not the new Flymake at least (and even in the old one I > > have my doubts). That is a job for mode-specific functions that hook > > onto Flymake's interfaces. They are known as Flymake backends and > > usually place themselves in the local value of the > > flymake-diagnostic-functions hook. For lisp/elisp-mode.el, there are > > two backends: elisp-flymake-byte-compile and elisp-flymake-checkdoc. > > > > Maybe I misunderstood your suggestion: if you meant changing _those_ two > > backends so that they notice they are in a dir-locals file and disable > > themselves, then it's less bad. > > That could be an okay solution, I think. In the absence of a patch, it's hard to judge how clean or gross this would be. Stefan