bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#20509: compiler warns about cl-defmethod defined after use


From: Stefan Monnier
Subject: bug#20509: compiler warns about cl-defmethod defined after use
Date: Wed, 06 May 2015 00:28:12 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

>> While using cl-defmethod without a previous cl-defgeneric is supported,
>> it's not recommended.
> It's used without one in several places in Emacs:

That's because EIEIO's older `defmethod' always counted as
a "full" definition.  We can fix those warnings in one of the following ways:
- Add a corresponding cl-defgeneric.
- Add a corresponding `require' which loads the package where the
  corresponding `cl-defgeneric' is found.
- Reorder the code so that the cl-defmethod appears before the call(s).
- Change cl-generic.el to use the same kind of bytecompiler hack that
  eieio used to use instead if using `declare-function'.


        Stefan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]