From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.eieio,gmane.emacs.devel Subject: Re: Cleaning up the EIEIO namespace Date: Sun, 17 Feb 2013 12:08:41 -0500 Message-ID: References: <87sj51fakd.fsf@engster.org> <87k3qcfa4x.fsf@engster.org> <87zjz6egb2.fsf@engster.org> <87vc9uedln.fsf@engster.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1361120932 1517 80.91.229.3 (17 Feb 2013 17:08:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 Feb 2013 17:08:52 +0000 (UTC) Cc: emacs-devel@gnu.org, "Eric M. Ludlam" To: cedet-eieio@lists.sourceforge.net Original-X-From: cedet-eieio-bounces@lists.sourceforge.net Sun Feb 17 18:09:12 2013 Return-path: Envelope-to: sf-cedet-eieio@m.gmane.org Original-Received: from lists.sourceforge.net ([216.34.181.88]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U77jj-0003jk-FA for sf-cedet-eieio@m.gmane.org; Sun, 17 Feb 2013 18:09:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=sfs-ml-3.v29.ch3.sourceforge.com) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1U77jN-0003Gp-71; Sun, 17 Feb 2013 17:08:49 +0000 Original-Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1U77jM-0003Gi-2b for cedet-eieio@lists.sourceforge.net; Sun, 17 Feb 2013 17:08:48 +0000 Received-SPF: softfail (sog-mx-4.v43.ch3.sourceforge.com: transitioning domain of iro.umontreal.ca does not designate 206.248.154.182 as permitted sender) client-ip=206.248.154.182; envelope-from=monnier@iro.umontreal.ca; helo=ironport2-out.teksavvy.com; Original-Received: from [206.248.154.182] (helo=ironport2-out.teksavvy.com) by sog-mx-4.v43.ch3.sourceforge.com with esmtp (Exim 4.76) id 1U77jL-0005B3-9H for cedet-eieio@lists.sourceforge.net; Sun, 17 Feb 2013 17:08:47 +0000 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EABK/CFFFxKjI/2dsb2JhbABEuzWDWRdzgh8BBVYjEAs0EhQYDYhIwS2NYYMpA4hhnBmBXoMV X-IPAS-Result: Av8EABK/CFFFxKjI/2dsb2JhbABEuzWDWRdzgh8BBVYjEAs0EhQYDYhIwS2NYYMpA4hhnBmBXoMV X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="1623962" Original-Received: from 69-196-168-200.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net) ([69.196.168.200]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 17 Feb 2013 12:08:40 -0500 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 52A32AE500; Sun, 17 Feb 2013 12:08:41 -0500 (EST) In-Reply-To: <87vc9uedln.fsf@engster.org> (David Engster's message of "Thu, 14 Feb 2013 23:26:44 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Spam-Score: 2.0 (++) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 1.0 RDNS_NONE Delivered to internal network by a host with no rDNS X-Headers-End: 1U77jL-0005B3-9H X-BeenThere: cedet-eieio@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: cedet-eieio-bounces@lists.sourceforge.net Xref: news.gmane.org gmane.emacs.eieio:146 gmane.emacs.devel:157101 Archived-At: >>>>> In toplevel form: >>>>> eieio.el:168:1:Error: Symbol's function definition is void: >>>>> eieio--class-parent >>>> Can you (setq byte-compile-error t debug-on-error t) so as to get >>>> a backtrace? >>> Did you mean `byte-compile-error-on-warn'? Anyway, I'm afraid I just >>> don't get a backtrace with debug-on-error. >> No, I meant byte-compile-debug sorry. > Ah OK, I didn't know that one. Now I get a trace, but it's huge, so I > gzipped it. eieio's extensive abuse of eval-and-compile is a real pain in the rear! Does the additional patch below make it work for you? Stefan --- lisp/emacs-lisp/eieio.el.orig 2013-02-17 12:06:09.252331190 -0500 +++ lisp/emacs-lisp/eieio.el 2013-02-17 12:06:20.336456193 -0500 @@ -121,10 +121,9 @@ (list 'aref x ,index)) defs) (setq index (1+ index)))) - `(progn + `(eval-and-compile ,@(nreverse defs) - (eval-and-compile - (defconst ,(intern (format "eieio--%s-num-slots" prefix)) ,index))))) + (defconst ,(intern (format "eieio--%s-num-slots" prefix)) ,index)))) (eieio--define-field-accessors class (-unused-0 ;;FIXME: not sure, but at least there was no accessor! ------------------------------------------------------------------------------ The Go Parallel Website, sponsored by Intel - in partnership with Geeknet, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials, tech docs, whitepapers, evaluation guides, and opinion stories. Check out the most recent posts - join the conversation now. http://goparallel.sourceforge.net/