emacs-devel
[Top][All Lists]
Advanced

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

Re: "reference to free variable" only during initialization


From: Yuri D'Elia
Subject: Re: "reference to free variable" only during initialization
Date: Sun, 19 Feb 2017 13:32:47 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

On Sat, Feb 18 2017, Noam Postavsky wrote:
> --eval '(setq after-init-time t)' has no effect, but doing
>
>     (let ((after-init-time t))
>       (require 'modeline-posn))
>
> in the init.el file does prevent the warning from popping up. It also
> improves the error message: the prefix becomes
> ".emacs.d/lisp/modeline-posn.el:Warning:" instead of "Warning
> (bytecomp):". This is because byte compilation is let-binding
> warning-prefix-function which is not saved for delayed warnings.

Understood. But then, back to the original issue: can you explain the
warning? modeline-posn doesn't seem to be doing strange things here.




reply via email to

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