all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* eval-when-compile and require
@ 2017-11-21  4:05 Emanuel Berg
  2017-11-21  7:29 ` tomas
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Emanuel Berg @ 2017-11-21  4:05 UTC (permalink / raw)
  To: help-gnu-emacs

I'm reading on with the intention of preparing
the pack for MELPA and now it says [1]

    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))

Here I'm not following. Of course the stuff
should be compiled. And if it isn't, the above
enclosement with `eval-when-compile' helps
by... breaking it?

Besides there are no warnings with plain
`require', so what does it all mean?

[1] (info "(elisp) Warning Tips")

-- 
underground experts united
http://user.it.uu.se/~embe8573




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

end of thread, other threads:[~2017-11-27  2:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-21  4:05 eval-when-compile and require Emanuel Berg
2017-11-21  7:29 ` tomas
2017-11-21 16:55   ` Emanuel Berg
2017-11-22  2:42 ` Stefan Monnier
2017-11-22 14:03   ` Emanuel Berg
2017-11-23  5:25   ` Emanuel Berg
2017-11-27  2:51   ` Emanuel Berg
     [not found] ` <mailman.4288.1511318543.27995.help-gnu-emacs@gnu.org>
2017-11-23  5:22   ` Emanuel Berg

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.