From: Bill Wohler <wohler@newt.com>
Subject: Keeping run-time code from running at compile-time
Date: Thu, 06 Oct 2005 22:09:53 -0700 [thread overview]
Message-ID: <30692.1128661793@olgas.newt.com> (raw)
In-Reply-To: Bill Wohler's message of Thu, 06 Oct 2005 17:29:51 PDT. <4951.1128644991@olgas.newt.com>
[-- Attachment #1: Type: text/plain, Size: 721 bytes --]
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.
[-- Attachment #2: doit --]
[-- Type: application/x-shellscript, Size: 299 bytes --]
[-- Attachment #3: a.el --]
[-- Type: text/plain, Size: 80 bytes --]
(defun foo ()
(error "Shouldn't hit this when compiling"))
(foo)
(provide 'a)
[-- Attachment #4: b.el --]
[-- Type: text/plain, Size: 62 bytes --]
(require 'a)
(defun doit ()
(message "%s" "Hello, world!"))
[-- Attachment #5: Type: text/plain, Size: 199 bytes --]
--
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.
[-- Attachment #6: Type: text/plain, Size: 152 bytes --]
_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
next prev parent reply other threads:[~2005-10-07 5:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4951.1128644991@olgas.newt.com>
2005-10-07 5:06 ` Keeping run-time code from running at compile-time Bill Wohler
2005-10-07 5:09 ` Bill Wohler
2005-10-07 5:09 ` Bill Wohler [this message]
[not found] ` <mailman.10195.1128661802.20277.help-gnu-emacs@gnu.org>
2005-10-07 16:45 ` rgb
2005-10-11 3:48 ` Stefan Monnier
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=30692.1128661793@olgas.newt.com \
--to=wohler@newt.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.