From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Madhu Newsgroups: gmane.emacs.bugs Subject: bug#47766: 28.0.50; choose-completion fails Date: Thu, 22 Apr 2021 21:34:29 +0530 (IST) Message-ID: <20210422.213429.112377311480064511.enometh@meer.net> References: <7d9667a70f0babba48d0@heytings.org> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9435"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gregory@heytings.org, stefan@marxist.se, 47766@debbugs.gnu.org To: acm@muc.de Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 22 18:09:31 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lZbtR-0002B3-MD for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 22 Apr 2021 18:09:29 +0200 Original-Received: from localhost ([::1]:33538 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZbtQ-0000Sv-OP for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 22 Apr 2021 12:09:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49348) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZbq6-000621-0W for bug-gnu-emacs@gnu.org; Thu, 22 Apr 2021 12:06:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52043) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lZbq5-0000g9-NV for bug-gnu-emacs@gnu.org; Thu, 22 Apr 2021 12:06:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lZbq5-00050S-HS for bug-gnu-emacs@gnu.org; Thu, 22 Apr 2021 12:06:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Madhu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Apr 2021 16:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47766 X-GNU-PR-Package: emacs Original-Received: via spool by 47766-submit@debbugs.gnu.org id=B47766.161910752419175 (code B ref 47766); Thu, 22 Apr 2021 16:06:01 +0000 Original-Received: (at 47766) by debbugs.gnu.org; 22 Apr 2021 16:05:24 +0000 Original-Received: from localhost ([127.0.0.1]:35356 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lZbpU-0004zD-Cc for submit@debbugs.gnu.org; Thu, 22 Apr 2021 12:05:24 -0400 Original-Received: from smtp6.ctinetworks.com ([205.166.61.199]:55834) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lZbpS-0004z3-Lm for 47766@debbugs.gnu.org; Thu, 22 Apr 2021 12:05:23 -0400 Original-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@meer.net) by smtp6.ctinetworks.com (Postfix) with ESMTPSA id 68ECC850D6; Thu, 22 Apr 2021 12:05:14 -0400 (EDT) In-Reply-To: X-Mailer: Mew version 6.8 on Emacs 28.0 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-Watermark: 1619971521.90473@hHt/jgxrffH/FzrUkSPxPg X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:204700 Archived-At: * Alan Mackenzie 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.]