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

[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: Pierre Lorenzon
Subject: bug#20801: 25.0.50; (apply 'cl-call-next-method does not work
Date: Sat, 13 Jun 2015 19:25:50 +0200 (CEST)

From: Stefan Monnier <address@hidden>
Subject: Re: bug#20801: 25.0.50; (apply 'cl-call-next-method does not work
Date: Sat, 13 Jun 2015 10:18:17 -0400

> 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

  OK but 'cl-call-next-method is not better.



> usable inside an EIEIO `defmethod').  Also, use #' rather than ' to

  OK that's the key point :

  #'cl-call-next-method works fine.


  Thanks.

  Pierre



> 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





reply via email to

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