[Top][All Lists]

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

Re: 23.0.50; savehist save invalid syntax

From: Stefan Monnier
Subject: Re: 23.0.50; savehist save invalid syntax
Date: Tue, 04 Sep 2007 23:20:10 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux)

>> I think the best approach is to discard any element of command-history
>> that contains anything unreadable.  If the arguments of a command
>> include a mouse event, repeating it in another session won't make much
>> sense anyway.

> With this much complexity, my temptation would be to provide a
> print-readable function (or an optional argument to an existing printer)
> that signalled if it  were asked to print something that has no read
> syntax.  Of course, this could be done in Lisp by recursively checking the
> type of every element of every sequence, but that would traverse the tree
> twice and would fail on circular structures unless `print-circle' were
> duplicated within it.

Agreed, except that rather than failing, the function should call a callback
which could choose to print those failed elements in some way (or to signal
an error).


reply via email to

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