GNU bug report logs - #16967
frame related race condition

Previous Next

Package: emacs;

Reported by: Juanma Barranquero <lekktu <at> gmail.com>

Date: Sat, 8 Mar 2014 16:21:02 UTC

Severity: normal

Found in version 24.3.50

Done: Juanma Barranquero <lekktu <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


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

From: martin rudalics <rudalics <at> gmx.at>
To: Juanma Barranquero <lekktu <at> gmail.com>
Cc: 16967 <at> debbugs.gnu.org
Subject: Re: bug#16967: frame related race condition
Date: Mon, 10 Mar 2014 10:04:40 +0100
> emacs -Q
>
> then type this in *scratch*
>
> (let* ((c (selected-frame))
>        (f (make-frame)))
>   (sit-for 0)
>   (select-frame-set-input-focus f)
>   (sit-for 0)
>   (delete-frame c))
>
> then evaluate the let repeteadly. It's not hard to get "let*: Attempt
> to delete the sole visible or iconified frame".

Confirmed.  But doing

(while t
  (let* ((c (selected-frame))
	 (f (make-frame)))
    (sit-for 0)
    (select-frame-set-input-focus f)
    (sit-for 0)
    (delete-frame c)))

here chokes only the first time around and proceeds without complaints
afterwards.  Is it that what you mean or are there additional problems?

And if possible, can you show the value of f->visible of the other
frame, that is the one that should be retained, at the time Emacs
complains that you want to delete its only visible or iconified frame?

martin




This bug report was last modified 5 years and 293 days ago.

Previous Next


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