[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#20801: 25.0.50; (apply 'cl-call-next-method does not work
From: |
Stefan Monnier |
Subject: |
bug#20801: 25.0.50; (apply 'cl-call-next-method does not work |
Date: |
Sat, 13 Jun 2015 10:18:17 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
tags 20801 notabug
thanks
That's a simple bug in your code. `call-next-method' is not a function
of cl-defmethod (it's a compatibility function of eieio-compat, IOW only
usable inside an EIEIO `defmethod'). Also, use #' rather than ' to
quote the function symbol since those function are lexically scoped,
which can't work for functions that are quoted with a single quote.
> (cl-defmethod say ((this daughter1)
> &optional fmt &rest arguments)
> (apply 'call-next-method
^^
#'cl-
-- Stefan