From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sean Devlin Newsgroups: gmane.emacs.bugs Subject: bug#44933: 27.1; Ephemeral frame selection shrinks minibuffer Date: Sat, 28 Nov 2020 16:21:40 -0500 Message-ID: <65A18F9E-3193-4DBD-84D8-4EDCA5AB95A1@toadstyle.org> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.40.0.2.31\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30523"; mail-complaints-to="usenet@ciao.gmane.io" To: 44933@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 28 22:22:39 2020 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 1kj7fy-0007qr-IV for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 28 Nov 2020 22:22:38 +0100 Original-Received: from localhost ([::1]:38126 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kj7fx-0000wm-Kw for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 28 Nov 2020 16:22:37 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57950) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kj7fO-0000wS-Ny for bug-gnu-emacs@gnu.org; Sat, 28 Nov 2020 16:22:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37678) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kj7fO-0006wL-H5 for bug-gnu-emacs@gnu.org; Sat, 28 Nov 2020 16:22:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kj7fO-0004Gi-Ck for bug-gnu-emacs@gnu.org; Sat, 28 Nov 2020 16:22:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Sean Devlin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 Nov 2020 21:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 44933 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.160659851216390 (code B ref -1); Sat, 28 Nov 2020 21:22:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Nov 2020 21:21:52 +0000 Original-Received: from localhost ([127.0.0.1]:49224 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kj7fD-0004GI-MD for submit@debbugs.gnu.org; Sat, 28 Nov 2020 16:21:52 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:37528) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kj7fA-0004G9-Ij for submit@debbugs.gnu.org; Sat, 28 Nov 2020 16:21:49 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57770) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kj7fA-0000vO-0t for bug-gnu-emacs@gnu.org; Sat, 28 Nov 2020 16:21:48 -0500 Original-Received: from mail-qt1-x835.google.com ([2607:f8b0:4864:20::835]:44423) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kj7f7-0006oR-Me for bug-gnu-emacs@gnu.org; Sat, 28 Nov 2020 16:21:47 -0500 Original-Received: by mail-qt1-x835.google.com with SMTP id m65so5603633qte.11 for ; Sat, 28 Nov 2020 13:21:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toadstyle-org.20150623.gappssmtp.com; s=20150623; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=n58A5ZrUUclG9it0G3swAgiOxEkpBLToGq1jVHHhYOA=; b=MsB5CKSBybzGxsrJ+ECbbykYpsHprZ93EK+PYhqUvXmNlLNbQRCgtQmP6C8KVedZuT pVOCZiZClXVVtX7S31k2V8cK6LD/qc3Nw9g1WpQ87F/kWigCdsi3AokCAIABzEVnPZnq Bw0N5rsDNED1IlSwvTkq3t5IbSpk+7YeocSafWnYgfZAAw39LmUA3rFukFw9Px0sPB+4 yX17choyW/jifLyiNlujaaAGPypfnt5Twy0C71pnDiwV5kqypx5S1iLpORpRgdr+OFka Fusv2FdXZurmC5Wq5QoJHXi82pzizq6XzC7/dSrpmyjLbj3+wjycZNYlLjI1VLIZtEtf bMNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=n58A5ZrUUclG9it0G3swAgiOxEkpBLToGq1jVHHhYOA=; b=t4hW0ocnfta2akl4vifNANbH+mYMXCz+n2EGN9vESlq3MAujxtu0aY6Oy3W8A3rZOM qBNaPAS3OqaDf1XsMd3VZt0ijpKV0MAg7LHQkxiO3n1voD1r5PPlaerbnqhG2Z+xIByo a04br/ThEXyr57H4i5eL1CvrC7Se6EuwEg3r7p9rUrvAL64iFyyVZpgtPTOlYc9nHxFv 2qTUpKQsPW5O7cU6yvaYUxdgzHU0j1xdMMQXVAkW3eikDTDVlbwdFasNhR1WxBLYj96X u0AT5v9y2WbKpjNGrq4mzBpl+N9GH2rtY4xBpt8PhmRK3BMJ5ahqM6CdjgMr1FMEawHX jTRw== X-Gm-Message-State: AOAM530El9TobDGGF+6HNigpu4lazlvgq1tL+BxAoU+gYxDnxxJ7Ztc6 OCJlxPBjALJ6ibpma+csw/Hau3owJupRrQ== X-Google-Smtp-Source: ABdhPJxn9DXzYyluaVnvfiXAjm0aK80cU8f8r3Rw7N9GUNWm6i2ruo/frhFeu5CISfB7ja+GdbyzgQ== X-Received: by 2002:ac8:44b5:: with SMTP id a21mr14720992qto.104.1606598502311; Sat, 28 Nov 2020 13:21:42 -0800 (PST) Original-Received: from ?IPv6:2604:2000:14c6:84b0:4daa:78c5:fda3:2bbe? ([2604:2000:14c6:84b0:4daa:78c5:fda3:2bbe]) by smtp.gmail.com with ESMTPSA id u5sm10755826qka.106.2020.11.28.13.21.41 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 28 Nov 2020 13:21:41 -0800 (PST) X-Mailer: Apple Mail (2.3654.40.0.2.31) Received-SPF: pass client-ip=2607:f8b0:4864:20::835; envelope-from=spd@toadstyle.org; helo=mail-qt1-x835.google.com 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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, 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-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:194512 Archived-At: Hi folks, Selecting a different frame ephmerally (e.g. via `with-selected-frame` in a timer callback) shrinks the minibuffer. This is true whether or not the minibuffer is active. Reproduction steps: 1. Evaluate this form in the scratch buffer: (run-with-timer nil 13 (lambda () (with-selected-frame (next-frame)))) 2. Evaluate this form in the scratch buffer: (run-with-timer nil 11 (lambda () (window-resize (minibuffer-window) 10))) 3. Observe that the minibuffer grows and shrinks as the timers fire. You can run some completing read command (e.g. `M-x`) to see that the resizing happens whether or not the minibuffer is active. This is relevant for completing read implementations that resize the minibuffer to display a vertical list of candidates. I noticed the behavior while using selectrum (https://github.com/raxod502/selectrum) while I had a subprocess running under term in another frame. Since the=20= `term-emulate-terminal` function selects windows in the background =20 whenever the subprocess sends output, it was causing the selectrum minibuffer to shrink. I'm not sure what the correct behavior is here, but this was unexpected to me. I think that if the minibuffer is active, ephemeral frame or window selections should not affect its size. (I'm less certain about the inactive minibuffer case, but I think the size should stay the same there as well.) Thanks! In GNU Emacs 27.1 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60 = Version 10.14.6 (Build 18G95)) of 2020-08-12 built on builder10-14.porkrind.org Windowing system distributor 'Apple', version 10.3.2022 System Description: macOS 11.0 Recent messages: Beginning of buffer [5 times] uncompressing window.el.gz...done Making completion list... Type C-x 1 to delete the help window, C-M-v to scroll help. t [2 times] Quit [3 times] [nil 24514 47830 650446 10 (closure (t) nil (window-resize = (minibuffer-window) 10)) nil nil 0] [nil 24514 47883 629069 11 (closure (t) nil (let (... ...) = (unwind-protect ... ... ...))) nil nil 0] End of buffer [6 times] Beginning of buffer [8 times] Configured using: 'configure --with-ns '--enable-locallisppath=3D/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp' --with-modules' Configured features: NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS JSON PDUMPER Important settings: 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 cl-print debug backtrace cl-extra minibuf-eldef help-fns radix-tree help-mode emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils linum misearch multi-isearch jka-compr thingatpt find-func tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win 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 timer select scroll-bar mouse jit-lock font-lock syntax facemenu 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 loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 59777 30679) (symbols 48 6538 1) (strings 32 19388 2002) (string-bytes 1 586736) (vectors 16 11741) (vector-slots 8 146822 21486) (floats 8 40 48) (intervals 56 896 92) (buffers 1000 16))