From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#56773: 29.0.50; (readablep UNREADABLE) causes strange things Date: Wed, 27 Jul 2022 11:30:13 +0200 Message-ID: <87y1wezyvu.fsf@gnus.org> References: <87tu741qwi.fsf@web.de> <87mtcw2gyw.fsf@gnus.org> <83pmhscajq.fsf@gnu.org> <8735eo2gcw.fsf@gnus.org> <83ilnkc91w.fsf@gnu.org> <87h7340zy1.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14525"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: michael_heerdegen@web.de, 56773@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 27 11:40:26 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 1oGdWk-0003bq-Cq for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 27 Jul 2022 11:40:26 +0200 Original-Received: from localhost ([::1]:36092 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oGdWj-0004tO-8h for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 27 Jul 2022 05:40:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42548) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGdNe-0004iN-HQ for bug-gnu-emacs@gnu.org; Wed, 27 Jul 2022 05:31:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37165) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oGdNe-0003n5-1r for bug-gnu-emacs@gnu.org; Wed, 27 Jul 2022 05:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oGdNd-0004vv-Sp for bug-gnu-emacs@gnu.org; Wed, 27 Jul 2022 05:31:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 Jul 2022 09:31:01 +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.165891423018906 (code B ref 56773); Wed, 27 Jul 2022 09:31:01 +0000 Original-Received: (at 56773) by debbugs.gnu.org; 27 Jul 2022 09:30:30 +0000 Original-Received: from localhost ([127.0.0.1]:55147 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGdN7-0004us-L5 for submit@debbugs.gnu.org; Wed, 27 Jul 2022 05:30:29 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:48792) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGdN2-0004uM-OX for 56773@debbugs.gnu.org; Wed, 27 Jul 2022 05:30:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=yh0/SV19SV+njHvHFo1RS7Yewz2wvfbj1Em95siy1D4=; b=fT/uTJzks8hCZqg65rMc3XxHNg I23hQo0KyA3WIWcdJWOu8NnaZ3jISuLHjoeIdvXd5hO6nb9vVEp6sD9SuF+XZ/itCj8rZGHrx8jeU iYwB9eKVCKPdRXgeAHo+smTyNg/yaoK5crF4/G491MLaH+abpVTKsruf0KIm6Sw2bSo8=; Original-Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oGdMt-0006AT-6U; Wed, 27 Jul 2022 11:30:17 +0200 In-Reply-To: <87h7340zy1.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 26 Jul 2022 15:24:22 +0200") X-Now-Playing: Simple Minds's _Sister Feelings Call_: "Wonderful in Young Life" 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:238014 Archived-At: Lars Ingebrigtsen writes: > Yes -- look at the call sequence from prin1-to-string and down to where > we're calling the function. The buffer that was current when > prin1-to-string was called is not available from print_vectorlike, as > far as I can see. That is -- there's two things that have to be fixed. The first thing (which I was talking about here) is that the current_buffer has to be made available way down in print_vectorlike, so that we don't call the callback from the " prin1" buffer, because that's really confusing. I think we can accomplish that by specbinding some variable in PRINTPREPARE. The other thing is that we have to ensure that the stuff in PRINTFINISH is actually done when we have a non-local exit, and putting that stuff in an unwind_protect should fix that. I.e., PRINTPREPARE sets up the unwind_protect, of course. And when doing that, we might as well get rid of the macros altogether and do this more traditionally via functions. Does anybody see any obvious disadvantages to doing it this way? I guess it could potentially make calls to `prin1' (etc) slower, but I don't know whether that'd be noticeable.