From: Stephen Leake Date: Tue, 2 Jan 2018 13:28:06 +0000 (-0600) Subject: Fix description of 'struct' generic function specializer X-Git-Tag: emacs-26.0.91~41 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c967ba1861;p=emacs.git Fix description of 'struct' generic function specializer Backport: * doc/lispref/functions.texi (Generic Functions): Fix description of 'struct' specializer; it must be the named struct or a child, not a parent. (cherry picked from commit b6add8c7cfc6d36f9dd8ad99be06bd8ab41cc6f8) --- diff --git a/doc/lispref/functions.texi b/doc/lispref/functions.texi index c6188ce466d..277a42d2c2f 100644 --- a/doc/lispref/functions.texi +++ b/doc/lispref/functions.texi @@ -1246,10 +1246,10 @@ This specializer requires the argument be @code{eql} to the given @item (head @var{object}) The argument must be a cons cell whose @code{car} is @code{eql} to @var{object}. -@item @var{struct-tag} -The argument must be an instance of a class named @var{struct-tag} +@item @var{struct-type} +The argument must be an instance of a class named @var{struct-type} defined with @code{cl-defstruct} (@pxref{Structures,,, cl, Common Lisp -Extensions for GNU Emacs Lisp}), or of one of its parent classes. +Extensions for GNU Emacs Lisp}), or of one of its child classes. @end table Alternatively, the argument specializer can be of the form