From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#27718: 26.0.50; (cl-typep instance-ab 'class-a) gives wrong answer when compiled Date: Tue, 25 Jul 2017 12:34:53 -0400 Message-ID: References: <87tw2dcqtz.fsf@users.sourceforge.net> <87inim9dy0.fsf@users.sourceforge.net> <87tw248in9.fsf@users.sourceforge.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1501000516 3748 195.159.176.226 (25 Jul 2017 16:35:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 25 Jul 2017 16:35:16 +0000 (UTC) Cc: 27718@debbugs.gnu.org, Alex To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 25 18:35: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 1da2nb-0000Z0-Tc for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 Jul 2017 18:35:08 +0200 Original-Received: from localhost ([::1]:33636 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1da2nh-0001TH-96 for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 Jul 2017 12:35:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39879) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1da2nb-0001QR-0r for bug-gnu-emacs@gnu.org; Tue, 25 Jul 2017 12:35:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1da2nX-0005JL-2y for bug-gnu-emacs@gnu.org; Tue, 25 Jul 2017 12:35:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53489) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1da2nW-0005J8-W0 for bug-gnu-emacs@gnu.org; Tue, 25 Jul 2017 12:35:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1da2nW-0002QT-JW for bug-gnu-emacs@gnu.org; Tue, 25 Jul 2017 12:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 Jul 2017 16:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27718 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 27718-submit@debbugs.gnu.org id=B27718.15010005019315 (code B ref 27718); Tue, 25 Jul 2017 16:35:02 +0000 Original-Received: (at 27718) by debbugs.gnu.org; 25 Jul 2017 16:35:01 +0000 Original-Received: from localhost ([127.0.0.1]:56166 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1da2nU-0002QB-S0 for submit@debbugs.gnu.org; Tue, 25 Jul 2017 12:35:01 -0400 Original-Received: from mail-oi0-f51.google.com ([209.85.218.51]:34872) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1da2nT-0002Pw-S1 for 27718@debbugs.gnu.org; Tue, 25 Jul 2017 12:35:00 -0400 Original-Received: by mail-oi0-f51.google.com with SMTP id e124so97291962oig.2 for <27718@debbugs.gnu.org>; Tue, 25 Jul 2017 09:34:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=+nMdv45Uiz4Q5Q3FLpX6so743NDyfxJVvXLPb001zW0=; b=DewdsnFykZOUqqHtYnLMuM9qwiBUr717LnurjbHQLmXsFy3k4s0+PazNGbtS+Zc3bw dka3iW8lB1vpoeT5e6ddsCdcU66KsvP8ztQ+1g1+4j1FzTD55MsVn/QMVYL/5z7yIK0w ahESLUzHJyweLjObdmubWGUXQ8TGMk0/1dzTLA4QC9BOMT15NKviPXvqT3olmDA/+teq gCQaMcHJPtAS39SNvle02fNZvIPlp/lHm+6wRxbgHbQXMtGNLn2F6Krg6+xJhuy2h8xJ qOff7Y28PSAOI6QTfjnvQKDQ8ZLLA3jm4HMdOlHyyK/Xic/NWr5w47MNDY+fZ4o+gst0 hs3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=+nMdv45Uiz4Q5Q3FLpX6so743NDyfxJVvXLPb001zW0=; b=Ykqac1RnE59QuyQEHGzuTmROMv+C9rP2YZAUR4vGDcEfINTtTbgCZh1CUjgmo9p3lf ADdk4A8wY+idvi8/ONwLGHQ16/8AkGoLT9uCP+35TXscLIT7mq08yzFIk8L8nYe/JEUd knpZj6xExmhKpLXBK95Yqa53CIk1pgJv3gT77C+IJc5rBwKWBS9cVOLpvqU7OA4V+RM/ DX4HnCwobMdOxgmWX1a5mGe1U5ocs5OAxJWyz+XNULAAJ4qfhkQxAfjRLpiZL0o8W8Kl tMgvtFjNhuWkbIRWD0+g6wwO6K4SvdtkMwnZx6OIe2DPaIck3DjRHN/2aleeyuFu/uHx XdcQ== X-Gm-Message-State: AIVw1115TdY30GR7Xw7xVy6m2McPmifDz2lKU50eXhakq18ULti8nWQq SzhvSj+DU56tvxJp48XmY2q1GkFcxw== X-Received: by 10.202.49.134 with SMTP id x128mr554901oix.18.1501000493940; Tue, 25 Jul 2017 09:34:53 -0700 (PDT) Original-Received: by 10.74.113.6 with HTTP; Tue, 25 Jul 2017 09:34:53 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: uPgBOTjtbr7GC12-wfqBmsF3qsA 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:134982 Archived-At: On Mon, Jul 24, 2017 at 3:44 PM, Stefan Monnier wrote: >>> + DEFSYM (Qbyte_compile_plist_environment, "byte-compile-plist-environment"); > >> I find having to hardcode byte-compile-plist-environment in get rather ugly. > > Hmm... I'm still not quite sure how best to deal with this, but it does > occur to me that we could introduce a new `define-propval' value, which > would be like `put' but for use at top-level. It could differ from > `put' in that the byte-compiler could keep track of those in > byte-compile-plist-environment, and that they could record themselves in > load-history for unload-feature to be able to undo them. > > It doesn't help on the `get' side, tho. Right. We need `get' to be aware of what the compiler has read, so it will need to have a reference to the compiler in there somewhere. We could name it differently and point the reference in the other direction, as in DEFSYM (Qalternate_plist_environment...) and have the byte compiler use that instead, which might be slightly more aesthetically pleasing. The other possibility is to introduce a different kind of `get' and use that in places that need to be aware of what the compiler has read. I don't see a third option.