From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: Science to suppress compiler warnings Date: Wed, 3 Jun 2009 02:51:26 +0200 Message-ID: References: <87fxeigro9.wl%xma@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1243990299 29516 80.91.229.12 (3 Jun 2009 00:51:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Jun 2009 00:51:39 +0000 (UTC) Cc: Xavier Maillard , emacs-devel@gnu.org To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 03 02:51:37 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 1MBehd-0000pd-1g for ged-emacs-devel@m.gmane.org; Wed, 03 Jun 2009 02:51:37 +0200 Original-Received: from localhost ([127.0.0.1]:41084 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MBehc-0000sw-9o for ged-emacs-devel@m.gmane.org; Tue, 02 Jun 2009 20:51:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MBehX-0000rT-EL for emacs-devel@gnu.org; Tue, 02 Jun 2009 20:51:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MBehW-0000ps-G2 for emacs-devel@gnu.org; Tue, 02 Jun 2009 20:51:30 -0400 Original-Received: from [199.232.76.173] (port=47404 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MBehW-0000pY-Bh for emacs-devel@gnu.org; Tue, 02 Jun 2009 20:51:30 -0400 Original-Received: from fg-out-1718.google.com ([72.14.220.153]:55367) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MBehU-0000KO-PN; Tue, 02 Jun 2009 20:51:29 -0400 Original-Received: by fg-out-1718.google.com with SMTP id l27so789867fgb.7 for ; Tue, 02 Jun 2009 17:51:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=D2kid+ddReQyBe8NY9V6YT6HtlXKkrpFVQW43/GTe6U=; b=V2oT1ib45sYPlb7XRKHs2svbP+oMmOal6KRdhX1199KE8C4WH/VDUgUddCdabGBNN4 uD1/d7aA6vK6F7eGxaHTuldC6/THNpWl4PM1qYuEbTH3/8RVF9H8tqxtqBncfIXWHfOi 9vNxqMhRzInkKq+yp/JDBSUoN0WMZQAyC2bHQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=cIUH26xVhnsqn+mCSV0HJm3z+e+oonw1+MChuOtOthsQkP9VNci1F8+3BP2I/wvdCZ NycbPxxAx8yc/cTU+H397WqRihWmfH6eXZDjgnGZxsH1EgQUB79oiaFpl3/O4QUnccAw MLSzXqRti6iCGqgLvmu1n3C2xf8imyYJllams= Original-Received: by 10.239.146.212 with SMTP id x20mr27141hba.97.1243990286751; Tue, 02 Jun 2009 17:51:26 -0700 (PDT) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:111299 Archived-At: On Wed, Jun 3, 2009 at 1:57 AM, Drew Adams wrote: >> (eval-when-compile (defvar foo nil)) > > (eval-when-compile (defvar foo)) > > You don't give it a value; you just declare it (to the compiler). If you check later for a library (which is probably what you normally want to do as Drew said) you could also do: (eval-when-compile (require 'THELIB)) Then you probably have things in your the library you compile like (defun my-defun () (require 'THELIB nil t) (when (featurep 'THELIB) ...)