GNU bug report logs - #13999
24.3.50; rng-validate-while-idle -> (error "Selecting deleted buffer")

Previous Next

Package: emacs;

Reported by: Carsten Bormann <cabo <at> tzi.org>

Date: Tue, 19 Mar 2013 15:38:02 UTC

Severity: normal

Found in version 24.3.50

Done: Leo Liu <sdl.web <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #41 received at 13999 <at> debbugs.gnu.org (full text, mbox):

From: Carsten Bormann <cabo <at> tzi.org>
To: Leo Liu <sdl.web <at> gmail.com>
Cc: 13999 <at> debbugs.gnu.org, Stefan Monnier <monnier <at> IRO.UMontreal.CA>
Subject: Re: bug#13999: 24.3.50;
	rng-validate-while-idle -> (error "Selecting deleted buffer")
Date: Sat, 23 Mar 2013 08:54:08 +0100
On Mar 23, 2013, at 02:47, Leo Liu <sdl.web <at> gmail.com> wrote:

> On 2013-03-23 01:34 +0800, Stefan Monnier wrote:
>> No, I don't understand what problem this is trying to avoid.
>> If noone understands this hack, I suggest to get rid of this
>> let-binding, and if/when the corresponding problem ever appears, we'll
>> see about fixing it some other way.
> 
> I get rid of it for now.
> 
> Carsten, will you be able to test out the new rng-valid.el¹²? Thanks.
> 
> Footnotes: 
> ¹  http://repo.or.cz/w/emacs.git/blob_plain/HEAD:/lisp/nxml/rng-valid.el
> ²  http://repo.or.cz/w/emacs.git/blob_plain/HEAD:/lisp/nxml/rng-nxml.el

Well, how do you test that...
I played around with background-validating an XML file, scrolling while that happens, and that seems to work.
I don't use stealthy jit-lock etc., though, and my XML files are of moderate size (couple hundred kB), so maybe I'm not in the target group addressed by the original hack.

It seems really solving the problem the code was trying to address would require having a priority scheme for idle timer work: Validation happens in idle time but may be higher priority than other idle timer work.  Another way of blocking other idle timer work while doing sit-for/input-pending-p would, of course, also help; this might need exposing the READABLE_EVENTS_DO_TIMERS_NOW flag from input-pending-p and sit-for.

Grüße, Carsten





This bug report was last modified 12 years and 65 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.