unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Re: Wrong type argument: frame-live-p, #<dead frame *Group* 0x91ca460>
@ 2008-12-16 10:06 martin rudalics
  0 siblings, 0 replies; 3+ messages in thread
From: martin rudalics @ 2008-12-16 10:06 UTC (permalink / raw)
  To: help-gnu-emacs

 > (defun kill-this-buffer-and-frame ()
 >    (interactive)
 >    (kill-this-buffer)
 >    (delete-frame))
 >
 > It works as intended (that is, it kills the buffer and deletes the
 > frame) most of the time, but sometimes (I haven't been able to
 > determine when) I get:
 >
 > Wrong type argument: frame-live-p, #<dead frame *Group* 0x91ca460>

Sometimes a separate frame gets automatically killed along with its
buffer, so you should not call `delete-frame' after `kill-this-buffer'.

However, in the special case there's another function which wants to do
something in the *Group* frame after you killed it.  You would have to
tell us which package is responsible for creating the *Group* frame in
order to find out where the error comes from.

martin




^ permalink raw reply	[flat|nested] 3+ messages in thread
* Wrong type argument: frame-live-p, #<dead frame *Group* 0x91ca460>
@ 2008-12-15 19:55 lsilvapereyra
  2008-12-15 20:55 ` Drew Adams
  0 siblings, 1 reply; 3+ messages in thread
From: lsilvapereyra @ 2008-12-15 19:55 UTC (permalink / raw)
  To: help-gnu-emacs

Dear Emacs users,

I'm using "GNU Emacs 23.0.60.1 (i686-pc-linux-gnu, GTK+ Version
2.12.9) of 2008-11-06". I think this is not a bug. I have a simple
function:

(defun kill-this-buffer-and-frame ()
   (interactive)
   (kill-this-buffer)
   (delete-frame))

It works as intended (that is, it kills the buffer and deletes the
frame) most of the time, but sometimes (I haven't been able to
determine when) I get:

Wrong type argument: frame-live-p, #<dead frame *Group* 0x91ca460>

and it doesn't work. I'd be very grateful for any help or commentary.

Regards,
luis


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-12-16 10:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-16 10:06 Wrong type argument: frame-live-p, #<dead frame *Group* 0x91ca460> martin rudalics
  -- strict thread matches above, loose matches on Subject: below --
2008-12-15 19:55 lsilvapereyra
2008-12-15 20:55 ` Drew Adams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).