emacs-devel
[Top][All Lists]
Advanced

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

Re: undo-auto--undoable-change infloop


From: Michael Heerdegen
Subject: Re: undo-auto--undoable-change infloop
Date: Wed, 10 Aug 2022 04:39:45 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Stefan Monnier <monnier@iro.umontreal.ca> writes:

> But I think you can `cancel-timer` before `timer-activate`, which will
> make sure it's not in the list any more.

That solution also came to my mind.  Wastes a lot of time, though.  The
`timer-list' is traversed 3 times: First, to find the timer to delete
it, second to test if it's already present when trying to add it (your
change), third, to sort it in at the right position (though I don't
understand why that is necessary).  The list is probably never that
large so that it would matter much.

Anyway, thanks for answering and sorry for the noise,

Michael.



reply via email to

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