From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: npostavs@users.sourceforge.net Newsgroups: gmane.emacs.bugs Subject: bug#27340: 26.0.50; byte-compile-delete-errors value changes unexpectedly Date: Fri, 16 Jun 2017 07:37:46 -0400 Message-ID: <87fuf0rwmt.fsf@users.sourceforge.net> References: <87wp8htq7b.fsf@users.sourceforge.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1497613037 24192 195.159.176.226 (16 Jun 2017 11:37:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 16 Jun 2017 11:37:17 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2.50 (gnu/linux) Cc: 27340@debbugs.gnu.org To: Katsumi Yamaoka Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 16 13:37: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 1dLpYs-0005mW-1e for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Jun 2017 13:37:10 +0200 Original-Received: from localhost ([::1]:58229 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLpYv-0001IM-Nd for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Jun 2017 07:37:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51531) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLpYp-0001ID-0V for bug-gnu-emacs@gnu.org; Fri, 16 Jun 2017 07:37:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dLpYk-000121-35 for bug-gnu-emacs@gnu.org; Fri, 16 Jun 2017 07:37:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47645) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dLpYj-00011x-W5 for bug-gnu-emacs@gnu.org; Fri, 16 Jun 2017 07:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dLpYj-0004gX-Mn for bug-gnu-emacs@gnu.org; Fri, 16 Jun 2017 07:37:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Jun 2017 11:37:01 +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.149761297617958 (code B ref 27340); Fri, 16 Jun 2017 11:37:01 +0000 Original-Received: (at 27340) by debbugs.gnu.org; 16 Jun 2017 11:36:16 +0000 Original-Received: from localhost ([127.0.0.1]:50322 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLpY0-0004fa-7D for submit@debbugs.gnu.org; Fri, 16 Jun 2017 07:36:16 -0400 Original-Received: from mail-it0-f44.google.com ([209.85.214.44]:35968) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLpXz-0004fO-Bb for 27340@debbugs.gnu.org; Fri, 16 Jun 2017 07:36:15 -0400 Original-Received: by mail-it0-f44.google.com with SMTP id m47so33505100iti.1 for <27340@debbugs.gnu.org>; Fri, 16 Jun 2017 04:36:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=F9ET+ZS1e5mAs8Inqypp3oS4kROyp9dnRDbhTvzDY6A=; b=qKdtcY7/zZBtCP8VE+oCJJ1qfdSf+4Ubq1HStEeUvcWljRjBCT+Tw5T8pJifOBVevX UmnIgtRcwmnUWUBZ+ET7xyfSvWmwIIRiF1Jv19ceSSVY7GYrP9pOSNLU5fklUwLqNqAZ lgQ0t5YbAzzBun4HUh42kG/y1uxZFKpvYhmdwF65SLYTe4seZz99osh6GVP5g6AZO0zz Sh6Ok0onhfXY0wbhJNyKM+8ocKQis9lWT28TnDO2SXZlU1kAvJ3gmgKzS33hKQuUabtR zqST+QQCGhQl4VPIZoa04tKwknWZ72D7XnO4dfT9F8CVwkChsrjAAHOCFR51onQItdJG hIhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=F9ET+ZS1e5mAs8Inqypp3oS4kROyp9dnRDbhTvzDY6A=; b=OSsSJEdGh2sJU7CVx9K3lFn1W/5BnCszqeh3s8vW0iuUp7YIKCPtDaSz2KowUxtGXs WfZuUCv2Pbx/SO8uAXRL3yrpHAwNoqfuisExIiX/OgRHcz+9xsLqQcG3PqRQjYnioRB6 W9DxEewUSaX3YF+kTBXmZ6/OkSPUS4Tk+MuTkLDXZGPML6kE0S0D1zcL2AF1EpjG0Ux4 yZl4Cy4clM79D1v9YUx2PGXbG9rRatE74qUf4p0Oir1SvFBCoBBQTee6icTAIGrV1Zqm Ds8bcRPNkLZYul6huOTntkn7cx3TxIBczYjbC8EzJVWOz+RBW24HjguewG5g4jumzNp0 PpYg== X-Gm-Message-State: AKS2vOzKyZMk6VMugKwKx66OV/9pBEZRV/Ykjmf5dbgenjDzGU70Hswl SoezcV3qdgTKXAT1 X-Received: by 10.36.55.143 with SMTP id r137mr9844044itr.27.1497612969450; Fri, 16 Jun 2017 04:36:09 -0700 (PDT) Original-Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id e186sm1264596itc.21.2017.06.16.04.36.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Jun 2017 04:36:08 -0700 (PDT) In-Reply-To: (Katsumi Yamaoka's message of "Thu, 15 Jun 2017 17:49:49 +0900") 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:133636 Archived-At: Katsumi Yamaoka writes: > -(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. > > 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. Another possibility is to put `cl-declaim's in (eval-when-compile ...), this stops them having effect when loading eieieo-core.elc (the process compiling eieio-core.el would still be affected, but since that is usually a batch Emacs spawned by make, it doesn't really matter). --- i/lisp/emacs-lisp/eieio-core.el +++ w/lisp/emacs-lisp/eieio-core.el @@ -84,7 +84,7 @@ (defvar eieio-default-superclass nil) (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))) + (eval-when-compile (cl-declaim (optimize (safety 0)))) (cl-defstruct (eieio--class (:constructor nil) @@ -104,7 +104,7 @@ (cl-defstruct (eieio--class ; Stored outright without modifications or stripping ) ;; Set it back to the default value. - (cl-declaim (optimize (safety 1)))) + (eval-when-compile (cl-declaim (optimize (safety 1)))))