bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#12447: 24.1.50; Stuck in garbage collection on OS X


From: Jan Djärv
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@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.






reply via email to

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