From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Iris =?UTF-8?Q?Garc=C3=ADa?= Newsgroups: gmane.emacs.bugs Subject: bug#48674: Frames and minibuffer bug Date: Wed, 26 May 2021 13:23:42 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000b4c6fe05c339e09e" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19615"; mail-complaints-to="usenet@ciao.gmane.io" To: 48674@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 26 16:46:23 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 1llune-0004nY-3x for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 26 May 2021 16:46:22 +0200 Original-Received: from localhost ([::1]:60428 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1llund-0007Rn-66 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 26 May 2021 10:46:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44142) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1llujU-0000Ke-Su for bug-gnu-emacs@gnu.org; Wed, 26 May 2021 10:42:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38167) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1llujU-0000Fa-IK for bug-gnu-emacs@gnu.org; Wed, 26 May 2021 10:42:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1llujU-0000Fx-GM for bug-gnu-emacs@gnu.org; Wed, 26 May 2021 10:42:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Iris =?UTF-8?Q?Garc=C3=ADa?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 May 2021 14:42:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48674 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.1622040089875 (code B ref -1); Wed, 26 May 2021 14:42:04 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 May 2021 14:41:29 +0000 Original-Received: from localhost ([127.0.0.1]:49703 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lluiu-0000Dx-GY for submit@debbugs.gnu.org; Wed, 26 May 2021 10:41:29 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:34876) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1llrdn-0007CO-AG for submit@debbugs.gnu.org; Wed, 26 May 2021 07:23:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53916) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1llrdn-0002Lq-3s for bug-gnu-emacs@gnu.org; Wed, 26 May 2021 07:23:59 -0400 Original-Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]:36828) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1llrdk-0003et-LM for bug-gnu-emacs@gnu.org; Wed, 26 May 2021 07:23:58 -0400 Original-Received: by mail-ej1-x62b.google.com with SMTP id c20so1851932ejm.3 for ; Wed, 26 May 2021 04:23:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=uDatIJ8kXHGL4mevZRzrVhXb26zGVZmpTF6qiLsztb4=; b=N/DyIG3t8IGy/Te2ibzfsw0sY+Rqk3DOs6iUhEOylMWCdbdWfXanc6WAC5f3VWJxdi /aMWsPa5vw1dDbHk/LLlbZmHBRp7+GkBmuRmCtv+VHyHAbHLCEhNU5ivaCtP6b65dCdS S1GibAJ19x87uRRWszxljFdKUQ4uSjBwxXqaoZX6/u/cyfrIwW0niSUasSam4XgC7ggQ lPGKXz8BGYGjvgcUkt12mVDtvzrMePqcKHY8h8U6ELsIXFM3RnvgWx5pxD5fEFzIcfkQ s3PNEZENT0Y5bP9a5YhMAKnXqZ5jEmdE+E7WMFxt0fhoXH5hd6Nmvq0vOP3P0Jql5Baq l4CA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=uDatIJ8kXHGL4mevZRzrVhXb26zGVZmpTF6qiLsztb4=; b=mLy/irzd2rpMFvI0OgSBKsI7cYt0k2uBcaq5s4PKy6W88ntfhvFo2eXHX/L3/5iAQ+ PgS59aZLIM5KsNjL88JbFheXh3l4bWaSdB/PmG3h7kyuiKRxj/ogl3x9Jio23dcjVy1j q52JyysyoAIlKaShJiAZ/MCt2ez2NXd8B5h/vBDrU/JOJnwvhPGLB2DBobHJk5zASmZH 5mXvY2BsIpsjv634PKPGZZ/IiOcF/BxQV/AJpcBcAvHslV+DbaMZsg2miQn8jLdnMT7Z FU8e13bOQsOZr9BlAPqNeHyQHBqUQj9Nv46o7yN9GNo1IWe2UW3sI5yA/raFzch1M0QL CjGg== X-Gm-Message-State: AOAM533Sesmlz6EaJAdIzjX9wt4SBXi+VkaiVOqjfq1Ew2ChRP3gny9+ 7tj9o4nwzT2eYjo/Ho/9BfS91h2AyMmEqFVZ2WRsa6H2qaBxdQ== X-Google-Smtp-Source: ABdhPJxLj5x4O5HyZD4xPVotBe2POm3xtf7m4wlevc/U3pR1gCw8tJq6twOL7o7hiFp4MDnbrXtmbl9iR2K+7FSI+U4= X-Received: by 2002:a17:906:33d3:: with SMTP id w19mr122810eja.399.1622028234048; Wed, 26 May 2021 04:23:54 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::62b; envelope-from=imdabuti@gmail.com; helo=mail-ej1-x62b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 26 May 2021 10:41:08 -0400 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:207295 Archived-At: --000000000000b4c6fe05c339e09e Content-Type: text/plain; charset="UTF-8" Hi everyone, this is the first time I report a bug. In order to reproduce the bug I did exactly the following: 1. Start emacs: emacs -Q 2. Paste the following code in the scratch buffer: (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 'minibuffer-setup-hook #'test/enter-minibuffer) (add-hook 'minibuffer-exit-hook #'test/exit-minibuffer) (server-start) (make-frame) ;; Call M-x (execute-extended-command) and you will see: ;; It is not possible to write in the minibuffer ;; Killing the previously created frame seems to solve the issue. 3. M-x -> eval-buffer -> RET 4. M-x (The bug appears, it is not possible to write in the minibuffer) Note: As soon as the new frame is destroyed, it is possible again to write in the minibuffer. Info: In GNU Emacs 28.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.29, cairo version 1.17.4) of 2021-05-26 built on ryzen9 Repository revision: f4dc646e0d7fb673f3149836bb7299fba9539e80 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12011000 System Description: Arch Linux Configured using: 'configure --with-native-compilation --with-mailutils --with-pop --with-x --with-json --with-xwidgets --with-imagemagick --with-cairo' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ IMAGEMAGICK JPEG JSON LCMS2 LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM XWIDGETS GTK3 ZLIB Important settings: value of $LC_ALL: en_US.UTF-8 value of $LC_CTYPE: C value of $LC_MESSAGES: C value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs auth-source eieio eieio-core eieio-loaddefs password-cache json map text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail comp comp-cstr warnings subr-x rx cl-seq cl-macs cl-extra help-mode seq byte-opt gv cl-loaddefs cl-lib bytecomp byte-compile cconv rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils server iso-transl tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads xwidget-internal dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 88884 6685) (symbols 48 7886 1) (strings 32 22435 3140) (string-bytes 1 860986) (vectors 16 15992) (vector-slots 8 273880 13488) (floats 8 30 175) (intervals 56 499 0) (buffers 992 13)) --000000000000b4c6fe05c339e09e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi everyone, this is the first time I report a bug.
In order to reproduce the bug I did exactly the following:
1. Start emacs: emacs -Q
2. Paste the following code in the sc= ratch buffer:
(defvar box-cursor t)

(defun test/set-cursor= ()
=C2=A0 "Set cursor in all frames depending on the active state.&= quot;
=C2=A0 (interactive)
=C2=A0 (dolist (frame (frame-list))
=C2= =A0 =C2=A0 (with-selected-frame frame
=C2=A0 =C2=A0 =C2=A0 (if box-curso= r
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (progn
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 (modify-frame-parameters
=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0frame (list (cons 'cursor-type 'box)))
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (modify-frame-parameters
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0frame (list (cons 'cursor-colo= r "#00A9FE"))))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 (progn
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 (modify-frame-parameters
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0frame (list (cons 'cursor-type 'hbar)))
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (modify-frame-parameters
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0frame (list (cons 'cursor-color "gr= een")))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 )))))

(defun test= /enter-minibuffer()
=C2=A0 (setq box-cursor nil)
=C2=A0 (test/set-cur= sor))

(defun test/exit-minibuffer()
=C2=A0 (setq box-cursor t)=C2=A0 (test/set-cursor))


(add-hook 'minibuffer-setup-hook = #'test/enter-minibuffer)
(add-hook 'minibuffer-exit-hook #'t= est/exit-minibuffer)

(server-start)
(make-frame)

;; Call M= -x (execute-extended-command) and you will see:
;; It is not possible to= write in the minibuffer
;; Killing the previously created frame seems t= o solve the issue.

3. M-x -> eval-buffer -> = RET
4. M-x (The bug appears, it is not possible to write in the m= inibuffer)

Note:
As soon as the new fram= e is destroyed, it is possible again to write in the minibuffer.
<= div>
Info:
In GNU Emacs 28.0.50 (build 2, x86_6= 4-pc-linux-gnu, GTK+ Version 3.24.29, cairo version 1.17.4)
=C2=A0of 2= 021-05-26 built on ryzen9
Repository revision: f4dc646e0d7fb673f3149836b= b7299fba9539e80
Repository branch: master
Windowing system distributo= r 'The X.Org Foundation', version 11.0.12011000
System Descripti= on: Arch Linux

Configured using:
=C2=A0'configure --with-nati= ve-compilation --with-mailutils --with-pop
=C2=A0--with-x --with-json --= with-xwidgets --with-imagemagick --with-cairo'

Configured featur= es:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZIMAGEMAGICK JPEG JSON LCMS2 LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP
NOT= IFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF
TOOLKIT_SCROLL_B= ARS X11 XDBE XIM XPM XWIDGETS GTK3 ZLIB

Important settings:
=C2= =A0 value of $LC_ALL: en_US.UTF-8
=C2=A0 value of $LC_CTYPE: C
=C2=A0= value of $LC_MESSAGES: C
=C2=A0 value of $LANG: en_US.UTF-8
=C2=A0 l= ocale-coding-system: utf-8-unix

Major mode: Lisp Interaction

= Minor modes in effect:
=C2=A0 tooltip-mode: t
=C2=A0 global-eldoc-mod= e: t
=C2=A0 eldoc-mode: t
=C2=A0 electric-indent-mode: t
=C2=A0 mo= use-wheel-mode: t
=C2=A0 tool-bar-mode: t
=C2=A0 menu-bar-mode: t
= =C2=A0 file-name-shadow-mode: t
=C2=A0 global-font-lock-mode: t
=C2= =A0 font-lock-mode: t
=C2=A0 blink-cursor-mode: t
=C2=A0 auto-composi= tion-mode: t
=C2=A0 auto-encryption-mode: t
=C2=A0 auto-compression-m= ode: t
=C2=A0 line-number-mode: t
=C2=A0 transient-mark-mode: t
Load-path shadows:
None found.

Features:
(shadow sort mail-e= xtr emacsbug message rmc puny dired dired-loaddefs
rfc822 mml mml-sec ep= a derived epg epg-config gnus-util rmail
rmail-loaddefs auth-source eiei= o eieio-core eieio-loaddefs
password-cache json map text-property-search= time-date mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev g= mm-utils mailheader
sendmail comp comp-cstr warnings subr-x rx cl-seq cl= -macs cl-extra
help-mode seq byte-opt gv cl-loaddefs cl-lib bytecomp byt= e-compile cconv
rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils= server
iso-transl tooltip eldoc electric uniquify ediff-hook vc-hookslisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bardnd fontset image regexp-opt fringe tabulated-list replace newcomment
t= ext-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar
r= fn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock
font-= lock syntax font-core term/tty-colors frame minibuffer cl-generic
cham g= eorgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean= japanese eucjp-ms cp51932 hebrew greek romanian slovak czech
european e= thiopic indian cyrillic chinese composite charscript charprop
case-table= epa-hook jka-cmpr-hook help simple abbrev obarray
cl-preloaded nadvice = button loaddefs faces cus-face macroexp files
window text-properties ove= rlay sha1 md5 base64 format env code-pages
mule custom widget hashtable-= print-readable backquote threads
xwidget-internal dbusbind inotify lcms2= dynamic-setting
system-font-setting font-render-setting cairo move-tool= bar gtk x-toolkit
x multi-tty make-network-process native-compile emacs)=

Memory information:
((conses 16 88884 6685)
=C2=A0(symbols 48= 7886 1)
=C2=A0(strings 32 22435 3140)
=C2=A0(string-bytes 1 860986)<= br>=C2=A0(vectors 16 15992)
=C2=A0(vector-slots 8 273880 13488)
=C2= =A0(floats 8 30 175)
=C2=A0(intervals 56 499 0)
=C2=A0(buffers 992 13= ))
--000000000000b4c6fe05c339e09e--