emacs-devel
[Top][All Lists]
Advanced

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

Re: [Emacs-diffs] master 1392ec7 2/3: A quicker check for quit


From: Stefan Monnier
Subject: Re: [Emacs-diffs] master 1392ec7 2/3: A quicker check for quit
Date: Thu, 26 Jan 2017 08:40:57 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

>     Set and clear immediate_quit before and after loop instead of
>     executing QUIT each time through the loop.  This is OK for loops
>     that affect only locals.

IIRC we have moved some QUIT checks *into* loops in the past in order to
be able to interrupt inf-loops, such as when you do (memq 4 '#1=(1 . #1#)).

Of course, for circular lists a better solution is to use the
hare&tortoise, e.g. with FOR_EACH_TAIL.


        Stefan



reply via email to

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