emacs-devel
[Top][All Lists]
Advanced

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

Re: [nongnu] elpa/clojure-mode f8989ab615: Let the byte-compiler know ab


From: Stefan Monnier
Subject: Re: [nongnu] elpa/clojure-mode f8989ab615: Let the byte-compiler know about dynamic var
Date: Wed, 02 Feb 2022 08:23:36 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

>  (eval-when-compile
>    (defvar calculate-lisp-indent-last-sexp)
> +  (defvar delete-pair-blink-delay)
>    (defvar font-lock-beg)
>    (defvar font-lock-end)
>    (defvar paredit-space-for-delimiter-predicates)

`defvar` (when given a single argument) is a compiler directive whose
execution has no effect.

The fact that it also works when placed inside `eval-when-compile` is an
accident (and a bug: it should only affect the rest of the code within
the `eval-when-compile`).

Please move those out of `eval-when-compile`.


        Stefan




reply via email to

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