emacs-devel
[Top][All Lists]
Advanced

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

Re: `unreadablep'


From: Po Lu
Subject: Re: `unreadablep'
Date: Wed, 15 Dec 2021 17:42:15 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux)

Lars Ingebrigtsen <larsi@gnus.org> writes:

> But having `prin1' return whether it printed something unreadable also
> sounds attractive.  I guess it depends on the use case.  If you're
> saying
>
> (if (unprintable o)
>     (insert ";; " (prin1 o (current-buffer)))
>   (prin1 o (current-buffer)))
>
> then you're traversing the data twice, which isn't efficient, so
> inserting it first and then checking would be nice.

Yes, my thoughts exactly.


reply via email to

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