From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: ynyaaa@gmail.com Newsgroups: gmane.emacs.bugs Subject: bug#38645: 26.3; minibuffer input is called with multi-line window when multi-line message is shown Date: Wed, 18 Dec 2019 19:52:44 +0900 Message-ID: <86r211sy6b.fsf@gmail.com> References: <86v9qfo39u.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="151312"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 38645@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 18 11:54:12 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ihWy4-000dFH-CR for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Dec 2019 11:54:12 +0100 Original-Received: from localhost ([::1]:52400 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ihWy2-0001Qx-Et for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Dec 2019 05:54:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41861) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ihWxv-0001Qk-8j for bug-gnu-emacs@gnu.org; Wed, 18 Dec 2019 05:54:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ihWxu-0000Yk-5e for bug-gnu-emacs@gnu.org; Wed, 18 Dec 2019 05:54:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36736) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ihWxt-0000XP-Ve for bug-gnu-emacs@gnu.org; Wed, 18 Dec 2019 05:54:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ihWxt-0003px-UU for bug-gnu-emacs@gnu.org; Wed, 18 Dec 2019 05:54:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: ynyaaa@gmail.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Dec 2019 10:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38645 X-GNU-PR-Package: emacs X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org, 38645@debbugs.gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.157666639914676 (code B ref -1); Wed, 18 Dec 2019 10:54:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Dec 2019 10:53:19 +0000 Original-Received: from localhost ([127.0.0.1]:42706 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ihWxC-0003od-P2 for submit@debbugs.gnu.org; Wed, 18 Dec 2019 05:53:19 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:58773) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ihWxA-0003oW-Uz for submit@debbugs.gnu.org; Wed, 18 Dec 2019 05:53:17 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57552) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ihWx9-0001O0-PN for bug-gnu-emacs@gnu.org; Wed, 18 Dec 2019 05:53:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ihWx8-0005JW-Gt for bug-gnu-emacs@gnu.org; Wed, 18 Dec 2019 05:53:15 -0500 Original-Received: from mail-pg1-x52f.google.com ([2607:f8b0:4864:20::52f]:38522) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ihWx8-0005Eq-9Q; Wed, 18 Dec 2019 05:53:14 -0500 Original-Received: by mail-pg1-x52f.google.com with SMTP id a33so1072594pgm.5; Wed, 18 Dec 2019 02:53:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:date:message-id:mime-version; bh=fylEqvWxB3Mz8A8wZNqv/wp82XUt/ye3SBb5vINjNHc=; b=YBfqAa6EhuCbEVT5kat5yWIm7BHtYcVe0c9A3MfDWHmp43AYymQ6zCXAZ0UmXQP8zq hxe8yHG6TZOSoFry6Dy5iHN60GAa3pi4GCuY+Ql+1X1K3PH0olysIA3iclSUxaCCKdlw 4HHw6+7Tit/Jiubj72+uEHApwtMf6ZXEfK+8IsU9otUnX7jmLUk04CYALoeUpj6SSPNk Vd33jc7z8hTJs6W2/ilXVdh0MScimWKc21+HdaBH3/QMqGEVlLcpjsKfXECjatP6lgaj 1W07Tpr/i4Wqu5HxkqFiCONd3Izqqmrz/0ga2ATRC7y/Izhao2oro5bTF07HbRxwRux8 iD4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:date:message-id :mime-version; bh=fylEqvWxB3Mz8A8wZNqv/wp82XUt/ye3SBb5vINjNHc=; b=tZKwra0lP43lPBz0WN1R2IWuVFs40MEhPz4FujmgDZK9fjGPYO/mSp4aIB0qfLR+2g GB269jbii1oUjfWwYu7zt5L1pEnRlocbMwnDnJMv+hAzpr04m+TNp07pXxw+x5CqA7Md zSseA/5GYeLXcN9jS34OvjKgJJWMnqVtO7zrGBp2Aw4M+yGIwDDz8clo3IJyE9wzng4F N1MutVT48+TCGqhq5lZH2WrDEsST3xWTIvFnPq1uP2WxeJU2bMJpNduitetKMZUOtIhb oRk7oqtvLKzBqrzDG9cYWtdpE04keoQDhenGkFq2Du9hxU3Vv4DLjvg6f+hEcPOEECIY egSQ== X-Gm-Message-State: APjAAAXvi8RLT1lavDew2n/WB4nOgj0VCWLFCIu8FljDshL6eojKBtA9 veGmR/jVkN3yxG57xEosdSGoLa9Z X-Google-Smtp-Source: APXvYqxOIcpWbcaY0XqbLWNKgBq3quCubXX9M3EQUzXN9PnEczYW3yXa1mfgk7lNFYIsdjQi3nLjfg== X-Received: by 2002:a63:d153:: with SMTP id c19mr2293486pgj.78.1576666392780; Wed, 18 Dec 2019 02:53:12 -0800 (PST) Original-Received: from HP (east42-p111.eaccess.hi-ho.ne.jp. [219.121.173.112]) by smtp.gmail.com with ESMTPSA id x33sm2650645pga.86.2019.12.18.02.53.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Dec 2019 02:53:12 -0800 (PST) In-Reply-To: (Eli Zaretskii's message of "Tue, 17 Dec 2019 14:07:20 +0200") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:173516 Archived-At: Eli Zaretskii writes: > On December 17, 2019 1:55:48 PM GMT+02:00, ynyaaa@gmail.com wrote: >> Eli Zaretskii writes: >> >> > On December 17, 2019 8:49:17 AM GMT+02:00, ynyaaa@gmail.com wrote: >> >> >> >> > That's a feature: by default the mini-window only grows >> automatically, >> > and doesn't get reset to its original 1 line until the echo area is >> > cleared. If you don't like this, customize resize-mini-windows to >> the >> > value t, or bind it temporarily while running code such as in the >> > recipe. >> >> This may happen with unrelated commands. >> Commands below shows an example. >> Please input M-x as one key event, not ESC x. >> >> M-: "1\n2" RET >> M-x > > When I type this with resize-mini-windows set to t, typing M-x causes > the mini-window to shrink back to its original one-line height. So I > don't think I understand the complaint. Evaluate the form below and type 3 2 1, minibuffer window shrinks each time. This behavior is inconsistent with read-string. To check echo area contents just before read-string, type 3 4 and the tmp variable value is nil, which indicates that the echo area has been cleared without shrinking the minibuffer window. (let ((buf (generate-new-buffer "tmp")) (map (make-sparse-keymap))) (switch-to-buffer buf) (define-key map "1" (lambda () (interactive) (message "1"))) (define-key map "2" (lambda () (interactive) (message "a\nb"))) (define-key map "3" (lambda () (interactive) (message "A\nB\nC"))) (define-key map "4" (lambda () (interactive) (let ((tmp (current-message))) (read-string "input: ") (message "tmp: %s" tmp)))) (use-local-map map)) By the way, read-string with empty PROMPT make the minibuffer window shrink. (progn (message "1\n2") (read-string "")) Also it make the window shrink when all the minibuffer content is deleted, even though read-string is not finished. M-: (read-string "") RET C-q C-j C-q C-j DEL DEL