GNU bug report logs - #47766
28.0.50; choose-completion fails

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Madhu <enometh@HIDDEN>; Keywords: moreinfo; dated Wed, 14 Apr 2021 05:04:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 47766 <at> debbugs.gnu.org:


Received: (at 47766) by debbugs.gnu.org; 5 May 2021 15:34:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 05 11:34:06 2021
Received: from localhost ([127.0.0.1]:60992 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1leJXK-00014Y-BM
	for submit <at> debbugs.gnu.org; Wed, 05 May 2021 11:34:06 -0400
Received: from quimby.gnus.org ([95.216.78.240]:38150)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1leJXI-000148-0w
 for 47766 <at> debbugs.gnu.org; Wed, 05 May 2021 11:34:05 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=3GsX3DcffCWZ9iM3I4o6L1cpKYE0ZoWjL7fbaaQTbUg=; b=bfWuvr/QICKIYveEACH0UNVPOa
 8EMkhMxLq2xjP15IU+1esIBJyJqYcmAnXMX3wY0WGA5m2+jg1OtVpF9CIsxzqsHRo/t6EHUq8XoBt
 0QS4HvdLvO+VRimwtAMEwgL6VytSthkigwVDtxYhIpAerZit994QBwj5JkQk6uXTeWew=;
Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1leJX8-0002xk-N0; Wed, 05 May 2021 17:33:57 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Madhu <enometh@HIDDEN>
Subject: Re: bug#47766: 28.0.50; choose-completion fails
References: <7d9667a70f0babba48d0@HIDDEN>
 <CADwFkmnVL_V1eu+vNeUmn1FQWEOiJmnq9qnp_E4kX14qrpn+dw@HIDDEN>
 <YIGRQ29+yuasRia4@ACM>
 <20210422.213429.112377311480064511.enometh@HIDDEN>
X-Now-Playing: Shara Nelson's _What Silence Knows_: "Uptight"
Date: Wed, 05 May 2021 17:33:54 +0200
In-Reply-To: <20210422.213429.112377311480064511.enometh@HIDDEN> (Madhu's
 message of "Thu, 22 Apr 2021 21:34:29 +0530 (IST)")
Message-ID: <87a6p942l9.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview:  Madhu <enometh@HIDDEN> writes: >> Madhu, would you please
 try out the following patch (which gives a couple >> of harmless warnings
 in compilation), and tell us whether it fixes the >> problems in your setup,
 or what is still not w [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 47766
Cc: acm@HIDDEN, gregory@HIDDEN, stefan@HIDDEN, 47766 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Madhu <enometh@HIDDEN> writes:

>> Madhu, would you please try out the following patch (which gives a couple
>> of harmless warnings in compilation), and tell us whether it fixes the
>> problems in your setup, or what is still not working properly.  Thanks!
>
> Thank you.  I'm running it now and will let you know if i spot
> anything.

This was almost two weeks ago -- did the patch work well?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#47766; Package emacs. Full text available.

Message received at 47766 <at> debbugs.gnu.org:


Received: (at 47766) by debbugs.gnu.org; 22 Apr 2021 16:05:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 22 12:05:24 2021
Received: from localhost ([127.0.0.1]:35356 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lZbpU-0004zD-Cc
	for submit <at> debbugs.gnu.org; Thu, 22 Apr 2021 12:05:24 -0400
Received: from smtp6.ctinetworks.com ([205.166.61.199]:55834)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <enometh@HIDDEN>) id 1lZbpS-0004z3-Lm
 for 47766 <at> debbugs.gnu.org; Thu, 22 Apr 2021 12:05:23 -0400
Received: from localhost (unknown [117.193.3.116])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 (Authenticated sender: enometh@HIDDEN)
 by smtp6.ctinetworks.com (Postfix) with ESMTPSA id 68ECC850D6;
 Thu, 22 Apr 2021 12:05:14 -0400 (EDT)
Date: Thu, 22 Apr 2021 21:34:29 +0530 (IST)
Message-Id: <20210422.213429.112377311480064511.enometh@HIDDEN>
To: acm@HIDDEN
Subject: Re: bug#47766: 28.0.50; choose-completion fails
From: Madhu <enometh@HIDDEN>
In-Reply-To: <YIGRQ29+yuasRia4@ACM>
References: <7d9667a70f0babba48d0@HIDDEN>
 <CADwFkmnVL_V1eu+vNeUmn1FQWEOiJmnq9qnp_E4kX14qrpn+dw@HIDDEN>
 <YIGRQ29+yuasRia4@ACM>
X-Mailer: Mew version 6.8 on Emacs 28.0
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-ctinetworks-Information: Please contact the ISP for more information
X-ctinetworks-MailScanner-ID: 68ECC850D6.A9578
X-ctinetworks-VirusCheck: Found to be clean
X-ctinetworks-SpamCheck: 
X-ctinetworks-Watermark: 1619971521.90473@hHt/jgxrffH/FzrUkSPxPg
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 47766
Cc: gregory@HIDDEN, stefan@HIDDEN, 47766 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

*  Alan Mackenzie <acm@HIDDEN> <YIGRQ29+yuasRia4@ACM>
Wrote on Thu, 22 Apr 2021 15:07:47 +0000

> Or, more accurately, because the changes in that commit were incomplete.
> In particular, functions iconify-frame and make-frame-invisible were
> moving minibuffers in a way no longer consistent with the rest of Emacs.
>
> Madhu, would you please try out the following patch (which gives a couple
> of harmless warnings in compilation), and tell us whether it fixes the
> problems in your setup, or what is still not working properly.  Thanks!

Thank you.  I'm running it now and will let you know if i spot
anything.


The rest of this is not directlty related to the bug, but somewhat
related to your post on emacs-devel invisible and iconified windows.
mutter (gnome-shell) and wayland throw some more spanners into the
works - mutter does not have a concept of "iconified" it only has a
notion of "hidden". A hidden window has no "hidden" state as far as
the compositor is concerned. M-TAB/switchers would show previews of
the current state of the window. If an emacs frame iconifies itself
(gtk:gtk_window_iconify) rather than the user causing the compositing
window manager to hide it, it cannot map itself back.

I end up with something like
;; work around gnome-shell error
(defadvice make-frame-visible (around mutter-workaround (&optional frame) activate)
  (if (or (eql (frame-parameter frame 'visibility) 'icon)
	   (eql (frame-parameter frame 'visibility) nil)) ;gnome-shell40.a
      (set-frame-parameter frame 'visibility nil))
  ad-do-it)

to make make-frame-visible work.

[PS. There seem to be some other rough corners - sometimes I end up in
a recursive-edit where one cannot go back to the top-level and have to
quit emacs instead - but i haven't triggered this one in the past week
so i don't have a recipe for it.]




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#47766; Package emacs. Full text available.

Message received at 47766 <at> debbugs.gnu.org:


Received: (at 47766) by debbugs.gnu.org; 22 Apr 2021 15:07:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 22 11:07:59 2021
Received: from localhost ([127.0.0.1]:35276 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lZavu-0007hV-CO
	for submit <at> debbugs.gnu.org; Thu, 22 Apr 2021 11:07:59 -0400
Received: from colin.muc.de ([193.149.48.1]:37826 helo=mail.muc.de)
 by debbugs.gnu.org with smtp (Exim 4.84_2)
 (envelope-from <acm@HIDDEN>) id 1lZavr-0007hE-FI
 for 47766 <at> debbugs.gnu.org; Thu, 22 Apr 2021 11:07:56 -0400
Received: (qmail 87416 invoked by uid 3782); 22 Apr 2021 15:07:48 -0000
Received: from acm.muc.de (p4fe15bfe.dip0.t-ipconnect.de [79.225.91.254])
 (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP;
 Thu, 22 Apr 2021 17:07:47 +0200
Received: (qmail 26412 invoked by uid 1000); 22 Apr 2021 15:07:47 -0000
Date: Thu, 22 Apr 2021 15:07:47 +0000
To: Madhu <enometh@HIDDEN>, Stefan Kangas <stefan@HIDDEN>
Subject: Re: bug#47766: 28.0.50; choose-completion fails
Message-ID: <YIGRQ29+yuasRia4@ACM>
References: <20210414.103308.2181932615044049035.enometh@HIDDEN>
 <7d9667a70f0babba48d0@HIDDEN>
 <CADwFkmnVL_V1eu+vNeUmn1FQWEOiJmnq9qnp_E4kX14qrpn+dw@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CADwFkmnVL_V1eu+vNeUmn1FQWEOiJmnq9qnp_E4kX14qrpn+dw@HIDDEN>
X-Submission-Agent: TMDA/1.3.x (Ph3nix)
From: Alan Mackenzie <acm@HIDDEN>
X-Primary-Address: acm@HIDDEN
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 47766
Cc: Gregory Heytings <gregory@HIDDEN>, 47766 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hello, Madhu and Stefan.

On Tue, Apr 20, 2021 at 08:25:13 -0500, Stefan Kangas wrote:
> Gregory Heytings <gregory@HIDDEN> writes:

> >> In GNU Emacs 28.0.50 (build 2, x86_64-pc-linux-gnu, Motif Version 2.3.8, cairo
> >> version 1.16.0) of 2021-04-14 built on maher based on master
> >> 844b8949a71f180d395a237c768b22d91cf91ded (with the motif revert reverted)

> >> 1. emacs -Q -eval '(setq pop-up-windows nil pop-up-frames t)'
> >> 2. C-x b TAB

> >> this would pop up a new *Completions* buffer in a new frame with are two
> >> choices *Messages* and *scratch*

> >> 3. choose a completion (click or hit enter on one of the choices)

> >> user-error: Cannot switch buffers in minibuffer window

> > This is because of commit 7c2ebf6e23.

Or, more accurately, because the changes in that commit were incomplete.
In particular, functions iconify-frame and make-frame-invisible were
moving minibuffers in a way no longer consistent with the rest of Emacs.

Madhu, would you please try out the following patch (which gives a couple
of harmless warnings in compilation), and tell us whether it fixes the
problems in your setup, or what is still not working properly.  Thanks!



diff --git a/lisp/window.el b/lisp/window.el
index 071761ea50..faf639cddd 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -4119,7 +4119,7 @@ window-deletable-p
 		  (let ((minibuf (active-minibuffer-window)))
 		    (and minibuf (eq frame (window-frame minibuf))
                          (not (eq (default-toplevel-value
-                                    minibuffer-follows-selected-frame)
+                                    'minibuffer-follows-selected-frame)
                                   t)))))
 	'frame))
      ((window-minibuffer-p window)
diff --git a/src/frame.c b/src/frame.c
index 097cd555c6..a1a6d58cb6 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -2085,9 +2085,10 @@ delete_frame (Lisp_Object frame, Lisp_Object force)
       do_switch_frame (frame1, 0, 1, Qnil);
       sf = SELECTED_FRAME ();
     }
-
-  /* Don't allow minibuf_window to remain on a deleted frame.  */
-  check_minibuf_window (frame, minibuffer_selected);
+  else
+    /* Ensure any minibuffers on FRAME are moved onto the selected
+       frame.  */
+    move_minibuffers_onto_frame (f, true);
 
   /* Don't let echo_area_window to remain on a deleted frame.  */
   if (EQ (f->minibuffer_window, echo_area_window))
@@ -2718,9 +2719,6 @@ DEFUN ("make-frame-invisible", Fmake_frame_invisible, Smake_frame_invisible,
   if (NILP (force) && !other_frames (f, true, false))
     error ("Attempt to make invisible the sole visible or iconified frame");
 
-  /* Don't allow minibuf_window to remain on an invisible frame.  */
-  check_minibuf_window (frame, EQ (minibuf_window, selected_window));
-
   if (FRAME_WINDOW_P (f) && FRAME_TERMINAL (f)->frame_visible_invisible_hook)
     FRAME_TERMINAL (f)->frame_visible_invisible_hook (f, false);
 
@@ -2763,9 +2761,6 @@ DEFUN ("iconify-frame", Ficonify_frame, Siconify_frame,
     }
 #endif	/* HAVE_WINDOW_SYSTEM */
 
-  /* Don't allow minibuf_window to remain on an iconified frame.  */
-  check_minibuf_window (frame, EQ (minibuf_window, selected_window));
-
   if (FRAME_WINDOW_P (f) && FRAME_TERMINAL (f)->iconify_frame_hook)
     FRAME_TERMINAL (f)->iconify_frame_hook (f);
 
diff --git a/src/minibuf.c b/src/minibuf.c
index c4482d7f1e..bc7d439398 100644
--- a/src/minibuf.c
+++ b/src/minibuf.c
@@ -212,7 +212,23 @@ DEFUN ("active-minibuffer-window", Factive_minibuffer_window,
        doc: /* Return the currently active minibuffer window, or nil if none.  */)
      (void)
 {
-  return minibuf_level ? minibuf_window : Qnil;
+  Lisp_Object frames, frame;
+  struct frame *f;
+  Lisp_Object innermost_MB;
+
+  if (!minibuf_level)
+    return Qnil;
+
+  innermost_MB = nth_minibuffer (minibuf_level);
+  FOR_EACH_FRAME (frames, frame)
+    {
+      f = XFRAME (frame);
+      if (FRAME_LIVE_P (f)
+	  && WINDOW_LIVE_P (f->minibuffer_window)
+	  && EQ (XWINDOW (f->minibuffer_window)->contents, innermost_MB))
+	return f->minibuffer_window;
+    }
+  return minibuf_window;	/* "Can't happen." */
 }
 
 DEFUN ("set-minibuffer-window", Fset_minibuffer_window,


> Copying in Alan here.

-- 
Alan Mackenzie (Nuremberg, Germany).




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#47766; Package emacs. Full text available.

Message received at 47766 <at> debbugs.gnu.org:


Received: (at 47766) by debbugs.gnu.org; 21 Apr 2021 13:54:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 21 09:54:31 2021
Received: from localhost ([127.0.0.1]:57247 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lZDJH-0001YQ-GS
	for submit <at> debbugs.gnu.org; Wed, 21 Apr 2021 09:54:31 -0400
Received: from colin.muc.de ([193.149.48.1]:45618 helo=mail.muc.de)
 by debbugs.gnu.org with smtp (Exim 4.84_2)
 (envelope-from <acm@HIDDEN>) id 1lZDJE-0001Y8-1E
 for 47766 <at> debbugs.gnu.org; Wed, 21 Apr 2021 09:54:29 -0400
Received: (qmail 70864 invoked by uid 3782); 21 Apr 2021 13:54:21 -0000
Received: from acm.muc.de (p4fe15ced.dip0.t-ipconnect.de [79.225.92.237])
 (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP;
 Wed, 21 Apr 2021 15:54:20 +0200
Received: (qmail 12837 invoked by uid 1000); 21 Apr 2021 13:54:20 -0000
Date: Wed, 21 Apr 2021 13:54:20 +0000
To: Stefan Kangas <stefan@HIDDEN>
Subject: Re: bug#47766: 28.0.50; choose-completion fails
Message-ID: <YIAujPWPOQbfdKnR@ACM>
References: <20210414.103308.2181932615044049035.enometh@HIDDEN>
 <7d9667a70f0babba48d0@HIDDEN>
 <CADwFkmnVL_V1eu+vNeUmn1FQWEOiJmnq9qnp_E4kX14qrpn+dw@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CADwFkmnVL_V1eu+vNeUmn1FQWEOiJmnq9qnp_E4kX14qrpn+dw@HIDDEN>
X-Submission-Agent: TMDA/1.3.x (Ph3nix)
From: Alan Mackenzie <acm@HIDDEN>
X-Primary-Address: acm@HIDDEN
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 47766
Cc: Gregory Heytings <gregory@HIDDEN>, Madhu <enometh@HIDDEN>,
 47766 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hello, Madhu.

I've been looking into this bug for several hours, and it may take some
while to fix.  Thanks for taking the trouble to report it.

On Tue, Apr 20, 2021 at 08:25:13 -0500, Stefan Kangas wrote:
> Gregory Heytings <gregory@HIDDEN> writes:

> >> In GNU Emacs 28.0.50 (build 2, x86_64-pc-linux-gnu, Motif Version 2.3.8, cairo
> >> version 1.16.0) of 2021-04-14 built on maher based on master
> >> 844b8949a71f180d395a237c768b22d91cf91ded (with the motif revert reverted)

> >> 1. emacs -Q -eval '(setq pop-up-windows nil pop-up-frames t)'
> >> 2. C-x b TAB

> >> this would pop up a new *Completions* buffer in a new frame with are two
> >> choices *Messages* and *scratch*

> >> 3. choose a completion (click or hit enter on one of the choices)

> >> user-error: Cannot switch buffers in minibuffer window

Gregory and Stefan:

> > This is because of commit 7c2ebf6e23.

> Copying in Alan here.

Thanks for drawing my attention towards the bug.

-- 
Alan Mackenzie (Nuremberg, Germany).




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#47766; Package emacs. Full text available.

Message received at 47766 <at> debbugs.gnu.org:


Received: (at 47766) by debbugs.gnu.org; 20 Apr 2021 13:25:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Apr 20 09:25:22 2021
Received: from localhost ([127.0.0.1]:53282 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lYqNW-00012P-9Z
	for submit <at> debbugs.gnu.org; Tue, 20 Apr 2021 09:25:22 -0400
Received: from mail-pj1-f47.google.com ([209.85.216.47]:43646)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stefankangas@HIDDEN>) id 1lYqNU-000128-H2
 for 47766 <at> debbugs.gnu.org; Tue, 20 Apr 2021 09:25:20 -0400
Received: by mail-pj1-f47.google.com with SMTP id
 f6-20020a17090a6546b029015088cf4a1eso4616777pjs.2
 for <47766 <at> debbugs.gnu.org>; Tue, 20 Apr 2021 06:25:20 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:in-reply-to:references:user-agent
 :mime-version:date:message-id:subject:to:cc;
 bh=eJKnAyP81LZLlxuAyZ8GjtT+6uhREdTZJIJllXZnPT8=;
 b=hxOVM71dwru1Pg2A+lvk7nvyPllgxcLzCcUBvAbvh3fdRCuqH1QO6LnrpRTI6RPwk4
 Y603NBrn57iF4dTYuKdZrY6c2NDX7snZxQlZsMuLVJVaHXlwTMaSG5OIewaHZd+fIjMn
 Qo9AaUBnZ39UIoUQJtj779TAIhWL8Dz1TcIH9PJH4mMK/7KcxZ25NFiXVlvpmcYLDdka
 yEx8PKXNChWc4qhI0qyIr0Z1lLUDKp4zAYGMkPJi1yt8+P0cFnnGnUYOvC6H+dJv49Zk
 FFbVw3/2HDCaZMH8V3sPRlZqxhHHFcxXCXcVRWDtND6AuL8BXp8yGW1WJ4KGGd1jRZIj
 fnWg==
X-Gm-Message-State: AOAM531iipl+3W61uxoJ8us8KpJWO0NyRm0LiQsd6pYvptg/lKATdn6r
 MCY7kddinIlaEdHuGgj0zS+OCGQnWaKmpcbaWg3W08ZK
X-Google-Smtp-Source: ABdhPJyDylpKojNhvBzJD6mPGCMDuI9MGRqUYtXsmRx0sLWlkaTaLmD3Xc4WwfiMf7xzO2/ESKg1e+J1Czy9DP2ydZ0=
X-Received: by 2002:a17:902:7788:b029:e9:11:5334 with SMTP id
 o8-20020a1709027788b02900e900115334mr28807876pll.70.1618925114246; Tue, 20
 Apr 2021 06:25:14 -0700 (PDT)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Tue, 20 Apr 2021 08:25:13 -0500
From: Stefan Kangas <stefan@HIDDEN>
In-Reply-To: <7d9667a70f0babba48d0@HIDDEN> (Gregory Heytings's message
 of "Wed, 14 Apr 2021 08:43:29 +0000")
References: <20210414.103308.2181932615044049035.enometh@HIDDEN>
 <7d9667a70f0babba48d0@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Date: Tue, 20 Apr 2021 08:25:13 -0500
Message-ID: <CADwFkmnVL_V1eu+vNeUmn1FQWEOiJmnq9qnp_E4kX14qrpn+dw@HIDDEN>
Subject: Re: bug#47766: 28.0.50; choose-completion fails
To: Gregory Heytings <gregory@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: 47766
Cc: Alan Mackenzie <acm@HIDDEN>, Madhu <enometh@HIDDEN>,
 47766 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.5 (/)

Gregory Heytings <gregory@HIDDEN> writes:

>> In GNU Emacs 28.0.50 (build 2, x86_64-pc-linux-gnu, Motif Version 2.3.8, cairo
>> version 1.16.0) of 2021-04-14 built on maher based on master
>> 844b8949a71f180d395a237c768b22d91cf91ded (with the motif revert reverted)
>>
>> 1. emacs -Q -eval '(setq pop-up-windows nil pop-up-frames t)'
>> 2. C-x b TAB
>>
>> this would pop up a new *Completions* buffer in a new frame with are two
>> choices *Messages* and *scratch*
>>
>> 3. choose a completion (click or hit enter on one of the choices)
>>
>> user-error: Cannot switch buffers in minibuffer window
>
> This is because of commit 7c2ebf6e23.

Copying in Alan here.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#47766; Package emacs. Full text available.

Message received at 47766 <at> debbugs.gnu.org:


Received: (at 47766) by debbugs.gnu.org; 14 Apr 2021 08:43:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 14 04:43:33 2021
Received: from localhost ([127.0.0.1]:33346 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lWb7V-0006JD-Cl
	for submit <at> debbugs.gnu.org; Wed, 14 Apr 2021 04:43:33 -0400
Received: from heytings.org ([95.142.160.155]:37822)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gregory@HIDDEN>) id 1lWb7T-0006J3-GO
 for 47766 <at> debbugs.gnu.org; Wed, 14 Apr 2021 04:43:32 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org;
 s=20210101; t=1618389810;
 bh=NA3xisiMdL5NhvaKS51y9jEQc3uqBvd8cDHb+0LQYSc=;
 h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From;
 b=vnGA9V4X841978dyuWsdyDM8fa8M0QkDrkeqqIzaNmLOmGtNu3KgroG8dPQdJtL1E
 Ea6bwij9AnzXf8shGgzGp45sPHFzPZTj8Gr/AG7TlhnZ47FOxHFrK+ymey15nDvAS+
 AUTIaf7dFd4aLsphHzWjeLI1YxpwLbIB2UWrD5wk82HOk/UqUqgJgL80XnNC+mEy1J
 Ag/p8z4IqaX0MiaRRffZVRPL4nB9IrgSXxklT7JOk1pO7mxDc7zOl+ip1NXn+8UtVm
 gwE/Bo1DMwcoePYp0k5uvxR3knmBmeOepqpAPDWAACW9Kfg3rhuny5k+wKhZVfE1YY
 xGE4SoLC5fC8g==
Date: Wed, 14 Apr 2021 08:43:29 +0000
From: Gregory Heytings <gregory@HIDDEN>
To: Madhu <enometh@HIDDEN>
Subject: Re: bug#47766: 28.0.50; choose-completion fails
In-Reply-To: <20210414.103308.2181932615044049035.enometh@HIDDEN>
Message-ID: <7d9667a70f0babba48d0@HIDDEN>
References: <20210414.103308.2181932615044049035.enometh@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; format=flowed; charset=us-ascii
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 47766
Cc: 47766 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


>
> In GNU Emacs 28.0.50 (build 2, x86_64-pc-linux-gnu, Motif Version 2.3.8, 
> cairo version 1.16.0) of 2021-04-14 built on maher based on master 
> 844b8949a71f180d395a237c768b22d91cf91ded (with the motif revert 
> reverted)
>
> 1. emacs -Q -eval '(setq pop-up-windows nil pop-up-frames t)'
> 2. C-x b TAB
>
> this would pop up a new *Completions* buffer in a new frame with are two 
> choices *Messages* and *scratch*
>
> 3. choose a completion (click or hit enter on one of the choices)
>
> user-error: Cannot switch buffers in minibuffer window
>

This is because of commit 7c2ebf6e23.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#47766; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 14 Apr 2021 05:03:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 14 01:03:29 2021
Received: from localhost ([127.0.0.1]:33157 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lWXgX-0000Rv-KF
	for submit <at> debbugs.gnu.org; Wed, 14 Apr 2021 01:03:29 -0400
Received: from lists.gnu.org ([209.51.188.17]:57406)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <enometh@HIDDEN>) id 1lWXgV-0000Rn-I6
 for submit <at> debbugs.gnu.org; Wed, 14 Apr 2021 01:03:27 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:41394)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <enometh@HIDDEN>) id 1lWXgV-0006is-Bw
 for bug-gnu-emacs@HIDDEN; Wed, 14 Apr 2021 01:03:27 -0400
Received: from smtp6.ctinetworks.com ([205.166.61.199]:50196)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <enometh@HIDDEN>) id 1lWXgT-0004xP-Uw
 for bug-gnu-emacs@HIDDEN; Wed, 14 Apr 2021 01:03:27 -0400
Received: from localhost (unknown [117.193.4.113])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 (Authenticated sender: enometh@HIDDEN)
 by smtp6.ctinetworks.com (Postfix) with ESMTPSA id 5F0C88515F
 for <bug-gnu-emacs@HIDDEN>; Wed, 14 Apr 2021 01:03:18 -0400 (EDT)
Date: Wed, 14 Apr 2021 10:33:08 +0530 (IST)
Message-Id: <20210414.103308.2181932615044049035.enometh@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 28.0.50; choose-completion fails
From: Madhu <enometh@HIDDEN>
X-Mailer: Mew version 6.8 on Emacs 28.0
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-ctinetworks-Information: Please contact the ISP for more information
X-ctinetworks-MailScanner-ID: 5F0C88515F.A90D3
X-ctinetworks-VirusCheck: Found to be clean
X-ctinetworks-SpamCheck: 
X-ctinetworks-Watermark: 1619240602.1906@xHNhX9j0/e0iiQVZ0AjnBQ
Received-SPF: pass client-ip=205.166.61.199; envelope-from=enometh@HIDDEN;
 helo=smtp6.ctinetworks.com
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

In GNU Emacs 28.0.50 (build 2, x86_64-pc-linux-gnu, Motif Version 2.3.8, cairo version 1.16.0)
 of 2021-04-14 built on maher
based on master 844b8949a71f180d395a237c768b22d91cf91ded
(with the motif revert reverted)

1. emacs -Q -eval '(setq pop-up-windows nil pop-up-frames t)'
2. C-x b TAB

this would pop up a new *Completions* buffer in a new frame
with are two choices *Messages* and *scratch*

3. choose a completion (click or hit enter on one of the choices)

user-error: Cannot switch buffers in minibuffer window




Acknowledgement sent to Madhu <enometh@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#47766; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 5 May 2021 15:45:01 UTC

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