From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Johan =?UTF-8?Q?Bockg=C3=A5rd?= Newsgroups: gmane.emacs.bugs 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 Message-ID: <874m489ozr.fsf@gnu.org> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1476901536 10386 195.159.176.226 (19 Oct 2016 18:25:36 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 19 Oct 2016 18:25:36 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) To: 24700-done@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 19 20:25:32 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bwvY9-0008QM-2G for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Oct 2016 20:25:13 +0200 Original-Received: from localhost ([::1]:50346 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwvYB-0003K3-0o for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Oct 2016 14:25:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39969) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwvY3-0003Hy-5y for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2016 14:25:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bwvXy-00069l-Jw for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2016 14:25:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33823) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bwvXy-00069T-GK for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2016 14:25:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bwvXy-0005cF-8H for bug-gnu-emacs@gnu.org; Wed, 19 Oct 2016 14:25:02 -0400 Resent-From: Johan =?UTF-8?Q?Bockg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 Oct 2016 18:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 24700 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 24700@debbugs.gnu.org, bojohan@gnu.org, gazally@runbox.com Original-Received: via spool by 24700-done@debbugs.gnu.org id=D24700.147690144621510 (code D ref 24700); Wed, 19 Oct 2016 18:25:02 +0000 Original-Received: (at 24700-done) by debbugs.gnu.org; 19 Oct 2016 18:24:06 +0000 Original-Received: from localhost ([127.0.0.1]:40012 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bwvX4-0005as-0V for submit@debbugs.gnu.org; Wed, 19 Oct 2016 14:24:06 -0400 Original-Received: from smtprelay-b11.telenor.se ([62.127.194.20]:50843) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bwvX1-0005aO-UK for 24700-done@debbugs.gnu.org; Wed, 19 Oct 2016 14:24:04 -0400 Original-Received: from ipb1.telenor.se (ipb1.telenor.se [195.54.127.164]) by smtprelay-b11.telenor.se (Postfix) with ESMTP id 13770EAFBE for <24700-done@debbugs.gnu.org>; Wed, 19 Oct 2016 20:23:53 +0200 (CEST) X-SMTPAUTH-B2: [bocjoh] X-SENDER-IP: [85.229.6.57] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2DdLABpuQdYEDkG5VVcHAEBBAEBCgEBgz4BAQEBAR2BSQuGcp0+lDuCCIYhAoF+QRMBAgEBAQEBAQEGAQEBAQEBAQE3RYRjAQEDAVYoCwshJQ8BBBgBDAotiEoMAcQKAQEIAiWLEoUThRMFmg2ReIgghWuQfh8BewYIgzqBPDw0iD0BAQE X-IPAS-Result: A2DdLABpuQdYEDkG5VVcHAEBBAEBCgEBgz4BAQEBAR2BSQuGcp0+lDuCCIYhAoF+QRMBAgEBAQEBAQEGAQEBAQEBAQE3RYRjAQEDAVYoCwshJQ8BBBgBDAotiEoMAcQKAQEIAiWLEoUThRMFmg2ReIgghWuQfh8BewYIgzqBPDw0iD0BAQE X-IronPort-AV: E=Sophos;i="5.31,367,1473112800"; d="scan'208";a="993369792" Original-Received: from c-3906e555.04-211-6c6b701.cust.bredbandsbolaget.se (HELO muon.localdomain) ([85.229.6.57]) by ipb1.telenor.se with ESMTP; 19 Oct 2016 20:23:53 +0200 Original-Received: by muon.localdomain (Postfix, from userid 1000) id 343584841CD; Wed, 19 Oct 2016 20:23:52 +0200 (CEST) In-Reply-To: (Gemini Lasswell's message of "Sat, 15 Oct 2016 14:05:53 -0700") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:124686 Archived-At: Gemini Lasswell 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.