[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 'head' specializer for cl-defmethod?
From: |
Stefan Monnier |
Subject: |
Re: 'head' specializer for cl-defmethod? |
Date: |
Tue, 28 Jul 2015 20:01:25 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
> 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