GNU bug report logs - #12447
24.1.50; Stuck in garbage collection on OS X

Previous Next

Package: emacs;

Reported by: Harald Hanche-Olsen <hanche <at> math.ntnu.no>

Date: Fri, 14 Sep 2012 21:10:01 UTC

Severity: normal

Merged with 12326

Found in versions 24.1.50, 24.2.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 12447 <at> debbugs.gnu.org, hanche <at> math.ntnu.no, Dmitry Gutov <dgutov <at> yandex.ru>
Subject: bug#12447: 24.1.50; Stuck in garbage collection on OS X
Date: Tue, 18 Sep 2012 19:29:28 +0200
Hello.

18 sep 2012 kl. 17:05 skrev Eli Zaretskii <eliz <at> gnu.org>:

> The patch below makes your simplified recipe, viz.:
> 
>  (defvar counter 0)
> 
>  (defun foo ()
>    (message (format  "foo %s" counter))
>    (setq counter (1+ counter))
>    (run-with-idle-timer 1 nil #'foo))
>  (foo)
> 
> "work" without locking up Emacs.  "Work" in the sense that the timer
> is run and increments the counter, but keyboard input is still
> accepted, and causes 1-sec break in the idle timer invocation.  What
> does NOT happen is the once-per-second invocation of the idle timer:
> as long as there's no other input, the idle timer runs much more
> frequently.  But I think this is expected, since the call to
> run-with-idle-timer above explicitly asks to be run immediately.

> 
> Can you see if these changes also make js2-mode work as expected?
> 
> Jan, can you test whether this patch still keeps your two-timers
> recipe working?  If it does, I think I should commit the changes
> below, because they avoid locking up Emacs by a timer that repeatedly
> reinvokes itself.


It does.

	Jan D.





This bug report was last modified 12 years and 247 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.