From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#17272: bug#19064: bug#17272: bug#19064: 25.0.50; `message' overwrites `y-or-n-p' prompt, so user misses it Date: Wed, 27 Nov 2019 01:44:49 +0200 Organization: LINKOV.NET Message-ID: <87k17myzgu.fsf@mail.linkov.net> References: <8ea0a3fa-5169-4493-bd54-3ebe47836a35@default> <87o8ys3131.fsf@gnus.org> <875zjx6hs6.fsf@mail.linkov.net> <87sgmy3x22.fsf@gnus.org> <871rugbqmy.fsf@mail.linkov.net> <87d0dxyh7z.fsf@gnus.org> <53c55db5-d623-4946-af2e-d141e7bc7acd@default> <87sgmrpir5.fsf@web.de> <87mucya2a7.fsf@web.de> <87mucy4cb2.fsf@web.de> <621b98dc-0fe9-4eef-9e11-7580fb446e97@default> <87k1822ocn.fsf@web.de> <87lfsfmtk0.fsf@mail.linkov.net> <874kz3gibu.fsf@gnus.org> <87bltaw3xz.fsf@mail.linkov.net> <87r224x54p.fsf@mail.linkov.net> <87v9rgnv0o.fsf@gnus.org> <878sobqxb4.fsf@mail.linkov.net> <87h82u5rce.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="28417"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: Michael Heerdegen , 17272@debbugs.gnu.org, 19064@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 27 00:46:25 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 1iZkXJ-00076P-5U for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Nov 2019 00:46:25 +0100 Original-Received: from localhost ([::1]:60154 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iZkX6-00021b-NH for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Nov 2019 18:46:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37411) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iZkWx-000217-Ut for bug-gnu-emacs@gnu.org; Tue, 26 Nov 2019 18:46:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iZkWw-00042J-PQ for bug-gnu-emacs@gnu.org; Tue, 26 Nov 2019 18:46:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47221) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iZkWw-000423-CE for bug-gnu-emacs@gnu.org; Tue, 26 Nov 2019 18:46:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iZkWw-0002Ya-7f for bug-gnu-emacs@gnu.org; Tue, 26 Nov 2019 18:46:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 26 Nov 2019 23:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17272 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 17272-submit@debbugs.gnu.org id=B17272.15748119499791 (code B ref 17272); Tue, 26 Nov 2019 23:46:02 +0000 Original-Received: (at 17272) by debbugs.gnu.org; 26 Nov 2019 23:45:49 +0000 Original-Received: from localhost ([127.0.0.1]:53190 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iZkWj-0002Xq-Bj for submit@debbugs.gnu.org; Tue, 26 Nov 2019 18:45:49 -0500 Original-Received: from bisque.elm.relay.mailchannels.net ([23.83.212.18]:59073) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iZkWh-0002Xb-6v; Tue, 26 Nov 2019 18:45:48 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id AFEBB3C03FC; Tue, 26 Nov 2019 23:45:45 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a89.g.dreamhost.com (100-96-196-51.trex.outbound.svc.cluster.local [100.96.196.51]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 3C6DE3C0E2A; Tue, 26 Nov 2019 23:45:45 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a89.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.5); Tue, 26 Nov 2019 23:45:45 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Abortive-Thoughtful: 3490123a313364fd_1574811945508_3336283732 X-MC-Loop-Signature: 1574811945508:3337926579 X-MC-Ingress-Time: 1574811945508 Original-Received: from pdx1-sub0-mail-a89.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a89.g.dreamhost.com (Postfix) with ESMTP id CA6D3A4162; Tue, 26 Nov 2019 15:45:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=linkov.net; bh=CGzP40 4HivKj6lLsOsaPEa5xALQ=; b=xK3zoYuU+Aim253W43ZBtxLFI3I3Rk8vpll9ft 5bUCUcaQY33/8Wn2J/KO/vrQoNBkgIoZwm54A07NhP7fFkVVhIxvGTr3Vaz6JHip 5Y/9fuK16OCerf2Q5Knzb6Fiw2rSlJM4zBn0EQYujZ42QAo0G3qcFPxtN01UWuE+ oyd74= Original-Received: from mail.jurta.org (m91-129-96-42.cust.tele2.ee [91.129.96.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a89.g.dreamhost.com (Postfix) with ESMTPSA id DEAB4A4160; Tue, 26 Nov 2019 15:45:36 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a89 In-Reply-To: <87h82u5rce.fsf@mail.linkov.net> (Juri Linkov's message of "Sat, 23 Nov 2019 23:54:01 +0200") 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:172505 Archived-At: tags 17272 fixed tags 19064 fixed close 17272 27.0.50 close 19064 27.0.50 quit >>>> The variable name is =E2=80=98message-in-echo-area=E2=80=99. After = a little testing, >>>> it seems to handle all such cases well: >>> >>> I have not tested the patch, but it looks good to me. >> >> Actually this patch needs more testing. I found already >> two cases that might be annoying. Better to anticipate >> a possible angry reaction and fix these cases in advance. > > After more testing, at least all noticed problems are fixed > with this patch (it also reverts previous commits that > added minibuffer-message and that is not needed anymore): This patch is installed now, and the bug report is closed. It also fixed long-standing annoyance of using query-replace in the minib= uffer. Previously the query-replace prompt completely obscured the replaced text= . Now the query-replace prompt is displayed at the end of the minibuffer, so the replaced text is visible in the minibuffer. The requested NEWS and Info manual changes were installed as well: diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi index ddbae40ac9..b5990130c6 100644 --- a/doc/lispref/display.texi +++ b/doc/lispref/display.texi @@ -276,11 +276,13 @@ Displaying Messages When @code{inhibit-message} is non-@code{nil}, no message will be displa= yed in the echo area, it will only be logged to @samp{*Messages*}. =20 +If the minibuffer is active, it uses the @code{minibuffer-message} +function to display the message temporarily at the end of the +minibuffer (@pxref{Minibuffer Misc}). + If @var{format-string} is @code{nil} or the empty string, @code{message} clears the echo area; if the echo area has been -expanded automatically, this brings it back to its normal size. If -the minibuffer is active, this brings the minibuffer contents back -onto the screen immediately. +expanded automatically, this brings it back to its normal size. =20 @example @group diff --git a/etc/NEWS b/etc/NEWS index 7a51106add..48ad1a299a 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -724,6 +724,10 @@ the minibuffer. If non-nil, point will move to the = end of the prompt *** Minibuffer now uses 'minibuffer-message' to display error messages at the end of the active minibuffer. =20 ++++ +*** The function 'message' now displays the message at the end of the mi= nibuffer +when the minibuffer is active. + +++ *** 'y-or-n-p' now uses the minibuffer to read 'y' or 'n' answer. =20