From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.help Subject: Why (eval-when-compile (require 'foo)) does not bind functions during compilation? Date: Sun, 30 Aug 2015 06:40:57 +0200 Message-ID: <87vbbxmlra.fsf@mbork.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1440909689 12544 80.91.229.3 (30 Aug 2015 04:41:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Aug 2015 04:41:29 +0000 (UTC) To: Help Gnu Emacs mailing list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Aug 30 06:41:21 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZVuQh-0003z5-PM for geh-help-gnu-emacs@m.gmane.org; Sun, 30 Aug 2015 06:41:19 +0200 Original-Received: from localhost ([::1]:56540 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVuQi-0007u7-CR for geh-help-gnu-emacs@m.gmane.org; Sun, 30 Aug 2015 00:41:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38385) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVuQY-0007ty-76 for help-gnu-emacs@gnu.org; Sun, 30 Aug 2015 00:41:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZVuQV-0008Ri-19 for help-gnu-emacs@gnu.org; Sun, 30 Aug 2015 00:41:10 -0400 Original-Received: from mail.mojserwer.eu ([2a01:5e00:2:52::8]:33725) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZVuQU-0008QZ-Q5 for help-gnu-emacs@gnu.org; Sun, 30 Aug 2015 00:41:06 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 4E7D96F2005 for ; Sun, 30 Aug 2015 06:41:05 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Original-Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TImbs4uQLBhz for ; Sun, 30 Aug 2015 06:41:03 +0200 (CEST) Original-Received: from localhost (c76-224.wmi.amu.edu.pl [150.254.76.224]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 245256F2003 for ; Sun, 30 Aug 2015 06:41:03 +0200 (CEST) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a01:5e00:2:52::8 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:106928 Archived-At: As in the subject. The manual says that it does define macros from the library =E2=80=9Cfoo=E2=80=9D, but not functions. Why is that so? I wou= ld think that the above form actually evaluates the (require 'foo) part during compilation, so in particular it should evaluate all the defuns there =E2= =80=93 but both experiments and manual confirm that I=E2=80=99m wrong. Where is= my mental model incorrect? TIA, --=20 Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University