unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Lennart Borgman" <lennart.borgman.073@student.lu.se>
Subject: Re: Byte compiling and declarations inside if or when
Date: Tue, 28 Dec 2004 18:24:37 +0100	[thread overview]
Message-ID: <008b01c4ed02$27210750$0200a8c0@sedrcw11488> (raw)
In-Reply-To: 005f01c4ecdc$ca0768e0$0200a8c0@sedrcw11488

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" <lennart.borgman.073@student.lu.se>

...
> 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?
...

      reply	other threads:[~2004-12-28 17:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-28 12:57 Byte compiling and declarations inside if or when Lennart Borgman
2004-12-28 17:24 ` Lennart Borgman [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='008b01c4ed02$27210750$0200a8c0@sedrcw11488' \
    --to=lennart.borgman.073@student.lu.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).