From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Liu Newsgroups: gmane.emacs.bugs Subject: bug#13999: 24.3.50; rng-validate-while-idle -> (error "Selecting deleted buffer") Date: Fri, 22 Mar 2013 17:55:31 +0800 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1363946176 10958 80.91.229.3 (22 Mar 2013 09:56:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Mar 2013 09:56:16 +0000 (UTC) Cc: 13999@debbugs.gnu.org, Carsten Bormann To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 22 10:56:39 2013 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 1UIyiC-0005Dz-KG for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 Mar 2013 10:56:36 +0100 Original-Received: from localhost ([::1]:51122 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIyho-0004cm-0Z for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 Mar 2013 05:56:12 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36900) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIyhk-0004cM-Cx for bug-gnu-emacs@gnu.org; Fri, 22 Mar 2013 05:56:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UIyhj-0003Ch-5g for bug-gnu-emacs@gnu.org; Fri, 22 Mar 2013 05:56:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36057) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIyhi-0003CX-V2 for bug-gnu-emacs@gnu.org; Fri, 22 Mar 2013 05:56:07 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UIyja-0002Zj-7s for bug-gnu-emacs@gnu.org; Fri, 22 Mar 2013 05:58:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Leo Liu Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Mar 2013 09:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13999 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13999-submit@debbugs.gnu.org id=B13999.13639462599850 (code B ref 13999); Fri, 22 Mar 2013 09:58:02 +0000 Original-Received: (at 13999) by debbugs.gnu.org; 22 Mar 2013 09:57:39 +0000 Original-Received: from localhost ([127.0.0.1]:40155 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UIyjB-0002Yo-OP for submit@debbugs.gnu.org; Fri, 22 Mar 2013 05:57:39 -0400 Original-Received: from mail-pb0-f46.google.com ([209.85.160.46]:36642) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UIyjA-0002Yh-14 for 13999@debbugs.gnu.org; Fri, 22 Mar 2013 05:57:37 -0400 Original-Received: by mail-pb0-f46.google.com with SMTP id uo15so2931755pbc.5 for <13999@debbugs.gnu.org>; Fri, 22 Mar 2013 02:55:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:references:face:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=5rF3I8i/xCvXXDgIl6j5AASlfqNJHJdliGku0Px4b6Q=; b=Du9NQy7HxMWnIcinmKAwkjpZKml3H7TJ1irzcc746jGGqomdbcjiOpXuhATzDcTf+y q6aZelPXee1WYq8oBN3tpnSRpYHdqbeInd1I52/txqnh8CoJMHgrF/nK/Bf47QldH5Mx Hi41xLxJ/m5DdYbFcD4FEbtO6Hgh5Iwfp83x6FIF9R0aX7B0R4ADyKY2clv2rekXMSRy eNw/CSu7jmalJL9TemvmqNCdk94guK2c6OmTutYCYOKF8VZiq8uMZYosLXe9H6uFMjsR 8e+Cp+LQ6q7X16mo7qGiFV81iNoYwljFrjfLROh5KO1sIyPpKD19k/VGs+SJVq5d1HOJ TcZw== X-Received: by 10.66.253.74 with SMTP id zy10mr2247651pac.122.1363946139425; Fri, 22 Mar 2013 02:55:39 -0700 (PDT) Original-Received: from Zeuss-MacBook.local ([221.204.241.119]) by mx.google.com with ESMTPS id pb3sm1842458pbc.7.2013.03.22.02.55.36 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 22 Mar 2013 02:55:38 -0700 (PDT) Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoAgMAAADxkFD+AAAADFBMVEUvT09qWs3/pQD///+J kUVcAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9cBBwMLOd3veKQA AACuSURBVBjTldE9CgIxEAXgB+lEyFUC2wo5ikdZ8DSypxhMY7H9VuIVwlqkGRgnm59VsHGafIQ3 CZlAtmKIRaHETgYa12lqvEsPYKf8wXHsPGfqPaUM0g9aJPKFXkmNQmSDqwzz4Fpgpz+6WAPY2z5o uPJJpu0uypcl4nyCibMLQ8lCiVjayLoQvw5LsVKQuHPRR958HZbOcVsKeepcLxpByjycGvnKmY+c MBvrtyjfe0vmuLvdq/kAAAAASUVORK5CYII= In-Reply-To: (Leo Liu's message of "Wed, 20 Mar 2013 12:30:11 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (OS X 10.8.3) 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.x 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:72788 Archived-At: On 2013-03-20 12:30 +0800, Leo Liu wrote: >> Yes, clearly a recipe would require killing the buffer in such a way >> that the timer is not canceled. While we may want to try and fix the >> hole that lets this happen, I think it's still worthwhile to defensively >> make rng-validate-while-idle check that the buffer is still live, since >> the other problem may be anywhere in some unrelated code (potentially >> external to Emacs) that let-binds kill-buffer-hook (for example). > > I fully agree. I'll see if I can get to the root of the problem while > the OP is finding a recipe. IOW, I'll take care of this bug. One possibility is the buffer is killed while timer-idle-list is temporarily bound to nil, in this case the timer will be left in the timer-idle-list and causing this error. The code in rng-valid.el uses the following idiom to redisplay without triggering idle timers. (let ((timer-idle-list nil)) .... (sit-for 0) ....) Is there a way to do this without let-binding timer-idle-list? Leo