[Top][All Lists]

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

Re: Byte compiling and declarations inside if or when

From: Lennart Borgman
Subject: Re: Byte compiling and declarations inside if or when
Date: Tue, 28 Dec 2004 18:24:37 +0100

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" <address@hidden>

> 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

reply via email to

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