From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Add a separate mode for .dir-locals.el Date: Fri, 18 Oct 2019 10:39:40 +0300 Message-ID: <83o8ye8ptv.fsf@gnu.org> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="174594"; mail-complaints-to="usenet@blaine.gmane.org" Cc: cpitclaudel@gmail.com, joaotavora@gmail.com, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 18 09:40:45 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 1iLMsN-000jJr-OL for ged-emacs-devel@m.gmane.org; Fri, 18 Oct 2019 09:40:43 +0200 Original-Received: from localhost ([::1]:35942 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLMsM-00056r-5l for ged-emacs-devel@m.gmane.org; Fri, 18 Oct 2019 03:40:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58928) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLMra-00056N-W2 for emacs-devel@gnu.org; Fri, 18 Oct 2019 03:39:56 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:56170) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iLMra-0006N1-N4; Fri, 18 Oct 2019 03:39:54 -0400 Original-Received: from [176.228.60.248] (port=4123 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iLMra-0007Yv-5e; Fri, 18 Oct 2019 03:39:54 -0400 In-reply-to: (message from Stefan Monnier on Thu, 17 Oct 2019 15:53:17 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:241188 Archived-At: > From: Stefan Monnier > Cc: João Távora , > cpitclaudel@gmail.com, emacs-devel@gnu.org > Date: Thu, 17 Oct 2019 15:53:17 -0400 > > > 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.