emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: `unreadablep'


From: Ihor Radchenko
Subject: Re: `unreadablep'
Date: Wed, 15 Dec 2021 19:12:08 +0800

Po Lu <luangruo@yahoo.com> writes:
>> I am more interested in the ability to print nil (or something else)
>> instead of unreadable objects. My motivations is org-element-cache where
>> we cannot currently store buffer objects because they cannot be restored
>> from printed cache while not increasing the write time significantly (it
>> is bad enough as it is).
>
> Maybe we could have a `print-unreadable-function' that accepts
> `printcharfun' as an argument.  That would be very nice indeed.

Do you imply that `print-unreadable-function' should return the new
value to be printed? If so, it is indeed more flexible. Passing the
unreadable value to the function would also be useful (e.g. we can print
buffer file name instead of buffer object).

Best,
Ihor



reply via email to

[Prev in Thread] Current Thread [Next in Thread]