[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: EIEIO with lexical scoping
From: |
Glenn Morris |
Subject: |
Re: EIEIO with lexical scoping |
Date: |
Mon, 03 Jun 2013 14:35:28 -0400 |
User-agent: |
Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) |
>>> 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?