From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: Stop frames stealing eachothers' minibuffers! Date: Sun, 22 Nov 2020 17:11:52 +0000 Message-ID: <20201122171152.GE5912@ACM> References: <20201119104035.GB6259@ACM> <9aacff47-8ac2-93a2-5112-6153ee986b57@gmx.at> <20201120210005.GA1034@ACM> <20201121102751.GA11643@ACM> <18a901b8-3250-b461-eb2a-c13988616e93@gmx.at> <20201121124550.GB11643@ACM> <535bd6d4-3997-2e64-ea43-5de6f0892062@gmx.at> <20201122105947.GA5912@ACM> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8420"; mail-complaints-to="usenet@ciao.gmane.io" Cc: martin rudalics , enometh@meer.net, Eli Zaretskii , Andrii Kolomoiets , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 22 18:13:08 2020 Return-path: Envelope-to: ged-emacs-devel@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 1kgsvD-00027K-PM for ged-emacs-devel@m.gmane-mx.org; Sun, 22 Nov 2020 18:13:07 +0100 Original-Received: from localhost ([::1]:40160 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kgsvC-0002hz-P7 for ged-emacs-devel@m.gmane-mx.org; Sun, 22 Nov 2020 12:13:06 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41280) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kgsu6-0002GL-17 for emacs-devel@gnu.org; Sun, 22 Nov 2020 12:11:58 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:30563 helo=mail.muc.de) by eggs.gnu.org with smtp (Exim 4.90_1) (envelope-from ) id 1kgsu3-000614-7q for emacs-devel@gnu.org; Sun, 22 Nov 2020 12:11:57 -0500 Original-Received: (qmail 30710 invoked by uid 3782); 22 Nov 2020 17:11:54 -0000 Original-Received: from acm.muc.de (p2e5d52bc.dip0.t-ipconnect.de [46.93.82.188]) by localhost.muc.de (tmda-ofmipd) with ESMTP; Sun, 22 Nov 2020 18:11:52 +0100 Original-Received: (qmail 11824 invoked by uid 1000); 22 Nov 2020 17:11:52 -0000 Content-Disposition: inline In-Reply-To: X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de Received-SPF: pass client-ip=193.149.48.1; envelope-from=acm@muc.de; helo=mail.muc.de 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=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:259627 Archived-At: Hello, Stefan. On Sun, Nov 22, 2020 at 10:13:35 -0500, Stefan Monnier wrote: > > Yes. It seems my patch from yesterday was too complicated. At the > Agreed. I think we should more narrowly taylor-make it for the problem > at hand: i.e. when signaling an error, remember the selected-frame > somewhere before doing the longjmp, and then when emitting the error > message make use of that remembered selected-frame to choose which > miniwindow to use for the message. Er, I think you're talking about the patch I committed on Thursday, not the proposed one I sent to Martin. > Basically, the problem at hand is that we want to emit the error message > "as if" we did it before the longjmp, but for technical reasons we need > to do it after the longjmp. > Stefan -- Alan Mackenzie (Nuremberg, Germany).