From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#56773: 29.0.50; (readablep UNREADABLE) causes strange things Date: Wed, 27 Jul 2022 17:41:12 +0800 Message-ID: <87edy6uc3r.fsf@yahoo.com> References: <87tu741qwi.fsf@web.de> <87mtcw2gyw.fsf@gnus.org> <83pmhscajq.fsf@gnu.org> <8735eo2gcw.fsf@gnus.org> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25146"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: michael_heerdegen@web.de, Eli Zaretskii , 56773@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 27 11:42:38 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oGdYr-0006ND-RV for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 27 Jul 2022 11:42:37 +0200 Original-Received: from localhost ([::1]:38584 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oGdYq-0006f1-UN for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 27 Jul 2022 05:42:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45132) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGdYI-0006Zo-EA for bug-gnu-emacs@gnu.org; Wed, 27 Jul 2022 05:42:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37207) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oGdYI-0005Te-5J for bug-gnu-emacs@gnu.org; Wed, 27 Jul 2022 05:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oGdYI-0005HX-1y for bug-gnu-emacs@gnu.org; Wed, 27 Jul 2022 05:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 Jul 2022 09:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56773 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 56773-submit@debbugs.gnu.org id=B56773.165891489320244 (code B ref 56773); Wed, 27 Jul 2022 09:42:02 +0000 Original-Received: (at 56773) by debbugs.gnu.org; 27 Jul 2022 09:41:33 +0000 Original-Received: from localhost ([127.0.0.1]:55185 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGdXp-0005GR-5h for submit@debbugs.gnu.org; Wed, 27 Jul 2022 05:41:33 -0400 Original-Received: from sonic303-20.consmr.mail.ne1.yahoo.com ([66.163.188.146]:38980) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGdXk-0005G4-13 for 56773@debbugs.gnu.org; Wed, 27 Jul 2022 05:41:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1658914882; bh=Ua5vHL2lyZ0zD5htbU5r/0zjGOopgmWDyl6g9p3aULY=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=ZCqtnT3X8szCAYGwj98/Xxf3enBiM5VMs3H39ylF06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LdAsvDipYxHym7kYlZ4F6cchbiO nuwpWqb3z9bXHb9Oem4az37uu.125LvE.d0FvJaNR9VYN6OsORk0GlSydd4m7aW5GXleS7B.eHaH M5kI33PFJtJwpT.BtZBbr3yu8A0HwMmaSq6JYqp2rkBtcytOdLhZEqNdHlxXhHxxDTTbdEB8k5K1 qAdo300CtaJ6zHRg.2JlKOKeC.Sk_I1KE7542blaQPa_lyYGPy_wbLcgqC4UhMQry3xGdRpxuIjf _giMxigCFKpKl1aT6Pju2_e6tBBn3g6SCCJQ9U0ZMNfs._x2hGHGRocYT64B1IgoHMjbNMFp.5O9 YlOXR0CZqT7FYDfaIGYOeB1H9B.oAH6y4e9oHQkCefx9Z_olnBT5u2CctVdBecCB6aqgYmO97z1i Ivq9TpqwV0EKUQurUMRaoxmJvnny38RB59kKYFquVjqLEqrqpLvlv4v5YFtfcVeeN4SPr2KeAnaG 6ON8qq_1DIixmrIX6KGOCOPb4t7yhLgm8XPV7eTEYfzWm2gKB8PXopun8_rd9Q6o33yqvUbLhVLW 4Bfzy2hXNwGF63j.2yIQ2jKiqpQcwIn_0ZR1E6nJwI X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.ne1.yahoo.com with HTTP; Wed, 27 Jul 2022 09:41:22 +0000 Original-Received: by hermes--canary-production-sg3-854c886654-k5x5p (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 05f2f7f6c9b1e170a6fe498f1047b631; Wed, 27 Jul 2022 09:41:18 +0000 (UTC) In-Reply-To: <8735eo2gcw.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 26 Jul 2022 14:44:31 +0200") X-Mailer: WebService/1.1.20447 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:238015 Archived-At: Lars Ingebrigtsen writes: > Eli Zaretskii writes: > >> unwind_protect? > > Where would the unwind_protect be? > > The problem is here: > > if (!NILP (Vprint_unreadable_function) > && FUNCTIONP (Vprint_unreadable_function)) > { > specpdl_ref count = SPECPDL_INDEX (); > /* Bind `print-unreadable-function' to nil to avoid accidental > infinite recursion in the function called. */ > Lisp_Object func = Vprint_unreadable_function; > specbind (Qprint_unreadable_function, Qnil); > Lisp_Object result = CALLN (Ffuncall, func, obj, > escapeflag? Qt: Qnil); > > We need to switch back to the original buffer before that Ffuncall, but > we don't know what the original function was -- it's just stored in a > local variable in prin1(-to-string). Isn't that problem already present? IOW, that function is still called in the internal buffer under the current code.