Subject: Re: bug#8631: since lexical merge, byte compiler does not know defmethod defines a function

From: Andy Moreton <[email-masked]>
Date: Sat, 07 May 2011 14:00:36 +0100

On Sat 07 May 2011, Stefan Monnier wrote:

>> Since the lexical branch was merged (ie r103798), the byte compiler does
>> not understand that eieio's defmethod defines a function.
>
>> Eg:
>
>> emacs -Q -batch -f batch-byte-compile cedet/srecode/dictionary.el
>
>> In end of data:
>> dictionary.el:712:1:Warning: the following functions are not known to be
>>     defined: srecode-dictionary-add-template-table,[...]
>
> Should be fixed now, thanks to the patch below,

Hi Stefan,

Since you change in revno 104151, I've bootstrapped on winXP at revno
104154. The build output shows some new errors:

--8<---------------cut here---------------start------------->8---
Compiling emacs-lisp/eieio-speedbar.el
In toplevel form:
emacs-lisp/eieio-speedbar.el:96:1:Error: Symbol's value as variable is void: &rest
Compiling emacs-lisp/eieio.el

Compiling gnus/nnregistry.el
In toplevel form:
gnus/nnregistry.el:34:1:Error: Symbol's value as variable is void: &rest
--8<---------------cut here---------------end--------------->8---

Running gnus in this emacs fails with the same error message at runtime,
so I cannot connect to any news servers with it. Could this be related to your
changes ?

    AndyM