all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Why (eval-when-compile (require 'foo)) does not bind functions during compilation?
@ 2015-08-30  4:40 Marcin Borkowski
  2015-08-30 20:03 ` Michael Heerdegen
  0 siblings, 1 reply; 4+ messages in thread
From: Marcin Borkowski @ 2015-08-30  4:40 UTC (permalink / raw)
  To: Help Gnu Emacs mailing list

As in the subject.  The manual says that it does define macros from the
library “foo”, but not functions.  Why is that so?  I would think that
the above form actually evaluates the (require 'foo) part during
compilation, so in particular it should evaluate all the defuns there –
but both experiments and manual confirm that I’m wrong.  Where is my
mental model incorrect?

TIA,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-08-30 20:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.180.1440909671.19560.help-gnu-emacs@gnu.org>
2015-08-30  7:23 ` Why (eval-when-compile (require 'foo)) does not bind functions during compilation? Pascal J. Bourguignon
2015-08-30 19:18   ` Barry Margolin
2015-08-30  4:40 Marcin Borkowski
2015-08-30 20:03 ` Michael Heerdegen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.