From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.bugs Subject: bug#27340: 26.0.50; byte-compile-delete-errors value changes unexpectedly Date: Thu, 15 Jun 2017 17:49:49 +0900 Organization: Emacsen advocacy group Message-ID: References: <87wp8htq7b.fsf@users.sourceforge.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1497516615 11329 195.159.176.226 (15 Jun 2017 08:50:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 15 Jun 2017 08:50:15 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (i686-pc-cygwin) Cc: 27340@debbugs.gnu.org To: npostavs@users.sourceforge.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 15 10:50:10 2017 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 1dLQTg-0002Xx-Tt for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Jun 2017 10:50:09 +0200 Original-Received: from localhost ([::1]:52788 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLQTm-00052k-6K for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Jun 2017 04:50:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41008) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLQTg-000522-4m for bug-gnu-emacs@gnu.org; Thu, 15 Jun 2017 04:50:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dLQTb-00034K-Ak for bug-gnu-emacs@gnu.org; Thu, 15 Jun 2017 04:50:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45827) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dLQTb-000344-6Y for bug-gnu-emacs@gnu.org; Thu, 15 Jun 2017 04:50:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dLQTa-0003yo-Le for bug-gnu-emacs@gnu.org; Thu, 15 Jun 2017 04:50:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Katsumi Yamaoka Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Jun 2017 08:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27340 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 27340-submit@debbugs.gnu.org id=B27340.149751659915285 (code B ref 27340); Thu, 15 Jun 2017 08:50:02 +0000 Original-Received: (at 27340) by debbugs.gnu.org; 15 Jun 2017 08:49:59 +0000 Original-Received: from localhost ([127.0.0.1]:48504 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLQTX-0003yT-4L for submit@debbugs.gnu.org; Thu, 15 Jun 2017 04:49:59 -0400 Original-Received: from mail-hampton.hostforweb.net ([205.234.186.191]:45940 helo=hampton.hostforweb.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLQTV-0003yG-B5 for 27340@debbugs.gnu.org; Thu, 15 Jun 2017 04:49:57 -0400 Original-Received: from s70.gtokyofl21.vectant.ne.jp ([202.215.75.70]:60000 helo=localhost) by hampton.hostforweb.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.89) (envelope-from ) id 1dLQTN-001nis-KQ; Thu, 15 Jun 2017 03:49:50 -0500 X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( Cancel-Lock: sha1:gM0k9TXb7httxp8FQ7ZRlK9TLRU= X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hampton.hostforweb.net X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Get-Message-Sender-Via: hampton.hostforweb.net: authenticated_id: yamaoka/from_h X-Authenticated-Sender: hampton.hostforweb.net: yamaoka@jpl.org X-Source: X-Source-Args: X-Source-Dir: 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:133607 Archived-At: On Mon, 12 Jun 2017 07:12:24 -0400, npostavs@users.sourceforge.net wrote: > It's because of the 'cl-declaim' around that 'cl-defstruct': > (progn > ;; Arrange for field access not to bother checking if the access is indeed > ;; made to an eieio--class object. > (cl-declaim (optimize (safety 0))) > (cl-defstruct (eieio--class > ... > ) > ;; Set it back to the default value. > (cl-declaim (optimize (safety 1)))) > The problem is that the default (safety 1) value is not default with > respect to byte-compile-delete-errors: I see both (cl-declaim..) forms set `byte-compile-delete-errors' to t. Thanks. Then I tried this: --8<---------------cut here---------------start------------->8--- --- eieio-core.el~ 2017-04-19 22:03:44.676418700 +0000 +++ eieio-core.el 2017-06-15 08:46:36.995604500 +0000 @@ -82,5 +82,7 @@ (defvar eieio-default-superclass nil) -(progn +(require 'bytecomp) +(require 'cl-macs) +(let ((byte-compile-delete-errors byte-compile-delete-errors)) ;; Arrange for field access not to bother checking if the access is indeed ;; made to an eieio--class object. --8<---------------cut here---------------end--------------->8--- This solves the problem, though I'm not sure it is the right way. Loading bytecomp is necessary for `byte-compile-delete-errors', and cl-macs is necessary not to defer performing cl-declaim, i.e., to perform cl-declaim while `byte-compile-delete-errors' is let-bound. Regards,