[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cl-defmethod not compatible with defmethod?
From: |
Eli Zaretskii |
Subject: |
Re: cl-defmethod not compatible with defmethod? |
Date: |
Fri, 12 Feb 2016 09:26:11 +0200 |
> From: Lars Ingebrigtsen <address@hidden>
> Date: Fri, 12 Feb 2016 16:53:49 +1100
>
> If I have the following, everything works fine:
>
> (defmethod initialize-instance :AFTER ((this registry-db) slots)
>
> But I get a warning about defmethod being obsolete.
>
> However, with the following:
>
> (cl-defmethod initialize-instance :AFTER ((this registry-db) slots)
>
> compilation stops with
>
> gnus/nnregistry.el:34:1:Error: Unsupported qualifiers in function
> initialize-instance: (:AFTER)
>
> when trying to require the file where that cl-defmethod is...
Please take a look at the node "Generic Functions" in the ELisp manual
and at the doc string of cl-defmethod: it's ':after' (lower case), not
':AFTER'.