From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#12447: 24.1.50; Stuck in garbage collection on OS X Date: Wed, 19 Sep 2012 04:27:07 +0400 Message-ID: <5059115B.8010407@yandex.ru> References: <505598C8.8070904@yandex.ru> <834nmys1ht.fsf@gnu.org> <5055AD8E.5020309@yandex.ru> <83zk4qqj4d.fsf@gnu.org> <5055C0EB.3040908@yandex.ru> <83wqzuqgzr.fsf@gnu.org> <5055D34F.1040800@yandex.ru> <83txuyqdtv.fsf@gnu.org> <5055E16E.1070604@yandex.ru> <83sjaiqaqb.fsf@gnu.org> <5055F69B.4020004@yandex.ru> <837grr1idg.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1348014468 8702 80.91.229.3 (19 Sep 2012 00:27:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Sep 2012 00:27:48 +0000 (UTC) Cc: hanche@math.ntnu.no, 12447@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 19 02:27:52 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TE88q-0007MR-0U for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Sep 2012 02:27:48 +0200 Original-Received: from localhost ([::1]:42766 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TE88l-0004Dd-MI for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Sep 2012 20:27:43 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34065) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TE88j-0004DW-8P for bug-gnu-emacs@gnu.org; Tue, 18 Sep 2012 20:27:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TE88i-0006Xy-AC for bug-gnu-emacs@gnu.org; Tue, 18 Sep 2012 20:27:41 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:32897) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TE88i-0006Xh-7M for bug-gnu-emacs@gnu.org; Tue, 18 Sep 2012 20:27:40 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TE8A2-0003Qo-9t for bug-gnu-emacs@gnu.org; Tue, 18 Sep 2012 20:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 Sep 2012 00:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12447 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12447-submit@debbugs.gnu.org id=B12447.134801451113153 (code B ref 12447); Wed, 19 Sep 2012 00:29:02 +0000 Original-Received: (at 12447) by debbugs.gnu.org; 19 Sep 2012 00:28:31 +0000 Original-Received: from localhost ([127.0.0.1]:42443 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TE89W-0003Q6-Mv for submit@debbugs.gnu.org; Tue, 18 Sep 2012 20:28:31 -0400 Original-Received: from forward13.mail.yandex.net ([95.108.130.120]:59547) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TE89T-0003Pv-9i for 12447@debbugs.gnu.org; Tue, 18 Sep 2012 20:28:29 -0400 Original-Received: from smtp14.mail.yandex.net (smtp14.mail.yandex.net [95.108.131.192]) by forward13.mail.yandex.net (Yandex) with ESMTP id 411A5141DE6; Wed, 19 Sep 2012 04:27:03 +0400 (MSK) Original-Received: from smtp14.mail.yandex.net (localhost [127.0.0.1]) by smtp14.mail.yandex.net (Yandex) with ESMTP id F32AE1B6075E; Wed, 19 Sep 2012 04:27:02 +0400 (MSK) Original-Received: from 5x166x246x245.dynamic.spb.ertelecom.ru (5x166x246x245.dynamic.spb.ertelecom.ru [5.166.246.245]) by smtp14.mail.yandex.net (nwsmtp/Yandex) with ESMTP id R2O0bVeC-R2Oa1lY1; Wed, 19 Sep 2012 04:27:02 +0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1348014422; bh=60/wgOQvHgsYM/YxBfTCFhbL7L6pMWfIIf20RSwCkxA=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=hRMItOg9PLkWdr+ZecSjqOhbC39hSkgs21JrcPrRNCi96LeOl3rU2VALymOtnBzzG BtHzCakfABJXu/SpCgtzICC4vq5X9XvEtgJLaZa16k3HRWhyYunrkVd7shqKpP0x9g B4lO+YzwW90RrqQyAa/NDZn+5PAeYavcVa46F/C0= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 In-Reply-To: <837grr1idg.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:64584 Archived-At: On 18.09.2012 19:05, Eli Zaretskii wrote: > 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. I think this behavior makes sense, too. > Can you see if these changes also make js2-mode work as expected? They do, thank you. I'll keep the workaround, though, as it reportedly also fixes the long-standing OS X freeze bug. --Dmitry