all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Leo Liu <sdl.web@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 13999@debbugs.gnu.org, Carsten Bormann <cabo@tzi.org>
Subject: bug#13999: 24.3.50; rng-validate-while-idle -> (error "Selecting deleted buffer")
Date: Fri, 22 Mar 2013 17:55:31 +0800	[thread overview]
Message-ID: <m1ip4jpxm4.fsf@gmail.com> (raw)
In-Reply-To: <m1wqt2r8vg.fsf@gmail.com> (Leo Liu's message of "Wed, 20 Mar 2013 12:30:11 +0800")

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





  reply	other threads:[~2013-03-22  9:55 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-19 15:35 bug#13999: 24.3.50; rng-validate-while-idle -> (error "Selecting deleted buffer") Carsten Bormann
2013-03-19 15:55 ` Leo Liu
2013-03-19 20:51 ` Stefan Monnier
2013-03-20  0:33   ` Leo Liu
2013-03-20  3:29     ` Stefan Monnier
2013-03-20  4:30       ` Leo Liu
2013-03-22  9:55         ` Leo Liu [this message]
2013-03-22 13:36           ` Stefan Monnier
2013-03-22 14:39             ` Leo Liu
2013-03-22 17:34               ` Stefan Monnier
2013-03-23  1:47                 ` Leo Liu
2013-03-23  7:54                   ` Carsten Bormann
2013-03-23 14:13                     ` Leo Liu
2013-03-23  3:28       ` Leo Liu
2013-03-23 16:10         ` Stefan Monnier
2013-03-24  6:51           ` Leo Liu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m1ip4jpxm4.fsf@gmail.com \
    --to=sdl.web@gmail.com \
    --cc=13999@debbugs.gnu.org \
    --cc=cabo@tzi.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.