From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: cl-byte-compile-compiler-macro Date: Tue, 04 Apr 2006 23:47:30 -0400 Message-ID: References: <1t3bh8soqw.fsf@fencepost.gnu.org> <2wacbf6xt1.fsf@fencepost.gnu.org> <87ek0olk4t.fsf-monnier+emacs@gnu.org> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1144208949 8479 80.91.229.2 (5 Apr 2006 03:49:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 5 Apr 2006 03:49:09 +0000 (UTC) Cc: rgm@gnu.org, emacs-devel@gnu.org, monnier@iro.umontreal.ca, storm@cua.dk Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 05 05:49:06 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FQz0v-0006LS-Jl for ged-emacs-devel@m.gmane.org; Wed, 05 Apr 2006 05:49:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FQz0v-0004V2-6p for ged-emacs-devel@m.gmane.org; Tue, 04 Apr 2006 23:49:01 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FQyzU-0003Yu-EZ for emacs-devel@gnu.org; Tue, 04 Apr 2006 23:47:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FQyzT-0003YO-QR for emacs-devel@gnu.org; Tue, 04 Apr 2006 23:47:32 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FQyzT-0003YD-MZ for emacs-devel@gnu.org; Tue, 04 Apr 2006 23:47:31 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FQz2u-0000Dc-6c for emacs-devel@gnu.org; Tue, 04 Apr 2006 23:51:04 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1FQyzS-00032Q-Lc; Tue, 04 Apr 2006 23:47:30 -0400 Original-To: Andreas Schwab In-reply-to: (message from Andreas Schwab on Tue, 04 Apr 2006 22:37:12 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:52428 Archived-At: > It could be a problem that compiling a call to these macros loads CL. > I am not sure; it is on the borderline. > > Does interpreting a call to these defstruct accessor macros also load CL? defstruct is defined in cl-macs, so you can't use it without loading cl. We are miscommunicating. We have a file foo.el that uses defstruct and defines an accessor, foo-bar. Loading foo.elc will load the compiled definition of foo-bar. If another file, quux.el, does (require 'foo), it will load the compiled definition of foo-bar. So there are two questions: When I load quux.el, and run it interpreted, does it need to load CL in order to process the call to foo-bar? (Stefan says no.) When I compile quux.el, does that need CL to be loaded? (Assume quux.el does not load CL itself.)