From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#29462: 24.4; eval-when-compile won't mute warning as says in info doc Date: Mon, 27 Nov 2017 18:29:25 +0200 Message-ID: <83mv3765y2.fsf@gnu.org> References: <86shd0h5xq.fsf@zoho.com> <87h8tgqw2p.fsf@web.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1511800219 19339 195.159.176.226 (27 Nov 2017 16:30:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 27 Nov 2017 16:30:19 +0000 (UTC) Cc: 29462@debbugs.gnu.org To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 27 17:30:15 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eJMIK-0004Ln-U8 for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Nov 2017 17:30:09 +0100 Original-Received: from localhost ([::1]:33543 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eJMIS-0006HD-7U for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Nov 2017 11:30:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55629) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eJMII-0006Bz-67 for bug-gnu-emacs@gnu.org; Mon, 27 Nov 2017 11:30:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eJMIF-0007ju-GZ for bug-gnu-emacs@gnu.org; Mon, 27 Nov 2017 11:30:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52454) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eJMIF-0007jm-CV for bug-gnu-emacs@gnu.org; Mon, 27 Nov 2017 11:30:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eJMIE-0006Jo-9q for bug-gnu-emacs@gnu.org; Mon, 27 Nov 2017 11:30:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Nov 2017 16:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29462 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 29462-submit@debbugs.gnu.org id=B29462.151180018524235 (code B ref 29462); Mon, 27 Nov 2017 16:30:02 +0000 Original-Received: (at 29462) by debbugs.gnu.org; 27 Nov 2017 16:29:45 +0000 Original-Received: from localhost ([127.0.0.1]:32901 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eJMHw-0006Ip-P7 for submit@debbugs.gnu.org; Mon, 27 Nov 2017 11:29:44 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:36059) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eJMHv-0006Ic-LI for 29462@debbugs.gnu.org; Mon, 27 Nov 2017 11:29:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eJMHn-0007MU-R5 for 29462@debbugs.gnu.org; Mon, 27 Nov 2017 11:29:38 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52119) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eJMHn-0007MO-O5; Mon, 27 Nov 2017 11:29:35 -0500 Original-Received: from [176.228.60.248] (port=2113 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eJMHn-0005DU-53; Mon, 27 Nov 2017 11:29:35 -0500 In-reply-to: <87h8tgqw2p.fsf@web.de> (message from Michael Heerdegen on Mon, 27 Nov 2017 03:44:46 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:140460 Archived-At: > From: Michael Heerdegen > Date: Mon, 27 Nov 2017 03:44:46 +0100 > > Emanuel Berg 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. The above citation is from a section which explains how to avoid warnings. It is not the place where we document 'require' itself, only its use to avoid warnings. So reading that out of context as a statement of the main purpose of 'require' is a mistake, as 'require' is fully documented elsewhere in the manual. In the context of avoiding warnings, I see no problem in mentioning 'require'.