GNU bug report logs - #52566
29.0.50; Wishlist: There should be a print-unreadable-function variable

Previous Next

Package: emacs;

Reported by: Lars Ingebrigtsen <larsi <at> gnus.org>

Date: Fri, 17 Dec 2021 07:26:02 UTC

Severity: wishlist

Found in version 29.0.50

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: 52566 <at> debbugs.gnu.org
Subject: bug#52566: 29.0.50; Wishlist: There should be a print-unreadable-function variable
Date: Sat, 22 Jan 2022 15:14:03 +0100
Lars Ingebrigtsen <larsi <at> gnus.org> 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.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 3 years and 176 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.