From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#52566: 29.0.50; Wishlist: There should be a print-unreadable-function variable Date: Sat, 22 Jan 2022 16:48:44 +0200 Message-ID: <83ee4zn7w3.fsf@gnu.org> References: <87zgoz1yml.fsf@gnus.org> <87zgnnj1sk.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28611"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 52566@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 22 15:50:45 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 1nBHj2-0007It-PC for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 22 Jan 2022 15:50:44 +0100 Original-Received: from localhost ([::1]:41324 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nBHj1-0004mK-Md for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 22 Jan 2022 09:50:43 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:55730) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nBHiN-0004lp-02 for bug-gnu-emacs@gnu.org; Sat, 22 Jan 2022 09:50:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43223) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nBHiM-0000oE-Md for bug-gnu-emacs@gnu.org; Sat, 22 Jan 2022 09:50:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nBHiM-0006eO-Kp for bug-gnu-emacs@gnu.org; Sat, 22 Jan 2022 09:50:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Jan 2022 14:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52566 X-GNU-PR-Package: emacs Original-Received: via spool by 52566-submit@debbugs.gnu.org id=B52566.164286295125440 (code B ref 52566); Sat, 22 Jan 2022 14:50:02 +0000 Original-Received: (at 52566) by debbugs.gnu.org; 22 Jan 2022 14:49:11 +0000 Original-Received: from localhost ([127.0.0.1]:36126 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBHhW-0006cF-TB for submit@debbugs.gnu.org; Sat, 22 Jan 2022 09:49:11 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:54680) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBHhV-0006c3-HK for 52566@debbugs.gnu.org; Sat, 22 Jan 2022 09:49:09 -0500 Original-Received: from [2001:470:142:3::e] (port=53498 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nBHhQ-0000Yv-5W; Sat, 22 Jan 2022 09:49:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=nyoRCrpYNxzQAsTMSKbVsZ1LHtWhXvQyJ+nQdnOTNdE=; b=UEknx4MyEsXf ZC9IMRmalMmliDNLKBn5JLwll2Ym0gaYNngdXhMQhiwOfwAGX7CwP7DEisihM1kFTb0HMOa4AdI97 EeGO1NZGX6lYXSjp7wEQ5RwGDk36ffUnhsnqqt9xenvobLpuAUScsrDL2SlNDHrCtnesEGz8z8ajk DYQ3U6oyMwcuiBayMqGgOXeD2/pO08gGrWQH5Kv/12Dpdtxbrq01TRAJWOXL7pxKPS8aaMYrlTNW8 XxfzgjkIxBlmyXSevEdFvMIOMZR9Gw2U+CPol1ol1JNcKVkMvvD/m0jnryq+G5qahtlMJM4UYK8Vm wDUu4TcwMn6aVheK6ABAGA==; Original-Received: from [87.69.77.57] (port=3343 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nBHhP-0006y8-Mj; Sat, 22 Jan 2022 09:49:04 -0500 In-Reply-To: <87zgnnj1sk.fsf@gnus.org> (message from Lars Ingebrigtsen on Sat, 22 Jan 2022 15:14:03 +0100) 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:224834 Archived-At: > From: Lars Ingebrigtsen > Date: Sat, 22 Jan 2022 15:14:03 +0100 > > Lars Ingebrigtsen writes: > > > It should be called from print_vectorlike (and any other places that > > print unreadable objects, but I'm not sure there are any other places), > > and should probably have a signature like > > > > OBJECT PRINTCHARFUN ESCAPEFLAG > > > > If it returns nil, the object should be printed as normal. > > > > This can then be used to implement a `readablep' function (that would > > bind this to a function that signals an error, and then catch that > > error), and also to possibly make an alternative version of prin1 that > > returns whether it printed something unprintable. > > This has now been implemented in Emacs 29. The function interface was > changed a bit, though. The doc string of print-unreadable-function and its documentation in the manual seem to contradict each other.