emacs-devel
[Top][All Lists]
Advanced

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

Re: A combination of defmacro, functionp, and quoted lambdas yields diff


From: Clément Pit-Claudel
Subject: Re: A combination of defmacro, functionp, and quoted lambdas yields different results on consecutive evaluations
Date: Wed, 28 Feb 2018 09:26:42 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

On 2018-02-27 16:35, Stefan Monnier wrote:
> I was about to suggest that you might ask the Flycheck maintainer to
> provide a function that can be used instead of the macro
> flycheck-define-checker, but I see that it's pretty much already the
> case: just use flycheck-define-command-checker.

Oh, the Flycheck maintainers is already well aware of the issue: there are two 
of them, and one of them is me :)
That function is semi-internal: we don't want people to have to use it.

> Another option, is to compile that file and then you can do
> 
>     (eval-when-compile (require 'flycheck))
>     (with-eval-after-load 'flycheck
>       (flycheck-define-checker
>         …))
> 
> it also works if you don't byte-compile, except that the
> with-eval-after-load becomes ineffective.

What do you mean by ineffective? It would just run immediately because the form 
above loads Flycheck when interpreted, right?

Clément.



reply via email to

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