GNU bug report logs - #20801
25.0.50; (apply 'cl-call-next-method does not work

Previous Next

Package: emacs;

Reported by: Pierre Lorenzon <devel <at> pollock-nageoire.net>

Date: Sat, 13 Jun 2015 06:54:02 UTC

Severity: normal

Tags: notabug

Found in version 25.0.50

Done: Stefan Monnier <monnier <at> IRO.UMontreal.CA>

Bug is archived. No further changes may be made.

Full log


Message #10 received at control <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: Pierre Lorenzon <devel <at> pollock-nageoire.net>
Cc: 20801-close <at> debbugs.gnu.org
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
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




This bug report was last modified 10 years and 17 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.