all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: TV Raman <tvraman@almaden.ibm.com>
Subject: Dynamic Compile: CL Triggers Bug
Date: Fri, 2 Aug 2002 17:27:31 -0700	[thread overview]
Message-ID: <200208030027.g730RVu04872@bubbles.almaden.ibm.com> (raw)

This bug is present in both Emacs 20.2 and Emacs 21.

If you use (require 'cl)
and define a structure using defstruct,
and if that file is byte-compiled with byte-compile-dynamic set to t
--then the automatically defined make- constructur throws an invalid 
syntax "#" error.

Attached are two files that demonstrate the problem:

test-1.el --byte-compile-dynamic is t --
test-2.el byte-compile-dynamic set to nil

To reproduce the bug:

0) Byte compile both files 
emacs -batch -q -f batch-byte-compile <filename>

Load test-1.elc and evaluate the form 
(make-test :a 1)
--this will give an error

Now, load test-2.elc and evaluate the same form --no error.

[ATTACHMENT /tmp/test-1.el, application/octet-stream]
[ATTACHMENT /tmp/test-2.el, application/octet-stream]

-- 
Best Regards,
--raman
------------------------------------------------------------
T. V. Raman:  PhD (Cornell University)
IBM Research: Human Language Technologies
Architect:    Conversational And Multimodal WWW Standards
Phone:        1 (408) 927 2608   T-Line 457-2608
Fax:        1 (408) 927 3012
Email:        tvraman@us.ibm.com
WWW:      http://www.cs.cornell.edu/home/raman
AIM:      TVRaman
PGP:          http://emacspeak.sf.net/raman.asc
Snail:        IBM Almaden Research Center,
              650 Harry Road
              San Jose 95120

                 reply	other threads:[~2002-08-03  0:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=200208030027.g730RVu04872@bubbles.almaden.ibm.com \
    --to=tvraman@almaden.ibm.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.