From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xavier Maillard Newsgroups: gmane.emacs.devel Subject: Re: Science to suppress compiler warnings Date: Wed, 03 Jun 2009 11:04:09 +0200 Organization: GNU's Not UNIX! Message-ID: <87ab4phenq.wl%xma@gnu.org> References: <87fxeigro9.wl%xma@gnu.org> Reply-To: Xavier Maillard NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1244027206 22002 80.91.229.12 (3 Jun 2009 11:06:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Jun 2009 11:06:46 +0000 (UTC) Cc: 'Xavier Maillard' , Drew Adams , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 03 13:06:43 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MBoIs-0000V6-1J for ged-emacs-devel@m.gmane.org; Wed, 03 Jun 2009 13:06:42 +0200 Original-Received: from localhost ([127.0.0.1]:33127 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MBoIr-0001iw-GK for ged-emacs-devel@m.gmane.org; Wed, 03 Jun 2009 07:06:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MBoI0-0001HS-He for emacs-devel@gnu.org; Wed, 03 Jun 2009 07:05:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MBoHv-0001Ek-Uh for emacs-devel@gnu.org; Wed, 03 Jun 2009 07:05:48 -0400 Original-Received: from [199.232.76.173] (port=52496 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MBoHv-0001Eg-RS for emacs-devel@gnu.org; Wed, 03 Jun 2009 07:05:43 -0400 Original-Received: from cha51-2-82-244-211-40.fbx.proxad.net ([82.244.211.40]:52462 helo=mail.maillard.mobi) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MBoHq-000468-FJ; Wed, 03 Jun 2009 07:05:38 -0400 Original-Received: from zogzog.zogzog.maillard.mobi (unknown [192.168.0.254]) by mail.maillard.mobi (Postfix) with ESMTPS id 1AB6DAB6E; Wed, 3 Jun 2009 13:09:11 +0200 (CEST) In-Reply-To: User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.7 (=?UTF-8?B?U2FuasWN?=) 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 Jabber-ID: xma01@jabber.fr X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:111312 Archived-At: 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, Xavier