all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Johan Bockgård" <bojohan@gnu.org>
To: 24700-done@debbugs.gnu.org
Subject: bug#24700: 26.0.50; unimplemented cl-defstruct slot option :type used in Emacs source code
Date: Wed, 19 Oct 2016 20:23:52 +0200	[thread overview]
Message-ID: <874m489ozr.fsf@gnu.org> (raw)
In-Reply-To: <m2pon1nwzy.fsf@rainbow.local> (Gemini Lasswell's message of "Sat, 15 Oct 2016 14:05:53 -0700")

Gemini Lasswell <gazally@runbox.com> writes:

> The only slot option implemented in Emacs Lisp for cl-defstruct is
> :read-only, according to the documentation. However there exists code in
> the Emacs source tree which uses the :type option as in Common Lisp. My
> (possibly incomplete) search found it in the following files:
>
> emacs-lisp/cl-generic.el
> emacs-lisp/cl-preloaded.el
> emacs-lisp/eieio-core.el
> emacs-lisp/ert.el
> erc/erc-backend.el
> gnus/nnmaildir.el
>
> The code for cl-defstruct ignores any keyword other than :read-only, but
> the problem is that since :type is not included in the edebug spec for
> cl-defstruct's slot options, edebug and testcover give errors when asked
> to instrument these files.

Edebug spec fixed in master.





      reply	other threads:[~2016-10-19 18:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-15 21:05 bug#24700: 26.0.50; unimplemented cl-defstruct slot option :type used in Emacs source code Gemini Lasswell
2016-10-19 18:23 ` Johan Bockgård [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=874m489ozr.fsf@gnu.org \
    --to=bojohan@gnu.org \
    --cc=24700-done@debbugs.gnu.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.