help-gnu-emacs
[Top][All Lists]
Advanced

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

eval-when-compile and require


From: Emanuel Berg
Subject: eval-when-compile and require
Date: Tue, 21 Nov 2017 05:05:00 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

I'm reading on with the intention of preparing
the pack for MELPA and now it says [1]

    If you use many functions and variables
    from a certain file, you can add
    a ‘require’ for that package to avoid
    compilation warnings for them.
    For instance,

              (eval-when-compile
                (require 'foo))

Here I'm not following. Of course the stuff
should be compiled. And if it isn't, the above
enclosement with `eval-when-compile' helps
by... breaking it?

Besides there are no warnings with plain
`require', so what does it all mean?

[1] (info "(elisp) Warning Tips")

-- 
underground experts united
http://user.it.uu.se/~embe8573




reply via email to

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