[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#24700: 26.0.50; unimplemented cl-defstruct slot option :type used in
From: |
Johan Bockgård |
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 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
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.