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

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

bug#29462: 24.4; eval-when-compile won't mute warning as says in info do


From: Michael Heerdegen
Subject: bug#29462: 24.4; eval-when-compile won't mute warning as says in info doc
Date: Mon, 27 Nov 2017 03:44:46 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Emanuel Berg <address@hidden> writes:

> In (info "(elisp) Warning Tips"), it says
>
>    * 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))

Thanks for the report.

I find this whole sentence confusing and misleading in general.  The
main purpose of `require' is not to silence warnings, and calling it is
very often something needed, not only something one "can" do.


Michael.





reply via email to

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