From: Pierre Lorenzon <devel@pollock-nageoire.net>
To: monnier@IRO.UMontreal.CA
Cc: 20801-close@debbugs.gnu.org
Subject: bug#20801: 25.0.50; (apply 'cl-call-next-method does not work
Date: Sat, 13 Jun 2015 19:25:50 +0200 (CEST) [thread overview]
Message-ID: <20150613.192550.1849376777435981076.devel@pollock-nageoire.net> (raw)
In-Reply-To: <jwv7fr7k846.fsf-monnier+emacsbugs@gnu.org>
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
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
next prev parent reply other threads:[~2015-06-13 17:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-13 6:44 bug#20801: 25.0.50; (apply 'cl-call-next-method does not work Pierre Lorenzon
2015-06-13 12:53 ` Pierre Lorenzon
2015-06-13 14:18 ` Stefan Monnier
2015-06-13 17:25 ` Pierre Lorenzon [this message]
2015-06-13 20:00 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150613.192550.1849376777435981076.devel@pollock-nageoire.net \
--to=devel@pollock-nageoire.net \
--cc=20801-close@debbugs.gnu.org \
--cc=monnier@IRO.UMontreal.CA \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.