From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#38457: 27.0.50; dabbrev-expand regression due to message change Date: Wed, 11 Dec 2019 05:40:34 +0200 Message-ID: <835zinbkct.fsf@gnu.org> References: <8736e3vve8.fsf@gmx.net> <8736e2coyv.fsf@mail.linkov.net> <83y2vujd0y.fsf@gnu.org> <87blspm0sm.fsf@mail.linkov.net> <837e3ckbem.fsf@gnu.org> <871rtjn0kt.fsf@mail.linkov.net> <83lfrrigj8.fsf@gnu.org> <87eexiqps5.fsf@mail.linkov.net> <83lfrphp94.fsf@gnu.org> <87wob7g2jk.fsf@mail.linkov.net> <83k177ebs0.fsf@gnu.org> <87muc27prn.fsf@mail.linkov.net> <83tv6acgq5.fsf@gnu.org> <87eexdoygh.fsf@mail.linkov.net> <83tv68c0nb.fsf@gnu.org> <83h828b0lz.fsf@gnu.org> <83eexcax6b.fsf@gnu.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="222241"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 38457@debbugs.gnu.org, monnier@iro.umontreal.ca, juri@linkov.net To: HaiJun Zhang Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 11 04:41:11 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 1iess9-000vfC-R0 for geb-bug-gnu-emacs@m.gmane.org; Wed, 11 Dec 2019 04:41:09 +0100 Original-Received: from localhost ([::1]:38376 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iess8-0005rk-M4 for geb-bug-gnu-emacs@m.gmane.org; Tue, 10 Dec 2019 22:41:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50254) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iess3-0005rP-22 for bug-gnu-emacs@gnu.org; Tue, 10 Dec 2019 22:41:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iess2-0005iS-2M for bug-gnu-emacs@gnu.org; Tue, 10 Dec 2019 22:41:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50850) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iess1-0005i7-Vv for bug-gnu-emacs@gnu.org; Tue, 10 Dec 2019 22:41:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iess1-000361-Rk for bug-gnu-emacs@gnu.org; Tue, 10 Dec 2019 22:41:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 Dec 2019 03:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38457 X-GNU-PR-Package: emacs Original-Received: via spool by 38457-submit@debbugs.gnu.org id=B38457.157603565311881 (code B ref 38457); Wed, 11 Dec 2019 03:41:01 +0000 Original-Received: (at 38457) by debbugs.gnu.org; 11 Dec 2019 03:40:53 +0000 Original-Received: from localhost ([127.0.0.1]:56823 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iesrt-00035Z-Gl for submit@debbugs.gnu.org; Tue, 10 Dec 2019 22:40:53 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39901) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iesrs-00035K-Dg for 38457@debbugs.gnu.org; Tue, 10 Dec 2019 22:40:52 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:36074) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iesrm-0005Fq-QF; Tue, 10 Dec 2019 22:40:46 -0500 Original-Received: from [176.228.60.248] (port=2691 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iesrm-0001h7-7y; Tue, 10 Dec 2019 22:40:46 -0500 In-reply-to: (message from HaiJun Zhang on Wed, 11 Dec 2019 11:24:37 +0800) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:173170 Archived-At: > Date: Wed, 11 Dec 2019 11:24:37 +0800 > From: HaiJun Zhang > Cc: 38457@debbugs.gnu.org, juri@linkov.net > > Display combination of the prompt and the message is good but may be complex to implement it. I explained in more detail how I suggested to implement thius: by inserting the minibuffer contents before the message text. What is complex about that? > What about display message transiently and then restore to prompt? > > I see the doc string of minibuffer-message-timeout says: > > How long to display an echo-area message when the minibuffer is active. > If the value is a number, it should be specified in seconds. > If the value is not a number, such messages never time out. > > If minibuffer is active, the message will be displayed for a moment(like 1s) and then disappears. > If minibuffer is not active, the message will be displayed forever. I think this is simpler and also good for me. > > What is the problem of this behaviour? This is what the current code does, and the problem with that is that some uses of 'message' don't expect the message to stay for 2 seconds, and some expect it to stay forever. This information is not explicit in the call to 'message', so there's no way of communicating in down to minibuffer-message.