all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: emacs-devel@gnu.org
Subject: Re: cl-defmethod not compatible with defmethod?
Date: Fri, 12 Feb 2016 09:26:11 +0200	[thread overview]
Message-ID: <838u2q8k4s.fsf@gnu.org> (raw)
In-Reply-To: <874mde79ua.fsf@gnus.org> (message from Lars Ingebrigtsen on Fri,  12 Feb 2016 16:53:49 +1100)

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Date: Fri, 12 Feb 2016 16:53:49 +1100
> 
> If I have the following, everything works fine:
> 
> (defmethod initialize-instance :AFTER ((this registry-db) slots)
> 
> But I get a warning about defmethod being obsolete.
> 
> However, with the following:
> 
> (cl-defmethod initialize-instance :AFTER ((this registry-db) slots)
> 
> compilation stops with
> 
> gnus/nnregistry.el:34:1:Error: Unsupported qualifiers in function initialize-instance: (:AFTER)
> 
> when trying to require the file where that cl-defmethod is...

Please take a look at the node "Generic Functions" in the ELisp manual
and at the doc string of cl-defmethod: it's ':after' (lower case), not
':AFTER'.



  parent reply	other threads:[~2016-02-12  7:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-12  5:53 cl-defmethod not compatible with defmethod? Lars Ingebrigtsen
2016-02-12  6:50 ` Eric Abrahamsen
2016-02-12  7:34   ` Lars Ingebrigtsen
2016-02-12  7:26 ` Eli Zaretskii [this message]
2016-02-14 13:48 ` 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=838u2q8k4s.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=larsi@gnus.org \
    /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.