From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: 'head' specializer for cl-defmethod? Date: Tue, 28 Jul 2015 20:01:25 -0400 Message-ID: References: <86io94a3mf.fsf@stephe-leake.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1438128115 27397 80.91.229.3 (29 Jul 2015 00:01:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Jul 2015 00:01:55 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stephen Leake Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 29 02:01:48 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZKEoc-0002Od-Ng for ged-emacs-devel@m.gmane.org; Wed, 29 Jul 2015 02:01:46 +0200 Original-Received: from localhost ([::1]:32868 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKEob-0005ci-Sp for ged-emacs-devel@m.gmane.org; Tue, 28 Jul 2015 20:01:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32857) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKEoM-0005cc-VA for emacs-devel@gnu.org; Tue, 28 Jul 2015 20:01:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZKEoJ-0001hN-QJ for emacs-devel@gnu.org; Tue, 28 Jul 2015 20:01:30 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:41006) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKEoJ-0001hJ-K3 for emacs-devel@gnu.org; Tue, 28 Jul 2015 20:01:27 -0400 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by chene.DIT.UMontreal.CA (8.14.1/8.14.1) with ESMTP id t6T01TJv028820; Tue, 28 Jul 2015 20:01:30 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 1E39AAE09C; Tue, 28 Jul 2015 20:01:25 -0400 (EDT) In-Reply-To: <86io94a3mf.fsf@stephe-leake.org> (Stephen Leake's message of "Tue, 28 Jul 2015 07:06:00 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5381=0 X-NAI-Spam-Version: 2.3.0.9393 : core <5381> : inlines <3487> : streams <1479373> : uri <1998469> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:188147 Archived-At: > 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