From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Lennart Borgman" Newsgroups: gmane.emacs.devel Subject: Re: Byte compiling and declarations inside if or when Date: Tue, 28 Dec 2004 18:24:37 +0100 Message-ID: <008b01c4ed02$27210750$0200a8c0@sedrcw11488> References: <005f01c4ecdc$ca0768e0$0200a8c0@sedrcw11488> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1104254791 21672 80.91.229.6 (28 Dec 2004 17:26:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 28 Dec 2004 17:26:31 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 28 18:26:24 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CjL71-0002lj-00 for ; Tue, 28 Dec 2004 18:26:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CjLHs-0002YL-Tt for ged-emacs-devel@m.gmane.org; Tue, 28 Dec 2004 12:37:36 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CjLHi-0002WL-Vw for emacs-devel@gnu.org; Tue, 28 Dec 2004 12:37:27 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CjLHh-0002VG-4K for emacs-devel@gnu.org; Tue, 28 Dec 2004 12:37:25 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CjLHh-0002Ub-0D for emacs-devel@gnu.org; Tue, 28 Dec 2004 12:37:25 -0500 Original-Received: from [81.228.10.107] (helo=av9-2-sn4.m-sp.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CjL5r-0006ae-Ct for emacs-devel@gnu.org; Tue, 28 Dec 2004 12:25:11 -0500 Original-Received: by av9-2-sn4.m-sp.skanova.net (Postfix, from userid 502) id B0EEA37EFA; Tue, 28 Dec 2004 18:25:10 +0100 (CET) Original-Received: from smtp2-2-sn4.m-sp.skanova.net (smtp2-2-sn4.m-sp.skanova.net [81.228.10.182]) by av9-2-sn4.m-sp.skanova.net (Postfix) with ESMTP id 9A74C37E59 for ; Tue, 28 Dec 2004 18:25:10 +0100 (CET) Original-Received: from sedrcw11488 (t3o58p195.telia.com [195.252.56.195]) by smtp2-2-sn4.m-sp.skanova.net (Postfix) with SMTP id D333137E44 for ; Tue, 28 Dec 2004 18:25:09 +0100 (CET) Original-To: "Emacs Devel" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 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: main.gmane.org gmane.emacs.devel:31531 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:31531 Please excuse me and forget this for a while. I am at the moment unable to reproduce what I saw yesterday. For some reason w32-system was not bound after require (when compiling if I remember correctly) if I did not use eval-and-compile. Today I see no such thing. I feel confused. I was experimenting with batch-byte-compile, batch-recompile-dir and byte-compile-file. I am now using batch-byte-compile and compile the files one by one (as suggested in lisp/makefile, I did not remember to do this at first yesterday). And I forgot to mention I was using 21.3.1 when doing this. - Lennart ----- Original Message ----- From: "Lennart Borgman" ... > I am trying to rewrite some code so that it can be byte compiled (with > byte-compile-file). My first example is just a simple test (partly riped > from sys.el): > > ** w32-sys.el: > > (eval-and-compile > (defvar w32-system > (memq system-type '(emx win32 w32 mswindows ms-dos windows-nt)) > "*Non-nil means Emacs is running on Windows 9x/NT." > ) > ) > > Is this the way it should be done if I want to byte-compile-file this file? ...