From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.devel Subject: Re: EIEIO with lexical scoping Date: Mon, 03 Jun 2013 14:35:28 -0400 Message-ID: References: <51917EA1.50403@siege-engine.com> <87hai5z4ud.fsf@engster.org> <87wqqcv4uh.fsf@engster.org> <87sj0zusji.fsf@engster.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1370285842 10883 80.91.229.3 (3 Jun 2013 18:57:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Jun 2013 18:57:22 +0000 (UTC) Cc: emacs-devel@gnu.org, "Eric M. Ludlam" To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 03 20:57:20 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 1UjZwV-00040m-5m for ged-emacs-devel@m.gmane.org; Mon, 03 Jun 2013 20:57:19 +0200 Original-Received: from localhost ([::1]:34969 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjZwU-0007yA-Rl for ged-emacs-devel@m.gmane.org; Mon, 03 Jun 2013 14:57:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35248) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjZwM-0007pI-T8 for emacs-devel@gnu.org; Mon, 03 Jun 2013 14:57:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UjZwI-0006x8-Bb for emacs-devel@gnu.org; Mon, 03 Jun 2013 14:57:10 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45678) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjZbO-0000H4-2O for emacs-devel@gnu.org; Mon, 03 Jun 2013 14:35:30 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1UjZbM-0005iQ-P9; Mon, 03 Jun 2013 14:35:29 -0400 X-Spook: Islam Abduganievich Karimov Bellcore pipeline AMEMB X-Ran: ;UrRx7oKk3jZ_F]4'1vV6Ykdq#!8wc>Na>CIb])(9XgzN6W1CpD?>V?Agqh0M$+=c5H0P- X-Hue: green X-Attribution: GM In-Reply-To: <87sj0zusji.fsf@engster.org> (David Engster's message of "Mon, 03 Jun 2013 17:23:45 +0200") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e 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:160054 Archived-At: >>> For instance, I had to change registry.el in Gnus, which for some >>> reason had all 'defmethod' calls wrapped in 'eval-and-compile', which >>> does not compile anymore. I don't know why, though; you probably >>> do. ;-) >> >> I don't either, actually. I suspect the following might be related; now `defclass' is opaque to the byte-compiler. Compiling this: (require 'eieio) (defclass foo-class () (()) "blah.") (defun foo-func () (if foo-class (foo-class 'blah))) warns: In foo-func: foo.el:8:7:Warning: reference to free variable `foo-class' In end of data: foo.el:9:1:Warning: the function `foo-class' is not known to be defined. which is a bit annoying. It didn't use to do this. A total guess, maybe the removal of `eval-and-compile' from defclass?