[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Science to suppress compiler warnings

From: Xavier Maillard
Subject: Re: Science to suppress compiler warnings
Date: Wed, 03 Jun 2009 11:04:09 +0200
User-agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.7 (Sanjō) APEL/10.7 Emacs/23.0.93 (i486-slackware-linux-gnu) MULE/6.0 (HANACHIRUSATO)
User-agent: Rmail GNU emacs 23.0 on Slackware 12.2.0

At Wed, 03 Jun 2009 01:35:11 -0400,
Stefan Monnier wrote:
> >> (eval-when-compile (defvar foo nil))
> > (eval-when-compile (defvar foo))
> Aka just
>   (defvar foo)

Could you explain to me why ? When does one want to use
(eval-when-compile ...) ? I know at least one for sure, macro
compilation, but why not for variables or even functions ?

Is the byte-compilation process and/or eval-* functions well
covered somewhere in the emacs documentation ? I read a lot,
googled a lot but nothing really helpful (even the elisp manual
is pretty poor on that).

Thank you,


reply via email to

[Prev in Thread] Current Thread [Next in Thread]