From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#13999: 24.3.50; rng-validate-while-idle -> (error "Selecting deleted buffer") Date: Tue, 19 Mar 2013 23:29:39 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1363750231 23829 80.91.229.3 (20 Mar 2013 03:30:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Mar 2013 03:30:31 +0000 (UTC) Cc: 13999@debbugs.gnu.org, Carsten Bormann To: Leo Liu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 20 04:30:57 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 1UI9js-0000Zn-VM for geb-bug-gnu-emacs@m.gmane.org; Wed, 20 Mar 2013 04:30:57 +0100 Original-Received: from localhost ([::1]:43128 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UI9jV-0005p2-OD for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Mar 2013 23:30:33 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38276) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UI9jO-0005ib-15 for bug-gnu-emacs@gnu.org; Tue, 19 Mar 2013 23:30:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UI9jJ-00042j-Bq for bug-gnu-emacs@gnu.org; Tue, 19 Mar 2013 23:30:25 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60621) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UI9jJ-00042c-8L for bug-gnu-emacs@gnu.org; Tue, 19 Mar 2013 23:30:21 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UI9kw-0001RW-BP for bug-gnu-emacs@gnu.org; Tue, 19 Mar 2013 23:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Mar 2013 03:32: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.13637502915501 (code B ref 13999); Wed, 20 Mar 2013 03:32:02 +0000 Original-Received: (at 13999) by debbugs.gnu.org; 20 Mar 2013 03:31:31 +0000 Original-Received: from localhost ([127.0.0.1]:36497 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UI9kR-0001Qg-52 for submit@debbugs.gnu.org; Tue, 19 Mar 2013 23:31:31 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:10877) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UI9kP-0001QV-58 for 13999@debbugs.gnu.org; Tue, 19 Mar 2013 23:31:29 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EABK/CFFFxKvA/2dsb2JhbABEuzWDWRdzgh4BAQQBJy8jEAsOJhIUGA0kiB4GsR+QDpEKA6R6gV6DE4FKAgIcBg X-IPAS-Result: Av8EABK/CFFFxKvA/2dsb2JhbABEuzWDWRdzgh4BAQQBJy8jEAsOJhIUGA0kiB4GsR+QDpEKA6R6gV6DE4FKAgIcBg X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="5327838" Original-Received: from 69-196-171-192.dsl.teksavvy.com (HELO pastel.home) ([69.196.171.192]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 19 Mar 2013 23:29:41 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 41194632AA; Tue, 19 Mar 2013 23:29:39 -0400 (EDT) In-Reply-To: (Leo Liu's message of "Wed, 20 Mar 2013 08:33:58 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.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.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:72729 Archived-At: >> Right, rng-validate-while-idle needs to check that its buffer is >> still live. Ideally it should also disable the corresponding timer if >> the buffer died. >> Could someone take care of it? > Last time I checked the timer is supposed to be removed after buffer > being killed. So this fix is not ideal but it gives us a hint that a > recipe might involve killing the buffer. 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). Stefan