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.bugs Subject: bug#48674: Frames and minibuffer bug Date: Mon, 31 May 2021 16:36:43 +0000 Message-ID: References: <1911d1b0-ed9f-7359-b28c-fbaef27df8f3@gmx.at> <1e21b121-91c1-cbe9-d9ae-24915f163ae5@gmx.at> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39821"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 48674-done@debbugs.gnu.org To: Iris =?UTF-8?Q?Garc=C3=ADa?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 31 18:37:37 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 1lnkv3-000AEr-7H for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 31 May 2021 18:37:37 +0200 Original-Received: from localhost ([::1]:40850 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lnkv2-0000k4-5h for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 31 May 2021 12:37:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48546) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnkuV-0000hD-D1 for bug-gnu-emacs@gnu.org; Mon, 31 May 2021 12:37:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51389) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lnkuU-00087H-IF for bug-gnu-emacs@gnu.org; Mon, 31 May 2021 12:37:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lnkuU-0007Fx-Aw for bug-gnu-emacs@gnu.org; Mon, 31 May 2021 12:37:02 -0400 Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Mon, 31 May 2021 16:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 48674 X-GNU-PR-Package: emacs Mail-Followup-To: 48674@debbugs.gnu.org, acm@muc.de, iris.garcia.desebastian@gmail.com Original-Received: via spool by 48674-done@debbugs.gnu.org id=D48674.162247901627876 (code D ref 48674); Mon, 31 May 2021 16:37:02 +0000 Original-Received: (at 48674-done) by debbugs.gnu.org; 31 May 2021 16:36:56 +0000 Original-Received: from localhost ([127.0.0.1]:34702 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lnkuN-0007FY-Ng for submit@debbugs.gnu.org; Mon, 31 May 2021 12:36:55 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:45181 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1lnkuI-0007FG-El for 48674-done@debbugs.gnu.org; Mon, 31 May 2021 12:36:54 -0400 Original-Received: (qmail 94844 invoked by uid 3782); 31 May 2021 16:36:43 -0000 Original-Received: from acm.muc.de (p4fe15aad.dip0.t-ipconnect.de [79.225.90.173]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Mon, 31 May 2021 18:36:43 +0200 Original-Received: (qmail 21593 invoked by uid 1000); 31 May 2021 16:36:43 -0000 Content-Disposition: inline In-Reply-To: X-Submission-Agent: TMDA/1.3.x (Ph3nix) X-Primary-Address: acm@muc.de 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:207712 Archived-At: Hello, Iris. Firstly, forgive me for not answering you sooner. I didn't want want to waste any more of your time with any more unusable patches. This was a tricky bug to solve, and indeed only the third patch attempt was satisfactory. I have now committed this third patch, and would ask you to remove the patch I sent you a few days ago, and update your Emacs to the current master version. I am closing the bug with this post, but if you find any more trouble with it, would you please let us know, so that we can open it again. Thanks! -- Alan Mackenzie (Nuremberg, Germany). On Thu, May 27, 2021 at 19:56:03 +0000, Iris García wrote: > Hi Martin, > I forgot to include you in my last mail where I said: > I think I have found the new issue (it is related to the former one), my > > code this time was the following: > > (defvar box-cursor t) > > > > (defun test/set-cursor() > > "Set cursor in all frames depending on the active state." > > (interactive) > > (dolist (frame (frame-list)) > > (with-selected-frame frame > > (if box-cursor > > (progn > > (modify-frame-parameters > > frame (list (cons 'cursor-type 'box))) > > (modify-frame-parameters > > frame (list (cons 'cursor-color "#00A9FE")))) > > (progn > > (modify-frame-parameters > > frame (list (cons 'cursor-type 'hbar))) > > (modify-frame-parameters > > frame (list (cons 'cursor-color "green"))) > > ))))) > > > > (defun test/enter-minibuffer() > > (setq box-cursor nil) > > (test/set-cursor)) > > > > (defun test/exit-minibuffer() > > (setq box-cursor t) > > (test/set-cursor)) > > > > > > (add-hook 'window-state-change-hook #'test/enter-minibuffer) > > (add-hook 'window-state-change-hook #'test/exit-minibuffer) > > > > (server-start) > > (make-frame > > The only difference is the add-hook, this time using > > window-state-change-hook instead of minibuffer-... > > This leads to the same bug. > > Regards, > > Iris.