From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Selecting tooltip frames considered harmful Date: Mon, 26 Feb 2018 08:21:35 -0500 Message-ID: References: <5A9135CE.3020802@gmx.at> <5A9309CB.90404@gmx.at> <5A93CE0D.4050308@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1519651196 6253 195.159.176.226 (26 Feb 2018 13:19:56 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 26 Feb 2018 13:19:56 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 26 14:19:51 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eqIh4-0000z3-Vm for ged-emacs-devel@m.gmane.org; Mon, 26 Feb 2018 14:19:51 +0100 Original-Received: from localhost ([::1]:59069 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqIj5-0002Oh-ID for ged-emacs-devel@m.gmane.org; Mon, 26 Feb 2018 08:21:55 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33003) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqIix-0002OI-AL for emacs-devel@gnu.org; Mon, 26 Feb 2018 08:21:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eqIit-0001Q2-CP for emacs-devel@gnu.org; Mon, 26 Feb 2018 08:21:47 -0500 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:40690) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqIit-0001PA-7U for emacs-devel@gnu.org; Mon, 26 Feb 2018 08:21:43 -0500 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id w1QDLadC030635; Mon, 26 Feb 2018 08:21:36 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id E0F69605CC; Mon, 26 Feb 2018 08:21:35 -0500 (EST) In-Reply-To: <5A93CE0D.4050308@gmx.at> (martin rudalics's message of "Mon, 26 Feb 2018 10:06:21 +0100") X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV6230=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6230> : inlines <6431> : streams <1780091> : uri <2599656> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:223051 Archived-At: > So you probably mean the mini window for the frame of the window > selected at the time the tooltip frame is created. Indeed. > That window is in fact the mini window of tip_last_frame. Maybe the lifetime of a tooltip frame is sufficiently restricted that this is the case (I'm not sufficiently familiar with that code to tell), but the *semantics* should be "the echo area of the window for which the tooltip frame is transient", I think (and if tip_last_frame gives us that, then that can be used in the implementation). > We currently refuse to delete a frame when its minibuffer window > serves as the minibuffer window of another frame. I think this is an accident of implementation, not a feature. As a user I've found it annoying on a bunch of occasions. So we don't have to reproduce that misfeature here. A more useful behavior would be to allow deleting that frame, and then next time the other frame needs a miniwindow, you just go "oops, our miniwindow has been deleted, let's look for another one". We could still have a check when deleting a frame to make sure there remains at least 1 miniwindow somewhere, of course. Stefan