From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Engster Newsgroups: gmane.emacs.devel,gmane.emacs.eieio Subject: Re: Cleaning up the EIEIO namespace Date: Thu, 14 Feb 2013 22:28:17 +0100 Message-ID: <87zjz6egb2.fsf@engster.org> References: <87sj51fakd.fsf@engster.org> <87k3qcfa4x.fsf@engster.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1360877312 12285 80.91.229.3 (14 Feb 2013 21:28:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Feb 2013 21:28:32 +0000 (UTC) Cc: "Eric M. Ludlam" , cedet-eieio@lists.sourceforge.net, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 14 22:28:53 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U66MK-0007GA-3q for ged-emacs-devel@m.gmane.org; Thu, 14 Feb 2013 22:28:48 +0100 Original-Received: from localhost ([::1]:58682 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U66M0-00045g-I9 for ged-emacs-devel@m.gmane.org; Thu, 14 Feb 2013 16:28:28 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:38721) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U66Lx-00045W-E9 for emacs-devel@gnu.org; Thu, 14 Feb 2013 16:28:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U66Lv-0008Qv-Ec for emacs-devel@gnu.org; Thu, 14 Feb 2013 16:28:25 -0500 Original-Received: from randomsample.de ([83.169.19.17]:51190) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U66Lv-0008QL-3K for emacs-devel@gnu.org; Thu, 14 Feb 2013 16:28:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=randomsample.de; s=a; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To:Subject:Cc:To:From; bh=TxD3KO5OhzPbWvAS/1BoVIni2JlprBEXhvZcbR9Mus8=; b=enHPOcaGxgDR7ecjEZ0lrhe03VtmT/yubWctpuaE5zhi8QTqYNCRrfVl4WDylINeShxfxw28si8Jv9k5ItKeMHX29qIsx1vxUN+fXV+GEz37Sg4J6PP1yApzMXw/KQCP; Original-Received: from dslc-082-083-045-086.pools.arcor-ip.net ([82.83.45.86] helo=spaten) by randomsample.de with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1U66Ls-0000TN-EI; Thu, 14 Feb 2013 22:28:20 +0100 In-Reply-To: (Stefan Monnier's message of "Thu, 14 Feb 2013 09:30:27 -0500") User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.92 (gnu/linux) Mail-Followup-To: Stefan Monnier , cedet-eieio@lists.sourceforge.net, emacs-devel@gnu.org, "Eric M. Ludlam" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 83.169.19.17 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:157035 gmane.emacs.eieio:142 Archived-At: Stefan Monnier writes: >> 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. >> I also cannot find a definition for eieio--class-parent, but maybe it's >> hidden somewhere? > > It's defined (as a macro) by the call to (eieio--define-field-accessors > class ...) which is kind of a "mini cl-defstruct". I see. Now, I can compile your patched EIEIO with trunk, but using the latest pretest gives me the above error. I can fix this by including the define-field-accessor macro and its following two calls (for class and object) in the 'eval-and-compile' clause. Not sure if that's the right thing to do, though. Something must have changed in trunk in how this is handled? -David