I have a lisp function which performs a transformation on a buffer. It's usually quick, but sometimes it's very slow when the buffer is big.
I can see it's working, because it prints out its progress in the echo area, yet I cannot stop it with pressing C-g
.
Is there a way I can ensure it can be stopped? Like could adding a (sit-for 0)
to the loop help, so it reacts to C-g
?
M-x report-emacs-bug
, providing a step-by-step recipe to repro the problem, starting withemacs -Q
(no init file). – Drew Feb 09 '21 at 18:48ESC ESC ESC
. Sometimes that works whenC-g
doesn't. – Drew Feb 09 '21 at 18:51