From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: HaiJun Zhang Newsgroups: gmane.emacs.bugs Subject: bug#38457: 27.0.50; dabbrev-expand regression due to message change Date: Wed, 11 Dec 2019 11:59:48 +0800 Message-ID: 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> <835zinbkct.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="5df069b9_4f97e3e4_422" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="39853"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 38457@debbugs.gnu.org, monnier@iro.umontreal.ca, juri@linkov.net To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 11 05:01:28 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 1ietBn-000AD3-37 for geb-bug-gnu-emacs@m.gmane.org; Wed, 11 Dec 2019 05:01:27 +0100 Original-Received: from localhost ([::1]:38462 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ietBl-0007t2-QM for geb-bug-gnu-emacs@m.gmane.org; Tue, 10 Dec 2019 23:01:25 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56999) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ietBP-0007qI-Ee for bug-gnu-emacs@gnu.org; Tue, 10 Dec 2019 23:01:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ietBN-0005N6-VB for bug-gnu-emacs@gnu.org; Tue, 10 Dec 2019 23:01:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50855) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ietBN-0005Mo-Qw for bug-gnu-emacs@gnu.org; Tue, 10 Dec 2019 23:01:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ietBN-0003iz-Ox for bug-gnu-emacs@gnu.org; Tue, 10 Dec 2019 23:01:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: HaiJun Zhang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 Dec 2019 04:01: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.157603680814171 (code B ref 38457); Wed, 11 Dec 2019 04:01:01 +0000 Original-Received: (at 38457) by debbugs.gnu.org; 11 Dec 2019 04:00:08 +0000 Original-Received: from localhost ([127.0.0.1]:56828 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ietAW-0003gQ-6N for submit@debbugs.gnu.org; Tue, 10 Dec 2019 23:00:08 -0500 Original-Received: from mail-oln040092253035.outbound.protection.outlook.com ([40.92.253.35]:4736 helo=APC01-SG2-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ietAT-0003e7-It for 38457@debbugs.gnu.org; Tue, 10 Dec 2019 23:00:06 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Awd8oycPYQu1tEwW8GVPGO7h9+X13mD9nhEuOPVmIChtqiO/KXh2EP1ZKet/2y2Mn1NkcBcjP55QATn3Lci2Wvk/m4YNMS3DZpkL9M2z9YTxChwn7xq3POFmdAzG1aIiit2mxcWOw3XhXzu6OUV7L7QhVwF4Q/ToN7RlhkWWsFZDDYTFwGQlMM9zP3bmS80nrEO6g41sujJLcqKAPFqutpBQ450vq1AUg6imoUjJtofvRr3p2gow85MlOjlNFiOcWjGZVv+X66SIa7YAXQgTbK1qgyWZagE5wfRC9epVUwlVIq/iNFtGDE0luuZr2LX58Aaty7tao5PIGYjhWnzKKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=EMfBMNWTVWMT7alIe+lG4y2gyl+eJphUjR0BaULqT1I=; b=aF+EjciIGA9C1XRBYu2aVcKknHEC2CCeUrclftctJCodAEJW47o2h+ZGj3gz8eZ7aoftR67qWlnJ7Ruh1Sk/V1BmOzL7MeI4OHbZBxEamDoTAp4gOmoKDNqOpJUq97czMNx7HHTrt18LjJHCAVR8u0u8y4p3SEwuk65pjX+9+hNsOBBjTrz6bCIN1lHGyROoQVXv/xe3BNvEn11+SpmlWtSAna5d8KolW8Zm72zCsFwim43qwaw63MfP6tzb9JJYnzLYwq8BmQUGfoMePz+aIeji7qzxevLhEWkQMVr1mWMgIYlzHSZ8FgY3sgICqzIIKJpgnzWUM5p55yv7LHFjaw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=outlook.com; dmarc=pass action=none header.from=outlook.com; dkim=pass header.d=outlook.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=EMfBMNWTVWMT7alIe+lG4y2gyl+eJphUjR0BaULqT1I=; b=VKbVa/nQYKMSnK3aImwUoXCLrq/liGASk8ejtacGj4diRqMzAj3EvE32+aNRUi8fBiCYA534hAyh4ugeyYzwL8XQQRobZbGY+BKfyx3jmdmqYIh2MJhbrPbTbqLMTySBayLYeVy1Vui2+t1fZSEqVQVdUr17eoc2uqff/PI3Pfv32idP4dHMgdTS6/ruTJDUV/u4bd/lI499rsHu5808Y3k5njhWY1+Wo/7hhJ9DOlySjBg6RfVAAuq0NyBySiKca2Ndcl+rMwXAeW56W6xupmn/Wlx9w1rYX1YwT8w5ydvBwaqMTP5xT7JENW7F487U42hVBu/d9nO6f/VeFKP3zQ== Original-Received: from HK2APC01FT061.eop-APC01.prod.protection.outlook.com (10.152.248.51) by HK2APC01HT109.eop-APC01.prod.protection.outlook.com (10.152.249.110) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2495.25; Wed, 11 Dec 2019 03:59:57 +0000 Original-Received: from PS1PR03MB3606.apcprd03.prod.outlook.com (10.152.248.56) by HK2APC01FT061.mail.protection.outlook.com (10.152.249.105) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2495.25 via Frontend Transport; Wed, 11 Dec 2019 03:59:57 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:C96D1960B86ABFA99CE7D6FCE1C9FD59395985057F78BB8F37EE96416DD6007E; UpperCasedChecksum:A0853E21D9AAEE9883757C8D2BE4FC92CA88F0558C0230E8599425DD2351AA99; SizeAsReceived:9354; Count:48 Original-Received: from PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::b05a:28e4:205a:d7d4]) by PS1PR03MB3606.apcprd03.prod.outlook.com ([fe80::b05a:28e4:205a:d7d4%5]) with mapi id 15.20.2538.012; Wed, 11 Dec 2019 03:59:57 +0000 In-Reply-To: <835zinbkct.fsf@gnu.org> X-Readdle-Message-ID: 18306602-f41e-46b2-9407-ea9a55548b67@Spark X-ClientProxiedBy: HK0PR01CA0069.apcprd01.prod.exchangelabs.com (2603:1096:203:a6::33) To PS1PR03MB3606.apcprd03.prod.outlook.com (2603:1096:803:4e::17) X-Microsoft-Original-Message-ID: <18306602-f41e-46b2-9407-ea9a55548b67@Spark> Original-Received: from [192.168.1.103] (1.199.222.221) by HK0PR01CA0069.apcprd01.prod.exchangelabs.com (2603:1096:203:a6::33) with Microsoft SMTP Server (version=TLS1_2, cipher=) via Frontend Transport; Wed, 11 Dec 2019 03:59:56 +0000 X-Readdle-Message-ID: 18306602-f41e-46b2-9407-ea9a55548b67@Spark X-Microsoft-Original-Message-ID: <18306602-f41e-46b2-9407-ea9a55548b67@Spark> X-TMN: [eJ9oMfq20lzRAsPcVOwt/ucvcRlwq8ju] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 2cc8ab6f-e2f8-435c-2363-08d77dee9602 X-MS-TrafficTypeDiagnostic: HK2APC01HT109: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: E8UpgO26JSkBvwwEuEbcvaGSDYoEw4QeD5hP8Xu18V5UhNx0UVz3DQim/Un7/nRXQcfOQ8EvmqsAObzW0/fPJBg9+4+LqWn0pzETRh8YlhDy124PWQvQIC+AusRTBHl8wPnM81Pby3Fo0v7XAbTwTas26xBM3rxjSJNNVk5qn9JWogMeuRyxNgSxMsPTRRVU X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2cc8ab6f-e2f8-435c-2363-08d77dee9602 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Dec 2019 03:59:57.0864 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK2APC01HT109 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:173171 Archived-At: --5df069b9_4f97e3e4_422 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =E5=9C=A8 2019=E5=B9=B412=E6=9C=8811=E6=97=A5 +0800 AM11:40=EF=BC=8CEli Z= aretskii =EF=BC=8C=E5=86=99=E9=81=93=EF=BC=9A > 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=3F > Because=C2=A0resize-mini-windows may be nil. And the message may be invis= ible. Another question: When emacs displays combination of the prompt and the message, if user in= put something, doesn=E2=80=99t the message disappears=3F > > This is what the current code does, The current code doesn=E2=80=99t display the message transiently. It disp= lays it forever. User needs to press a key to restore to the prompt. Is t= his a bug=3F > 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. Do you mean the scene =E2=80=9C=46oo=E2=80=A6=E2=80=9D followed by =E2=80= =9C=46oo=E2=80=A6done=E2=80=9D=3F I don=E2=80=99t think this is a problem. These are just status which are = not important. And they disappears quickly when user is busy editing. And= the really important ones may put an indicator on the mode-line. --5df069b9_4f97e3e4_422 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
=E5=9C=A8 2019=E5=B9=B412=E6=9C=8811=E6= =97=A5 +0800 AM11:40=EF=BC=8CEli Zaretskii <eliz@gnu.org>=EF=BC= =8C=E5=86=99=E9=81=93=EF=BC=9A
I explained in more de= tail how I suggested to implement thius: by
inserting the minibuffer contents before the message text. What is
complex about that?


Because resize-mini-windows may be nil. And the message may be invisib= le.

Another question: 
When emacs displays combination of the prompt and the mes= sage, if user input something, doesn=E2=80=99t the message disappears?


This is what the current code does,  

The current= code doesn=E2=80=99t display the message transiently. It displays it forev= er. User needs to press a key to restore to the prompt. Is this a bug?

=
and the problem with t= hat 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. 

Do you mean the scene =E2=80=9CFoo=E2=80=A6=E2=80=9D foll= owed by =E2=80=9CFoo=E2=80=A6done=E2=80=9D?
I don=E2=80=99t think this is a problem. These are just s= tatus which are not important. And they disappears quickly when user is bus= y editing. And the really important ones may put an indicator on the mode-l= ine.




--5df069b9_4f97e3e4_422--