unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Thierry Volpiatto <thievol@posteo.net>, 49248@debbugs.gnu.org
Subject: bug#49248: 28.0.50; read-from-minibuffer returns a window-live-p error when its original window is deleted
Date: Mon, 28 Jun 2021 09:53:22 +0200	[thread overview]
Message-ID: <c9edd4f9-de81-c689-0f53-3a04e60f88f7@gmx.at> (raw)
In-Reply-To: <8735t2h46e.fsf@posteo.net>

[-- Attachment #1: Type: text/plain, Size: 149 bytes --]

 > Wrong type argument: window-live-p, #<window 38>
 > (See backtrace in the link to helm issue mentionned above)

Can you try the attached.

martin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: minibuf.c.diff --]
[-- Type: text/x-patch; name="minibuf.c.diff", Size: 434 bytes --]

diff --git a/src/minibuf.c b/src/minibuf.c
index 00069eabbe..1b842b7721 100644
--- a/src/minibuf.c
+++ b/src/minibuf.c
@@ -1210,7 +1210,7 @@ read_minibuf_unwind (void)
 		     WINDOW_FRAME (XWINDOW (minibuf_window))))
 	    Fset_frame_selected_window (selected_frame, prev, Qnil);
 	}
-      else
+      else if (WINDOW_LIVE_P (calling_window))
 	Fset_frame_selected_window (calling_frame, calling_window, Qnil);
     }


  reply	other threads:[~2021-06-28  7:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-28  6:32 bug#49248: 28.0.50; read-from-minibuffer returns a window-live-p error when its original window is deleted Thierry Volpiatto
2021-06-28  7:53 ` martin rudalics [this message]
2021-06-28 11:47   ` Thierry Volpiatto
     [not found]   ` <87a6na5ibc.fsf@posteo.net>
2021-06-29  8:03     ` martin rudalics
2021-07-01  9:21       ` Eli Zaretskii

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=c9edd4f9-de81-c689-0f53-3a04e60f88f7@gmx.at \
    --to=rudalics@gmx.at \
    --cc=49248@debbugs.gnu.org \
    --cc=thievol@posteo.net \
    /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 public inbox

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

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).