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: Mon, 12 Jun 2017 07:12:24 -0400 Message-ID: <87wp8htq7b.fsf@users.sourceforge.net> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1497265883 32277 195.159.176.226 (12 Jun 2017 11:11:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 12 Jun 2017 11:11:23 +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 Mon Jun 12 13:11:12 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 1dKNFY-0007rN-Dt for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Jun 2017 13:11:12 +0200 Original-Received: from localhost ([::1]:37289 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dKNFd-0000yq-EE for geb-bug-gnu-emacs@m.gmane.org; Mon, 12 Jun 2017 07:11:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33024) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dKNFT-0000xP-J2 for bug-gnu-emacs@gnu.org; Mon, 12 Jun 2017 07:11:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dKNFO-0007ag-KO for bug-gnu-emacs@gnu.org; Mon, 12 Jun 2017 07:11:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39209) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dKNFO-0007ab-G2 for bug-gnu-emacs@gnu.org; Mon, 12 Jun 2017 07:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dKNFO-0002yM-77 for bug-gnu-emacs@gnu.org; Mon, 12 Jun 2017 07:11:02 -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: Mon, 12 Jun 2017 11:11: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: Original-Received: via spool by 27340-submit@debbugs.gnu.org id=B27340.149726585711415 (code B ref 27340); Mon, 12 Jun 2017 11:11:02 +0000 Original-Received: (at 27340) by debbugs.gnu.org; 12 Jun 2017 11:10:57 +0000 Original-Received: from localhost ([127.0.0.1]:41886 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dKNFJ-0002xy-KX for submit@debbugs.gnu.org; Mon, 12 Jun 2017 07:10:57 -0400 Original-Received: from mail-io0-f193.google.com ([209.85.223.193]:33785) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dKNFH-0002xg-Jk; Mon, 12 Jun 2017 07:10:56 -0400 Original-Received: by mail-io0-f193.google.com with SMTP id j200so5475639ioe.0; Mon, 12 Jun 2017 04:10:55 -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=x4rsG1s4MpzvBl3Drg2q9Oq+xFVhdI/7a7jc0+fZSpw=; b=k5FGbsWwlcPpH/TurLgI7UTOf2Vgx8B27utrYLrRBPRfHp5gAZD8bcTNiv3SmtJrSf 6Whg1COXfkuhrPb+u0GIWHVQwK3yXq+4/9q2gEIUAIU6J/BFrYDhFLAK+dri6R1yOl7M 6akvgKI4b8ofTXqLFMRx1neXoNsrolhixlkTeIvprTD0Sv/GrjF2u4OEexcme1AX6p/W 3k12A6entKklLAGqYX2yy6pwEXS3NgwuBIqvAGshgmOLdr8fSWknYMjxr44VDPdpmg6T 1XMP9OABOu88R5bvA65JWZsj2LRaDTgZJgdQiw6fqhRVfi4eEi7vbCKnhSWoxeuzTMqc BUZg== 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=x4rsG1s4MpzvBl3Drg2q9Oq+xFVhdI/7a7jc0+fZSpw=; b=J2igjTGv0RwPbJhKuz00z3NBMyNUdJcuLXMUcZmXLgAH59TejrI7C14hyEdqMePuqB I+8RKmedVL9DVLn/5SIzjKWTUnsbJ4Mz58Gqqd7gSftIP/9aFo70vV0cBgl2cpd5dFCT OqdOp5twD9U5khxKg9JL+ljZooCmDd3aTNWLL+Dp8ijSngxsXaGWxg/IniUgP4l3Ruxk XfHsVQ6oT6r5xyheoObZnWlFRaY2qBPk7atiR95ihDa7LSRDZb5rBYRwt/IkZb74gDl7 1Ic1OaIJXhspv/VzL2Ml3RbEpajF+f8aUYx2dKXOJFhd6FT/Zhenmkdmc79+oosfNLzr rMig== X-Gm-Message-State: AODbwcDzLdXPpBPpZPYE9izOcBEgR9aTpewGoub/IVmVsWEuFhWY9yZe gSTRxL36Bo4zg9Yy X-Received: by 10.107.169.220 with SMTP id f89mr43674274ioj.97.1497265849823; Mon, 12 Jun 2017 04:10:49 -0700 (PDT) Original-Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id b39sm3839405itd.31.2017.06.12.04.10.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 12 Jun 2017 04:10:48 -0700 (PDT) In-Reply-To: (Katsumi Yamaoka's message of "Mon, 12 Jun 2017 19:30:43 +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:133497 Archived-At: found 27340 25.2 tags 27340 + confirmed quit Katsumi Yamaoka writes: > When loading a certain Lisp module that requires eieio, the value > of `byte-compile-delete-errors' is changed to t (the default nil) > unexpectedly. [...] > Though I don't know why it changes `byte-compile-delete-errors', > I think it's a bug. 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: (defun cl--do-proclaim (spec hist) ... (let (... (safety (assq (nth 1 (assq 'safety (cdr spec))) '((0 t) (1 t) (2 t) (3 nil))))) ... (if safety (setq cl--optimize-safety (car safety) byte-compile-delete-errors (nth 1 safety)))))