[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Add a separate mode for .dir-locals.el

From: Eli Zaretskii
Subject: Re: Add a separate mode for .dir-locals.el
Date: Fri, 18 Oct 2019 10:39:40 +0300

> From: Stefan Monnier <address@hidden>
> Cc: João Távora <address@hidden>,
>   address@hidden,  address@hidden
> 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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]