GNU bug report logs -
#29462
24.4; eval-when-compile won't mute warning as says in info doc
Previous Next
Reported by: Emanuel Berg <moasen <at> zoho.com>
Date: Mon, 27 Nov 2017 01:23:01 UTC
Severity: minor
Found in version 24.4
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Michael Heerdegen wrote:
>> 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
It sure send mixed signals and as it stands one
gets the impression what you should do is find
ways of silencing warnings, instead of
improving the code so there is nothing to warn
about to begin with.
--
underground experts united
http://user.it.uu.se/~embe8573
This bug report was last modified 7 years and 173 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.