]> code.delx.au - gnu-emacs/commitdiff
Partially revert the defmethod->cl-defmethod change in registry.el
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 12 Feb 2016 05:55:23 +0000 (16:55 +1100)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 12 Feb 2016 05:55:23 +0000 (16:55 +1100)
* lisp/gnus/registry.el (initialize-instance): Use defmethod,
since cl-defmethod doesn't work with :after.
(initialize-instance): Ditto, but with :before.

lisp/gnus/registry.el

index 9182920b87f0b0834376a056ba8d581dbf95f45f..d89ba48eabba56a30c1afbb41905b1e72eb50eba 100644 (file)
          :type hash-table
          :documentation "The data hashtable.")))
 
-(cl-defmethod initialize-instance :BEFORE ((this registry-db) slots)
+(defmethod initialize-instance :BEFORE ((this registry-db) slots)
   "Check whether a registry object needs to be upgraded."
   ;; Hardcoded upgrade routines.  Version 0.1 to 0.2 requires the
   ;; :max-soft slot to disappear, and the :max-hard slot to be renamed
       (cl-remf slots :max-hard)
       (cl-remf slots :max-soft))))
 
-(cl-defmethod initialize-instance :AFTER ((this registry-db) slots)
+(defmethod initialize-instance :AFTER ((this registry-db) slots)
   "Set value of data slot of THIS after initialization."
   (with-slots (data tracker) this
     (unless (member :data slots)