[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Keeping run-time code from running at compile-time
From: |
Bill Wohler |
Subject: |
Keeping run-time code from running at compile-time |
Date: |
Thu, 06 Oct 2005 22:09:53 -0700 |
I'm having some compiling trouble. File B which requires file A fails to
compile because file A contains code that should not be run at
compile-time, just run-time.
I've distilled the essence into a tiny example. Save the attachments
with "K a" and then run the script doit. Right now, I'm getting the
output:
[wohler@olgas:807]$ sh doit
While compiling toplevel forms in file /tmp/b.el:
!! error (("Shouldn't hit this when compiling"))
Done
Loading b (source)...
Shouldn't hit this when compiling
I'd like to get the output:
[wohler@olgas:807]$ sh doit
Wrote /tmp/b.elc
Done
Loading b (source)...
Shouldn't hit this when compiling
Thanks for any help you can provide.
doit
Description: application/shellscript
(defun foo ()
(error "Shouldn't hit this when compiling"))
(foo)
(provide 'a)
(require 'a)
(defun doit ()
(message "%s" "Hello, world!"))
--
Bill Wohler <wohler@newt.com> http://www.newt.com/wohler/ GnuPG ID:610BD9AD
Maintainer of comp.mail.mh FAQ and MH-E. Vote Libertarian!
If you're passed on the right, you're in the wrong lane.
- Keeping run-time code from running at compile-time,
Bill Wohler <=