From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#12447: 24.1.50; Stuck in garbage collection on OS X Date: Thu, 20 Sep 2012 12:04:51 +0800 Message-ID: <87a9wlz6e4.fsf@gnu.org> 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> <5059115B.8010407@yandex.ru> <83txuuzpqo.fsf@gnu.org> <5059965F.5030708@yandex.ru> <83obl2yr19.fsf@gnu.org> <5059F10C.6070806@yandex.ru> <83ipbaynku.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1348113939 19645 80.91.229.3 (20 Sep 2012 04:05:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Sep 2012 04:05:39 +0000 (UTC) Cc: 12447@debbugs.gnu.org, hanche@math.ntnu.no, Dmitry Gutov To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 20 06:05:42 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 1TEY1G-0002mQ-4o for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Sep 2012 06:05:42 +0200 Original-Received: from localhost ([::1]:54156 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TEY1B-0006Po-3t for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Sep 2012 00:05:37 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43293) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TEY18-0006Pj-PC for bug-gnu-emacs@gnu.org; Thu, 20 Sep 2012 00:05:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TEY17-0005Uw-O1 for bug-gnu-emacs@gnu.org; Thu, 20 Sep 2012 00:05:34 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34823) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TEY17-0005Us-K8 for bug-gnu-emacs@gnu.org; Thu, 20 Sep 2012 00:05:33 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TEY2Y-0004Pd-DX for bug-gnu-emacs@gnu.org; Thu, 20 Sep 2012 00:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 Sep 2012 04:07: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.134811399216916 (code B ref 12447); Thu, 20 Sep 2012 04:07:02 +0000 Original-Received: (at 12447) by debbugs.gnu.org; 20 Sep 2012 04:06:32 +0000 Original-Received: from localhost ([127.0.0.1]:44368 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TEY22-0004Om-R9 for submit@debbugs.gnu.org; Thu, 20 Sep 2012 00:06:32 -0400 Original-Received: from mail-pb0-f44.google.com ([209.85.160.44]:42218) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TEY1z-0004Od-IJ for 12447@debbugs.gnu.org; Thu, 20 Sep 2012 00:06:28 -0400 Original-Received: by pbbjt11 with SMTP id jt11so1755424pbb.3 for <12447@debbugs.gnu.org>; Wed, 19 Sep 2012 21:04:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=/WZEyd1fC5XlB4UoVnGk40Uf4tDRyNRLklKxgEBhTdg=; b=DJwtezf7s2kr8MWxh1wFcYUWxlzVFR/vyM8ov0Id4vezZWwL6CmHfxK2Z3GrlHIebN Jx34xVcYqqg/Deo6B8HmklPNjh/OPVwFf4XDWqWDpj31516tgT/c/gt597j2M7UembEa WUUqjQnptGovo4YJGhe5zSQrbqaXGEmHcxibeTpz3kANTgvNAWyKn3Q5PxxLwF/bkVGU xnzWs5vm+4+7avtG0gUOBiX89k6vAcYq5CayP+sc2pB9N4aUifTP6ES5EYVE3vN+LDVd pJllOF9g+jI+mHTU4cmBw4zC7in8TmIi68QpBPj9JYjf2pQuqBE1wEr29wndSIEe9udW MWvg== Original-Received: by 10.66.82.3 with SMTP id e3mr2104301pay.56.1348113897384; Wed, 19 Sep 2012 21:04:57 -0700 (PDT) Original-Received: from ulysses ([155.69.19.102]) by mx.google.com with ESMTPS id rz10sm2858552pbc.32.2012.09.19.21.04.53 (version=SSLv3 cipher=OTHER); Wed, 19 Sep 2012 21:04:56 -0700 (PDT) In-Reply-To: <83ipbaynku.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 19 Sep 2012 19:38:57 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) 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:64629 Archived-At: Eli Zaretskii writes: >> Date: Wed, 19 Sep 2012 20:21:32 +0400 >> From: Dmitry Gutov >> CC: jan.h.d@swipnet.se, 12447@debbugs.gnu.org, hanche@math.ntnu.no >> >> By the way, here's what run-with-idle-timer docstring says: >> "Perform an action the next time Emacs is idle for SECS seconds." >> >> Shouldn't this mean that it should also pass DONT-WAIT nil? > > No, it just means no one considered the possibility that an idle timer > will re-invoke itself like that. IOW, the doc string is inaccurate. I'm not 100% sure this is merely a doc string problem. In the face of ambiguity, we should try to choose the behavior that is least likely to lead to infloops in user code. When `run-with-idle-timer' is called from an idle timer, we could interpret it to mean "run the function the next time Emacs becomes idle for SECS seconds, not including the current period of idleness". Such behavior seems quite reasonable. And it is of course easy to implement, by simply making `run-with-idle-timer' check if it is running while idle and, if so, giving a nil second arg to `timer-activate-by-idle'.