From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: TV Raman Newsgroups: gmane.emacs.bugs Subject: Dynamic Compile: CL Triggers Bug Date: Fri, 2 Aug 2002 17:27:31 -0700 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <200208030027.g730RVu04872@bubbles.almaden.ibm.com> Reply-To: tvraman@almaden.ibm.com NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1028334452 29803 127.0.0.1 (3 Aug 2002 00:27:32 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 3 Aug 2002 00:27:32 +0000 (UTC) Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17amlW-0007kS-00 for ; Sat, 03 Aug 2002 02:27:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17amm5-0006ME-00; Fri, 02 Aug 2002 20:28:05 -0400 Original-Received: from p1.almaden.ibm.com ([198.4.83.52] helo=mailhub2.almaden.ibm.com) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17amli-0006Jj-00 for ; Fri, 02 Aug 2002 20:27:43 -0400 Original-Received: from bubbles.almaden.ibm.com (IDENT:root@bubbles.almaden.ibm.com [9.1.17.200]) by mailhub2.almaden.ibm.com (AIX4.3/8.9.3/8.9.3) with ESMTP id RAA34652 for ; Fri, 2 Aug 2002 17:27:35 -0700 Original-Received: (from tvraman@localhost) by bubbles.almaden.ibm.com (8.11.6/8.11.0) id g730RVu04872; Fri, 2 Aug 2002 17:27:31 -0700 Original-To: bug-gnu-emacs@gnu.org Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:3097 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:3097 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 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