From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Rees via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#65116: 29.1; query-replace-read-args fails reading second arg in detached minibuf Date: Sun, 6 Aug 2023 11:18:34 -0600 Message-ID: Reply-To: Jim Rees 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="35888"; mail-complaints-to="usenet@ciao.gmane.io" To: 65116@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 06 21:05:23 2023 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 1qSj46-00094Q-ET for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 06 Aug 2023 21:05:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qSj3r-00061Y-H0; Sun, 06 Aug 2023 15:05:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qSj3n-00061F-EW for bug-gnu-emacs@gnu.org; Sun, 06 Aug 2023 15:05:05 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qSj3m-0006ST-Cx for bug-gnu-emacs@gnu.org; Sun, 06 Aug 2023 15:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qSj3m-0002PB-1d for bug-gnu-emacs@gnu.org; Sun, 06 Aug 2023 15:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jim Rees Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Aug 2023 19:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65116 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.16913487009231 (code B ref -1); Sun, 06 Aug 2023 19:05:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Aug 2023 19:05:00 +0000 Original-Received: from localhost ([127.0.0.1]:60006 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSj3i-0002Om-9t for submit@debbugs.gnu.org; Sun, 06 Aug 2023 15:05:00 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:35652) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qShP7-00083l-Iy for submit@debbugs.gnu.org; Sun, 06 Aug 2023 13:19:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qShP1-000337-0e for bug-gnu-emacs@gnu.org; Sun, 06 Aug 2023 13:18:51 -0400 Original-Received: from out-127.mta0.migadu.com ([2001:41d0:1004:224b::7f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qShOx-0002oN-4d for bug-gnu-emacs@gnu.org; Sun, 06 Aug 2023 13:18:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rees.org; s=key1; t=1691342319; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=lGP+CyOEixtkKYu/RQvCbI81rA0ShSRLpTcBsc4qGxY=; b=23xZeRQRSWBFaLIbmyHkr/bBK9EQJWr501P07hiBA5XYgvvnmiNMmVSYAoz0fcW5n4PAOT PCfEYj94CFze/0fBFt3j+Awm8RngLe1z2llk/A8XOp8XSdrvjFkDYTfJI7QKFdHBqhL8qV kAWG+qMH3GocphSD4DU889mfHEq60IVpCMHpg+RJ1Aq/9Wh09noIsCMMu63BwhyYrIbfJo UOiz+k6nbZICB0zT2wOR2JIqQWMG5+e4DLjFHcsviqGLOi3kfeDQojJsJ/Ym29fgFdm1kJ 2fUp+4BwhRw4DuPQC9qTP+ZDHU4BLMTLFQdR4I6lkPniUTsxo9s+sPdf9utfsA== X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. Content-Disposition: inline X-Migadu-Flow: FLOW_OUT Received-SPF: pass client-ip=2001:41d0:1004:224b::7f; envelope-from=jim@rees.org; helo=out-127.mta0.migadu.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 06 Aug 2023 15:04:56 -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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:266863 Archived-At: With detached minibuf, query-replace doesn't work because query-replace-read-args doesn't shift focus to minibuf for the replacement string. Possibly related to Bug 64152. This worked in 28.1. To reproduce, create init.el with these two lines: (add-to-list 'initial-frame-alist '(minibuffer . nil)) (add-to-list 'minibuffer-frame-alist '(minibuffer . only)) Now run emacs: emacs-29.1 -Q --load init.el Run query-replace, usually bound to M-%. Focus will shift to the minibuf. Enter a string and hit . The minibuf will now prompt for a replacement string, but focus will now be in the scratch buffer instead of the minibuf, and it will be impossible to enter the replacement string without re-focusing. In GNU Emacs 28.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.36, cairo version 1.17.6) of 2023-01-15 built on motul Windowing system distributor 'The X.Org Foundation', version 11.0.12101008 System Description: Arch Linux Configured using: 'configure --disable-silent-rules --prefix=/usr/local --sysconfdir=/etc --libexecdir=/usr/local/lib --localstatedir=/var --mandir=/usr/local/man --with-x --with-x-toolkit=gtk3 --without-toolkit-scroll-bars --without-xaw3d --with-cairo --without-imagemagick --without-sound --without-gif --without-libsystemd --without-dbus --without-gconf --without-gsettings --without-selinux CFLAGS=-Os' Configured features: ACL CAIRO FREETYPE GLIB GMP GNUTLS GPM HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP THREADS TIFF X11 XDBE XIM XPM GTK3 ZLIB Important settings: value of $LC_COLLATE: C value of $LC_TIME: en_GB.UTF-8 value of $LANG: en_US.utf8 locale-coding-system: utf-8-unix Major mode: ELisp/d Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t Load-path shadows: /home/rees/lib/lisp/cmuscheme hides /usr/local/share/emacs/28.1/lisp/cmuscheme /home/rees/lib/lisp/tempo hides /usr/local/share/emacs/28.1/lisp/tempo /home/rees/lib/lisp/rng-nxml hides /usr/local/share/emacs/28.1/lisp/nxml/rng-nxml /home/rees/lib/lisp/syntax hides /usr/local/share/emacs/28.1/lisp/emacs-lisp/syntax Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util rmail rmail-loaddefs auth-source cl-seq eieio eieio-core eieio-loaddefs password-cache json map text-property-search mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date subr-x tabify imenu man ansi-color pp seq byte-opt bytecomp byte-compile cconv zoom-frm frame-cmds cl-macs gv frame-fns avoid server ps-ccrypt html-mode dtrt-indent advice easy-mmode whitespace plain-mode edmacro kmacro cl-loaddefs cl-lib fit-frame iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode 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 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 emoji-zwj 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 inotify lcms2 dynamic-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 74590 6483) (symbols 48 8146 1) (strings 32 22376 2052) (string-bytes 1 771015) (vectors 16 15645) (vector-slots 8 222601 10111) (floats 8 64 30) (intervals 56 254 244) (buffers 992 13))