From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Matt Kramer Newsgroups: gmane.emacs.bugs Subject: bug#39564: Date: Sun, 1 Mar 2020 14:26:17 -0800 Message-ID: References: <20200211144941.godmcifegapmqg6i@Ergus> <83pndxerkg.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="19042"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 39564@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Mar 01 23:27:13 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 1j8X3G-0004o2-VP for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 01 Mar 2020 23:27:11 +0100 Original-Received: from localhost ([::1]:52672 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j8X3F-0003bE-V7 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 01 Mar 2020 17:27:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33762) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j8X39-0003b4-NB for bug-gnu-emacs@gnu.org; Sun, 01 Mar 2020 17:27:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j8X38-0003q1-H6 for bug-gnu-emacs@gnu.org; Sun, 01 Mar 2020 17:27:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59334) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j8X38-0003ps-Dt for bug-gnu-emacs@gnu.org; Sun, 01 Mar 2020 17:27:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j8X38-0001Vi-9s for bug-gnu-emacs@gnu.org; Sun, 01 Mar 2020 17:27:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Matt Kramer Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 01 Mar 2020 22:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39564 X-GNU-PR-Package: emacs Original-Received: via spool by 39564-submit@debbugs.gnu.org id=B39564.15831015965769 (code B ref 39564); Sun, 01 Mar 2020 22:27:02 +0000 Original-Received: (at 39564) by debbugs.gnu.org; 1 Mar 2020 22:26:36 +0000 Original-Received: from localhost ([127.0.0.1]:37074 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j8X2i-0001Uz-Cg for submit@debbugs.gnu.org; Sun, 01 Mar 2020 17:26:36 -0500 Original-Received: from mail-lf1-f48.google.com ([209.85.167.48]:33728) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j8X2g-0001Uj-FF for 39564@debbugs.gnu.org; Sun, 01 Mar 2020 17:26:35 -0500 Original-Received: by mail-lf1-f48.google.com with SMTP id c20so1739002lfb.0 for <39564@debbugs.gnu.org>; Sun, 01 Mar 2020 14:26:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wW50pqlX2MBE2hn1M+oWga4jNLwM8ax5vfYygPdVuo4=; b=bO52l6SS+y1b8ioRLLWqqSwDoNM8C4Qr0W/oGB7X7E++GepYIm4Wf1ObIy12OtzQ0j elrv+p9XvxBRMetqQfWAyF+g7n//Y2CON5t7ZRLYHGRir4R4aZiGopUEZEAxRDsH8AI9 XnIxp5dtWlb6MsKwmBOA3ssy0Ma16fHab8mIN3rTTy/9PUn46Jn3PaKR/Y6bSyzQ/ukU WmbBgAkAPb7Fa30qt3+jfLnX62UrLM4eabT8aEkaYCljUVa/G3xokrTsCPkueSJTf+7k AEAGZMV71IsPApib+4+zNQG/LiNXTreYr46zPydtx9c/edpDoz1+IlPhmDloLN0GmYuC oiDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=wW50pqlX2MBE2hn1M+oWga4jNLwM8ax5vfYygPdVuo4=; b=l2gTKK8s7tbWF20JxE0RXD+1CM83A71NkxDa2MODVdWRcJEkIGMLRQRXg0Aswm/VW9 DsVNdjpBys4UVVt8lO4I0GJQ7MnUBIPCf4DudDue4MUnWvx8FyDMzlwemmtvWs2MnN43 2zSwc9FF1+yHNuV4XI6l/iSm/fiizKc5iUXo3+BDinCCIWiJW/f636s1qySjd/x4z+vS P11HIWWK2S0thiKwKQlsXOhhYxm/jOqsJ7Tk5K0CdJwHDpjm1TYSMCbsKHsxJvYHJvr0 KlNIoqEkaTocXjx4mMMY0bLleXiffd76AGRlaF/XPDvYVlAjeHwbbBgUs1do+vKRk0vl BKgQ== X-Gm-Message-State: ANhLgQ3HLJjbrWPuWxVIHiyDpc8a2ECIjjPOIT5BKQOkx3V70RWMx713 3d0Vv8DtQg0NEb0o1zhdU/yHUcLCVJkPHuiwxu4= X-Google-Smtp-Source: ADFU+vvLHdQYTVknAaoKyVGXpTFsCMSKlZBLVu1ctwnw1AFoA4ZNeQVW19jCSenYVQuna1ghK1yO7ElFwf5HbHvkriY= X-Received: by 2002:a19:2396:: with SMTP id j144mr8521536lfj.113.1583101588286; Sun, 01 Mar 2020 14:26:28 -0800 (PST) In-Reply-To: <83pndxerkg.fsf@gnu.org> 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:176742 Archived-At: Thanks Eli for the explanation. Sorry for the trouble. It looks like Ivy (at least, in ivy-dispatching-done) assumes the old behavior, to wit, that echo-area messages will overwrite the minibuffer prompt, leading to the regression discussed in https://github.com/abo-abo/swiper/issues/2444. The conversation will continue over there, I guess. On Sat, Feb 29, 2020 at 12:17 AM Eli Zaretskii wrote: > > > From: Matt Kramer > > Date: Fri, 28 Feb 2020 09:33:57 -0800 > > > > Code I used: > > > > (defun make-lines (n) > > (mapconcat #'number-to-string > > (number-sequence 0 n) "\n")) > > > > (let ((map (make-sparse-keymap))) > > (define-key map (kbd "C-f") (lambda () > > (interactive) > > (let ((inhibit-field-text-motion t)) > > (goto-char (point-min))) > > (message "%S" > > (read-key > > (concat > > (make-lines 10) > > "\nTest2"))) > > (abort-recursive-edit))) > > (read-from-minibuffer (concat (make-lines 10) "\nTest1: ") nil map)) > > > > With this code in the clipboard, I start emacs -Q (again, 27.0.60 > > commit 75a9eee8b), and immediately hit the following sequence of keys: > > > > C-y > > M-x eval-buffer RET > > C-f > > > > The eval-buffer results are initially as expected. However, after > > hitting C-f, the minibuffer then becomes: > > > > 0 > > 1 > > 2 > > 3 > > 4 > > 5 > > 6 > > 7 > > 8 > > 9 > > 10 > > Test1: [0 > > 1 > > 2 > > 3 > > 4 > > > > with point at the very beginning of the minibuffer (first 0). > > Looks like the intended behavior for this code: the "[0 ..." part is > the text of the message displayed by the command bound to C-f; it is > enclosed in brackets to indicate that it is a message text separate > from the rest of the prompt. This display of echo-area messages that > attempts not to overwrite the minibuffer prompt in an active > minibuffer is a new feature of Emacs 27. By default, Emacs will not > let the mini-window grow enough to show the entire combined text of > the prompt and the message, but if you set max-mini-window-height to a > value 22 or greater, you will see this: > > 0 > 1 > 2 > 3 > 4 > 5 > 6 > 7 > 8 > 9 > 10 > Test1: [0 > 1 > 2 > 3 > 4 > 5 > 6 > 7 > 8 > 9 > 10 > Test2] > > which is what I would expect, given the code you presented. > > Going back to the original report, what is the bug here? > > Thanks.