all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Stephen Leake <stephen_leake@stephe-leake.org>
Cc: emacs-devel@gnu.org
Subject: Re: 'head' specializer for cl-defmethod?
Date: Tue, 28 Jul 2015 20:01:25 -0400	[thread overview]
Message-ID: <jwv3807g7ei.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <86io94a3mf.fsf@stephe-leake.org> (Stephen Leake's message of "Tue, 28 Jul 2015 07:06:00 -0500")

> I'd like to change the cl-defmethod doc
> string to say:

>     Other than a type, TYPE can also be one of the following:

>     - `(eql VAL)' - this method will be invoked when the
>       argument is `eql' to VAL.

>     - `(head VAL)' - this method will be invoked when the `car' of the
>       argument is `eql' to VAL

> However, that still leaves out the eieio-core specializer `subclass';
> I'm not clear how to handle that in the doc string.

Actually, the docstring should be dynamically generated (like the
one of `pcase') to show the various options, since these can be extended
by third party packages.


        Stefan



      parent reply	other threads:[~2015-07-29  0:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-28 12:06 'head' specializer for cl-defmethod? Stephen Leake
2015-07-28 20:39 ` Dmitry Gutov
2015-07-29  0:01 ` Stefan Monnier [this message]

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=jwv3807g7ei.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=stephen_leake@stephe-leake.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.