emacs-devel
[Top][All Lists]
Advanced

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

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


From: Stefan Monnier
Subject: Re: Add a separate mode for .dir-locals.el
Date: Fri, 18 Oct 2019 08:56:48 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

>> > 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




reply via email to

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