GNU bug report logs - #38457
27.0.50; dabbrev-expand regression due to message change

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Stephen Berman <stephen.berman@HIDDEN>; dated Mon, 2 Dec 2019 11:08:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 38457 <at> debbugs.gnu.org:


Received: (at 38457) by debbugs.gnu.org; 8 Dec 2019 03:03:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Dec 07 22:03:05 2019
Received: from localhost ([127.0.0.1]:50121 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1idmqf-0002D8-GJ
	for submit <at> debbugs.gnu.org; Sat, 07 Dec 2019 22:03:05 -0500
Received: from antelope.elm.relay.mailchannels.net ([23.83.212.4]:38718)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1idmqd-0002CL-0A
 for 38457 <at> debbugs.gnu.org; Sat, 07 Dec 2019 22:03:03 -0500
X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN
Received: from relay.mailchannels.net (localhost [127.0.0.1])
 by relay.mailchannels.net (Postfix) with ESMTP id E677D2C1286;
 Sat,  7 Dec 2019 23:39:57 +0000 (UTC)
Received: from pdx1-sub0-mail-a14.g.dreamhost.com
 (100-96-86-105.trex.outbound.svc.cluster.local [100.96.86.105])
 (Authenticated sender: dreamhost)
 by relay.mailchannels.net (Postfix) with ESMTPA id 67ECC2C074A;
 Sat,  7 Dec 2019 23:39:57 +0000 (UTC)
X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN
Received: from pdx1-sub0-mail-a14.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); Sat, 07 Dec 2019 23:39:57 +0000
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|jurta@HIDDEN
X-MailChannels-Auth-Id: dreamhost
X-Skirt-Desert: 02703e6a2fc2c37b_1575761997652_87938588
X-MC-Loop-Signature: 1575761997652:3519119599
X-MC-Ingress-Time: 1575761997651
Received: from pdx1-sub0-mail-a14.g.dreamhost.com (localhost [127.0.0.1])
 by pdx1-sub0-mail-a14.g.dreamhost.com (Postfix) with ESMTP id DE7778640C;
 Sat,  7 Dec 2019 15:39:56 -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=MXTUtr
 BAy8i8lk2b+RPwV/npUy8=; b=HXBAnrV8ijqoX7htSvnVW9ptR7SzRwyGMsoX1p
 XzNx/M8pfV7Wu+REaOUth52PgP62OGkXTB5cAeNDu8quZQSEeN11wdngXeT5EgaY
 0uekmBv1kZqGJxqojypgHDSNBzOb07sywCcHnQlBR18MVnOzBn5uTXagUE+Kx8s8
 9F9So=
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@HIDDEN)
 by pdx1-sub0-mail-a14.g.dreamhost.com (Postfix) with ESMTPSA id D42F3863FF;
 Sat,  7 Dec 2019 15:39:54 -0800 (PST)
X-DH-BACKEND: pdx1-sub0-mail-a14
From: Juri Linkov <juri@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#38457: 27.0.50; dabbrev-expand regression due to message
 change
Organization: LINKOV.NET
References: <8736e3vve8.fsf@HIDDEN> <8736e2coyv.fsf@HIDDEN>
 <83y2vujd0y.fsf@HIDDEN> <87blspm0sm.fsf@HIDDEN>
 <837e3ckbem.fsf@HIDDEN> <871rtjn0kt.fsf@HIDDEN>
 <83lfrrigj8.fsf@HIDDEN> <87eexiqps5.fsf@HIDDEN>
 <83lfrphp94.fsf@HIDDEN>
Date: Sun, 08 Dec 2019 01:05:03 +0200
In-Reply-To: <83lfrphp94.fsf@HIDDEN> (Eli Zaretskii's message of "Fri, 06 Dec
 2019 09:44:39 +0200")
Message-ID: <87wob7g2jk.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
X-VR-OUT-STATUS: OK
X-VR-OUT-SCORE: -100
X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedufedrudekiedguddvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgfgsehtkeertddtredunecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledrleeirdegvdenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrdeliedrgedvpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtohepvghlihiisehgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptd
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 38457
Cc: 38457 <at> debbugs.gnu.org, stephen.berman@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>> > That is why I suggest to find a simpler, safer solution for that iss=
ue
>> > now, and if you insist on using a timer (which I personally consider
>> > not a good idea), then do this after the release branch is cut.
>>=20
>> Using a timer is the right thing to do, there is no simpler solution,
>> it solves all problems.
>
> Sorry, I object to installing a timer-based solution at this time.  It
> is too radical and is likely to cause numerous unintended consequences
> all over the place.
>
> I just suggested another possible solution: bind
> 'minibuffer-message-timeout' to zero when calling 'minibuffer-message'
> from 'message'.  Would that work, or will it have some unwanted side
> effects?

K=E9vin posted a patch that binds 'minibuffer-message-timeout' to zero, b=
ut
it makes each message disappear before the user has a chance to read it.

With a timer-based approach each message disappears too, except
the last message that the user has a chance to read.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#38457; Package emacs. Full text available.

Message received at 38457 <at> debbugs.gnu.org:


Received: (at 38457) by debbugs.gnu.org; 6 Dec 2019 17:15:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Dec 06 12:15:38 2019
Received: from localhost ([127.0.0.1]:46994 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1idHCc-00008c-Aj
	for submit <at> debbugs.gnu.org; Fri, 06 Dec 2019 12:15:38 -0500
Received: from mail-wm1-f53.google.com ([209.85.128.53]:35627)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <kevin.legouguec@HIDDEN>) id 1idHCY-00007c-Oi
 for 38457 <at> debbugs.gnu.org; Fri, 06 Dec 2019 12:15:35 -0500
Received: by mail-wm1-f53.google.com with SMTP id c20so6626372wmb.0
 for <38457 <at> debbugs.gnu.org>; Fri, 06 Dec 2019 09:15:34 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=NAB8AaCs6YJjFAkrTe8eY5uub0BqF31A00O1ZcQ8ymo=;
 b=bfsTHn9G7UKFc70G1tiniCngvA2p3vJunp8IFp95iWVLWXn7nVut1Ib1NeNWThkV8v
 eI2TvaTPupqZqk3Zw9S/CdgPnlKu5Ps8Yy51FVTnCY85axTOf1UQkTFcjZSoIUwGwWyN
 /1HwRilD2CSKS91vDjUxM6XTVUh4VdB1UEIWCkIOhseMjahh+xAuxKOoYjoY7kj0ccHm
 z2p8iOnAvaX2wpMJycODCqA3C+8beI37SNQGe0NuQCXqn8icm83AXtPKx6pXfJVcGc8l
 RO+4VVwX7nOr2Y79HI0ajHlh3AEDvakRw27pLFPg/oxHpONBFLw45rU40Aqd+ej0JDCB
 uVRA==
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:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=NAB8AaCs6YJjFAkrTe8eY5uub0BqF31A00O1ZcQ8ymo=;
 b=fHXGbPxY0n75eWLWTmAx6friHQ4tiLPcX9fAPSw/B8iJRCgKXSoJAqKqeqdi/BOsyo
 2yDji8c+myuZAiu8SKk7aGTNJ3v6W4sH0BbX55XkJ57M4JHNlhAH4h7wMT64t94yQEL+
 eP/9QVOOorQ9+JbFtWh066Ufg9WVDoNckICtBM1pfO5UuHro5Dpvh7eBJsj/AfR0B4pE
 aNwvh0HSvbQPIklLg3l0pLL5thwuY6SsooplrpR16eoBXYWDD9cvPJ6l/S05P18wuZqC
 9FrwsrElzKOj/FSsvWPvwcj0X1n+knxOKsGqIIoVCtrQHDFz7scrahQCHWXpgdpvvA6o
 OYCA==
X-Gm-Message-State: APjAAAUoerApFz3SQbQ61phs118DXkVsdOTUMtIlkRipcqlh6O3LLh+d
 2N4xYGf3+V4hUSI949MvbvU=
X-Google-Smtp-Source: APXvYqzQmi7irTTtsSxC7OpB7/vCwg9i/GqbJkezEzC+lG6htFRWsFMxGzGeSkv9SPRNn+98C2WjOA==
X-Received: by 2002:a05:600c:cd:: with SMTP id
 u13mr11732013wmm.24.1575652528867; 
 Fri, 06 Dec 2019 09:15:28 -0800 (PST)
Received: from little-buster
 (2a01cb04010fc800344a427cd486b589.ipv6.abo.wanadoo.fr.
 [2a01:cb04:10f:c800:344a:427c:d486:b589])
 by smtp.gmail.com with ESMTPSA id t13sm4161526wmt.23.2019.12.06.09.15.27
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 06 Dec 2019 09:15:27 -0800 (PST)
From: =?utf-8?Q?K=C3=A9vin_Le_Gouguec?= <kevin.legouguec@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#38457: 27.0.50; dabbrev-expand regression due to message
 change
References: <8736e3vve8.fsf@HIDDEN> <8736e2coyv.fsf@HIDDEN>
 <83y2vujd0y.fsf@HIDDEN> <87blspm0sm.fsf@HIDDEN>
 <837e3ckbem.fsf@HIDDEN> <87y2vqaj8n.fsf@HIDDEN>
 <87o8wmqpvd.fsf@HIDDEN> <83muc5hpds.fsf@HIDDEN>
Date: Fri, 06 Dec 2019 18:15:27 +0100
In-Reply-To: <83muc5hpds.fsf@HIDDEN> (Eli Zaretskii's message of "Fri, 06 Dec
 2019 09:41:51 +0200")
Message-ID: <87immtwf2o.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 38457
Cc: 38457 <at> debbugs.gnu.org, stephen.berman@HIDDEN,
 Juri Linkov <juri@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--=-=-=
Content-Type: text/plain

Eli Zaretskii <eliz@HIDDEN> writes:

> One possibility is for 'message' to bind 'minibuffer-message-timeout'
> to zero when it calls 'minibuffer-message'.  Would this work in all
> the use cases discovered to day?

FWIW the following patch does remove the delay before {the dabbrev
expansion shows up,TRAMP proceeds with each step}:


--=-=-=
Content-Type: text/x-diff
Content-Disposition: inline; filename=minibuffer-message-timeout.patch

diff --git a/src/editfns.c b/src/editfns.c
index 72a9cdba7a..3ee00fcc1b 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -2895,6 +2895,8 @@ accent (\\=`) and apostrophe (\\=') are special in the format; see
 
       /* Avoid possible recursion.  */
       specbind (Qmessage_in_echo_area, Qt);
+      /* Do not delay callers (bug#38457).  */
+      specbind (intern ("minibuffer-message-timeout"), INT_TO_INTEGER (0));
 
       record_unwind_current_buffer ();
       Fset_buffer (Fwindow_buffer (Fold_selected_window ()));

--=-=-=
Content-Type: text/plain


Though that makes each message flicker briefly and disappear before the
user has a chance to read it.

--=-=-=--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#38457; Package emacs. Full text available.

Message received at 38457 <at> debbugs.gnu.org:


Received: (at 38457) by debbugs.gnu.org; 6 Dec 2019 16:15:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Dec 06 11:15:46 2019
Received: from localhost ([127.0.0.1]:46935 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1idGGg-00052w-8u
	for submit <at> debbugs.gnu.org; Fri, 06 Dec 2019 11:15:46 -0500
Received: from eggs.gnu.org ([209.51.188.92]:57070)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1idGGa-000512-M4
 for 38457 <at> debbugs.gnu.org; Fri, 06 Dec 2019 11:15:42 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:43248)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1idGGQ-0007DI-3O; Fri, 06 Dec 2019 11:15:31 -0500
Received: from [176.228.60.248] (port=4550 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1id8FN-00016O-HJ; Fri, 06 Dec 2019 02:41:54 -0500
Date: Fri, 06 Dec 2019 09:41:51 +0200
Message-Id: <83muc5hpds.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Juri Linkov <juri@HIDDEN>
In-reply-to: <87o8wmqpvd.fsf@HIDDEN> (message from Juri Linkov on
 Fri, 06 Dec 2019 02:06:30 +0200)
Subject: Re: bug#38457: 27.0.50; dabbrev-expand regression due to message
 change
References: <8736e3vve8.fsf@HIDDEN> <8736e2coyv.fsf@HIDDEN>
 <83y2vujd0y.fsf@HIDDEN> <87blspm0sm.fsf@HIDDEN>
 <837e3ckbem.fsf@HIDDEN> <87y2vqaj8n.fsf@HIDDEN>
 <87o8wmqpvd.fsf@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 38457
Cc: 38457 <at> debbugs.gnu.org, stephen.berman@HIDDEN, kevin.legouguec@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Juri Linkov <juri@HIDDEN>
> Cc: Eli Zaretskii <eliz@HIDDEN>,  38457 <at> debbugs.gnu.org,
>   stephen.berman@HIDDEN
> Date: Fri, 06 Dec 2019 02:06:30 +0200
> 
> > I think the regression Stephen noticed is more widespread than just
> > dabbrev-expand: e.g. TRAMP is also affected[1].
> 
> I know that TRAMP is affected.  I had no time to address this before, sorry,
> but now this is fixed by the previous patch I sent 3 days ago that uses a timer.

We need to fix this without a timer, and we need to fix this before
the emacs-27 branch is cut.

One possibility is for 'message' to bind 'minibuffer-message-timeout'
to zero when it calls 'minibuffer-message'.  Would this work in all
the use cases discovered to day?

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#38457; Package emacs. Full text available.

Message received at 38457 <at> debbugs.gnu.org:


Received: (at 38457) by debbugs.gnu.org; 6 Dec 2019 16:15:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Dec 06 11:15:45 2019
Received: from localhost ([127.0.0.1]:46929 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1idGGf-00052S-1v
	for submit <at> debbugs.gnu.org; Fri, 06 Dec 2019 11:15:45 -0500
Received: from eggs.gnu.org ([209.51.188.92]:57056)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1idGGa-000510-Ld
 for 38457 <at> debbugs.gnu.org; Fri, 06 Dec 2019 11:15:41 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:43179)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1idGGQ-00026X-3O; Fri, 06 Dec 2019 11:15:31 -0500
Received: from [176.228.60.248] (port=4720 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1id8I4-0001Dp-2Z; Fri, 06 Dec 2019 02:44:40 -0500
Date: Fri, 06 Dec 2019 09:44:39 +0200
Message-Id: <83lfrphp94.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Juri Linkov <juri@HIDDEN>
In-reply-to: <87eexiqps5.fsf@HIDDEN> (message from Juri Linkov on
 Fri, 06 Dec 2019 02:10:20 +0200)
Subject: Re: bug#38457: 27.0.50; dabbrev-expand regression due to message
 change
References: <8736e3vve8.fsf@HIDDEN> <8736e2coyv.fsf@HIDDEN>
 <83y2vujd0y.fsf@HIDDEN> <87blspm0sm.fsf@HIDDEN>
 <837e3ckbem.fsf@HIDDEN> <871rtjn0kt.fsf@HIDDEN>
 <83lfrrigj8.fsf@HIDDEN> <87eexiqps5.fsf@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 38457
Cc: 38457 <at> debbugs.gnu.org, stephen.berman@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Juri Linkov <juri@HIDDEN>
> Cc: stephen.berman@HIDDEN,  38457 <at> debbugs.gnu.org
> Date: Fri, 06 Dec 2019 02:10:20 +0200
> 
> > That is why I suggest to find a simpler, safer solution for that issue
> > now, and if you insist on using a timer (which I personally consider
> > not a good idea), then do this after the release branch is cut.
> 
> Using a timer is the right thing to do, there is no simpler solution,
> it solves all problems.

Sorry, I object to installing a timer-based solution at this time.  It
is too radical and is likely to cause numerous unintended consequences
all over the place.

I just suggested another possible solution: bind
'minibuffer-message-timeout' to zero when calling 'minibuffer-message'
from 'message'.  Would that work, or will it have some unwanted side
effects?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#38457; Package emacs. Full text available.

Message received at 38457 <at> debbugs.gnu.org:


Received: (at 38457) by debbugs.gnu.org; 6 Dec 2019 00:19:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 05 19:19:52 2019
Received: from localhost ([127.0.0.1]:45419 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1id1Lc-0005aQ-00
	for submit <at> debbugs.gnu.org; Thu, 05 Dec 2019 19:19:52 -0500
Received: from crocodile.birch.relay.mailchannels.net ([23.83.209.45]:41221)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1id1La-0005aI-35
 for 38457 <at> debbugs.gnu.org; Thu, 05 Dec 2019 19:19:50 -0500
X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN
Received: from relay.mailchannels.net (localhost [127.0.0.1])
 by relay.mailchannels.net (Postfix) with ESMTP id D3D98600DE3;
 Fri,  6 Dec 2019 00:19:48 +0000 (UTC)
Received: from pdx1-sub0-mail-a86.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 4850D600E7F;
 Fri,  6 Dec 2019 00:19:48 +0000 (UTC)
X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN
Received: from pdx1-sub0-mail-a86.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); Fri, 06 Dec 2019 00:19:48 +0000
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|jurta@HIDDEN
X-MailChannels-Auth-Id: dreamhost
X-Minister-Broad: 62e7d84676456e16_1575591588521_1372636722
X-MC-Loop-Signature: 1575591588521:2217652652
X-MC-Ingress-Time: 1575591588521
Received: from pdx1-sub0-mail-a86.g.dreamhost.com (localhost [127.0.0.1])
 by pdx1-sub0-mail-a86.g.dreamhost.com (Postfix) with ESMTP id B42F5823AB;
 Thu,  5 Dec 2019 16:19:45 -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; s=linkov.net; bh=d6aDJZljiWf9pffBvLumeZIG49A=; b=
 w711HIVAwTUQhzIgR0xjPaUfSIMEK9xvlvsxdFRoc6eTa+J8owGyRsUg5Fu60IzV
 Wclw3soqllm5CjCADIdENNurddKuzMsWJrYjcVtF0PBUBs33dmap4t1+kEb9WcAG
 W7u7QnKmpdGhBrvoJKC2Eybof0dSoaBf4SSJTHOjRho=
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@HIDDEN)
 by pdx1-sub0-mail-a86.g.dreamhost.com (Postfix) with ESMTPSA id C1E3C823B9;
 Thu,  5 Dec 2019 16:19:43 -0800 (PST)
X-DH-BACKEND: pdx1-sub0-mail-a86
From: Juri Linkov <juri@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#38457: 27.0.50; dabbrev-expand regression due to message
 change
Organization: LINKOV.NET
References: <8736e3vve8.fsf@HIDDEN> <8736e2coyv.fsf@HIDDEN>
 <83y2vujd0y.fsf@HIDDEN> <87blspm0sm.fsf@HIDDEN>
 <837e3ckbem.fsf@HIDDEN> <871rtjn0kt.fsf@HIDDEN>
 <83lfrrigj8.fsf@HIDDEN>
Date: Fri, 06 Dec 2019 02:10:20 +0200
In-Reply-To: <83lfrrigj8.fsf@HIDDEN> (Eli Zaretskii's message of "Thu, 05 Dec
 2019 05:43:07 +0200")
Message-ID: <87eexiqps5.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 38457
Cc: 38457 <at> debbugs.gnu.org, stephen.berman@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>> > Let's not rock the boat too much so close to the release cycle because
>> > of a very minor problem which caused these changes.  You may not see
>> > any problems with it now, but I'm certain we will bump into numerous
>> > problems very soon if we make such significant changes in this
>> > infrastructure, which is used everywhere in Emacs.
>>
>> There may be a misunderstanding here.  I was talking about the
>> changes for development in master, not for the release branch.
>> If you think it would be too risky to release with these changes,
>> then fine, these changes could be removed in the release branch.
>
> The master branch will become the release branch very soon.  If you
> want to wait with these changes after the emacs-27 branch is cut, it's
> fine by me, but we need to solve the issue with dabbrev-expand for the
> release branch as well.
>
> That is why I suggest to find a simpler, safer solution for that issue
> now, and if you insist on using a timer (which I personally consider
> not a good idea), then do this after the release branch is cut.

Using a timer is the right thing to do, there is no simpler solution,
it solves all problems.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#38457; Package emacs. Full text available.

Message received at 38457 <at> debbugs.gnu.org:


Received: (at 38457) by debbugs.gnu.org; 6 Dec 2019 00:19:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 05 19:19:46 2019
Received: from localhost ([127.0.0.1]:45416 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1id1LW-0005a6-NN
	for submit <at> debbugs.gnu.org; Thu, 05 Dec 2019 19:19:46 -0500
Received: from fossa.birch.relay.mailchannels.net ([23.83.209.62]:23264)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1id1LV-0005Zy-69
 for 38457 <at> debbugs.gnu.org; Thu, 05 Dec 2019 19:19:45 -0500
X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN
Received: from relay.mailchannels.net (localhost [127.0.0.1])
 by relay.mailchannels.net (Postfix) with ESMTP id 0A8C320D5A;
 Fri,  6 Dec 2019 00:19:44 +0000 (UTC)
Received: from pdx1-sub0-mail-a86.g.dreamhost.com
 (100-96-15-77.trex.outbound.svc.cluster.local [100.96.15.77])
 (Authenticated sender: dreamhost)
 by relay.mailchannels.net (Postfix) with ESMTPA id 94FA821A15;
 Fri,  6 Dec 2019 00:19:43 +0000 (UTC)
X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN
Received: from pdx1-sub0-mail-a86.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); Fri, 06 Dec 2019 00:19:43 +0000
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|jurta@HIDDEN
X-MailChannels-Auth-Id: dreamhost
X-Print-Abaft: 1856d3ba7c92820a_1575591583847_307722224
X-MC-Loop-Signature: 1575591583846:3630515446
X-MC-Ingress-Time: 1575591583846
Received: from pdx1-sub0-mail-a86.g.dreamhost.com (localhost [127.0.0.1])
 by pdx1-sub0-mail-a86.g.dreamhost.com (Postfix) with ESMTP id 51BD6823AB;
 Thu,  5 Dec 2019 16:19:38 -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; s=linkov.net; bh=WKML0iu9l8OhEc1T4SwWWpGWyKI=; b=
 cQEukiJ1uvuJ7U+lP615ul7JoN7uyNwWaYNiQ3s202cpOEWsVgMpHIs6cZTMQhCd
 sAg6Kqxnj3P3Ke/m15zaSYYTBLUrG44iAk5iYVHALEM8tGRu1YxZslmOyCRPkPEB
 OJl4hS2bAX3TiNnTwai9jzIzz2VyFKXLy0JVNdooJD4=
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@HIDDEN)
 by pdx1-sub0-mail-a86.g.dreamhost.com (Postfix) with ESMTPSA id E4E3D823BF;
 Thu,  5 Dec 2019 16:19:35 -0800 (PST)
X-DH-BACKEND: pdx1-sub0-mail-a86
From: Juri Linkov <juri@HIDDEN>
To: =?iso-8859-1?Q?K=E9vin?= Le Gouguec <kevin.legouguec@HIDDEN>
Subject: Re: bug#38457: 27.0.50; dabbrev-expand regression due to message
 change
Organization: LINKOV.NET
References: <8736e3vve8.fsf@HIDDEN> <8736e2coyv.fsf@HIDDEN>
 <83y2vujd0y.fsf@HIDDEN> <87blspm0sm.fsf@HIDDEN>
 <837e3ckbem.fsf@HIDDEN> <87y2vqaj8n.fsf@HIDDEN>
Date: Fri, 06 Dec 2019 02:06:30 +0200
In-Reply-To: <87y2vqaj8n.fsf@HIDDEN> (=?iso-8859-1?Q?=22K=E9vin?= Le
 Gouguec"'s message of "Thu, 05 Dec 2019 16:24:08 +0100")
Message-ID: <87o8wmqpvd.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 38457
Cc: 38457 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>, stephen.berman@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>>> > So please try to find a simpler fix for this problem, one that doesn't
>>> > involve a timer.
>>>
>>> This is the simplest and the safest solution.
>>
>> The simplest solution would be to prevent dabbrev-expand from
>> displaying the message in the first place; there are conditions for
>> that which evidently the new implementation somehow triggers.
>>
>>> I wanted to implement it earlier but had no time before.  I see no
>>> problems with it.
>>
>> Let's not rock the boat too much so close to the release cycle because
>> of a very minor problem which caused these changes.  You may not see
>> any problems with it now, but I'm certain we will bump into numerous
>> problems very soon if we make such significant changes in this
>> infrastructure, which is used everywhere in Emacs.
>
> Mmm, as you say, the message infrastructure is used everywhere in Emacs,
> and it has received significant changes in aa89c84e00d.
>
> I think the regression Stephen noticed is more widespread than just
> dabbrev-expand: e.g. TRAMP is also affected[1].

I know that TRAMP is affected.  I had no time to address this before, sorry,
but now this is fixed by the previous patch I sent 3 days ago that uses a timer.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#38457; Package emacs. Full text available.

Message received at 38457 <at> debbugs.gnu.org:


Received: (at 38457) by debbugs.gnu.org; 5 Dec 2019 16:36:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 05 11:36:55 2019
Received: from localhost ([127.0.0.1]:45086 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1icu7b-0003A9-1K
	for submit <at> debbugs.gnu.org; Thu, 05 Dec 2019 11:36:55 -0500
Received: from eggs.gnu.org ([209.51.188.92]:36781)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1icu7Z-00039y-2R
 for 38457 <at> debbugs.gnu.org; Thu, 05 Dec 2019 11:36:53 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:42628)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1icu7T-0001hE-Cw; Thu, 05 Dec 2019 11:36:47 -0500
Received: from [176.228.60.248] (port=1221 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1icu7S-0006rb-Nf; Thu, 05 Dec 2019 11:36:47 -0500
Date: Thu, 05 Dec 2019 18:36:43 +0200
Message-Id: <834kyeivac.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: =?utf-8?Q?K=C3=A9vin?= Le Gouguec <kevin.legouguec@HIDDEN>
In-reply-to: <87y2vqaj8n.fsf@HIDDEN> (message from =?utf-8?Q?K=C3=A9vin?=
 Le Gouguec on Thu, 05 Dec 2019 16:24:08 +0100)
Subject: Re: bug#38457: 27.0.50; dabbrev-expand regression due to message
 change
References: <8736e3vve8.fsf@HIDDEN> <8736e2coyv.fsf@HIDDEN>
 <83y2vujd0y.fsf@HIDDEN> <87blspm0sm.fsf@HIDDEN>
 <837e3ckbem.fsf@HIDDEN> <87y2vqaj8n.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 38457
Cc: 38457 <at> debbugs.gnu.org, stephen.berman@HIDDEN, juri@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Kévin Le Gouguec <kevin.legouguec@HIDDEN>
> Cc: Juri Linkov <juri@HIDDEN>,  38457 <at> debbugs.gnu.org,
>   stephen.berman@HIDDEN
> Date: Thu, 05 Dec 2019 16:24:08 +0100
> 
> Mmm, as you say, the message infrastructure is used everywhere in Emacs,
> and it has received significant changes in aa89c84e00d.
> 
> I think the regression Stephen noticed is more widespread than just
> dabbrev-expand: e.g. TRAMP is also affected[1].  Does it make sense to
> address each symptom individually?

I didn't say individually, I said I would like to see a simpler
change, one that doesn't yet again change the infrastructure
significantly.

For example, to fix the dabbrev case we could bind
minibuffer-message-timeout to zero in progress-reporter-do-update.

> Were dabbrev, TRAMP, and possibly others wrong to assume that they
> could call (message …) without causing 2-second delays?

No.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#38457; Package emacs. Full text available.

Message received at 38457 <at> debbugs.gnu.org:


Received: (at 38457) by debbugs.gnu.org; 5 Dec 2019 15:24:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Dec 05 10:24:18 2019
Received: from localhost ([127.0.0.1]:45035 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1icszK-0001JI-B1
	for submit <at> debbugs.gnu.org; Thu, 05 Dec 2019 10:24:18 -0500
Received: from mail-wr1-f53.google.com ([209.85.221.53]:44092)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <kevin.legouguec@HIDDEN>) id 1icszJ-0001J4-11
 for 38457 <at> debbugs.gnu.org; Thu, 05 Dec 2019 10:24:17 -0500
Received: by mail-wr1-f53.google.com with SMTP id q10so4070458wrm.11
 for <38457 <at> debbugs.gnu.org>; Thu, 05 Dec 2019 07:24:16 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version:content-transfer-encoding;
 bh=kv6TcD7hfO7P4en/NqrNanAHy9vFfMTA0ysx+7+/2Aw=;
 b=PZVaV2YwpJQtZRDWXTMWHEKaXVBsXrf3/9ZMFdPHPhH6sVae4hZC2GEGB4JjeEH0qa
 j9zY+ZFZqs40+s2oR9LCFeUj3zfJpUABYmV685J3qIpF03nR271am1mF5k/0+SOLnKBs
 yck1xnNWqsBc+HHt12TMGrcu+uen5u+akyK3LpSFAJzWp2Lzq6iHWVzsQzIeiT9viN83
 pbygTvAV8lLyPmiZ9dWkMXO5p/NHCVMmVP5oCrhgSYxEFKHMq0JvVZtrjCDdLKnDXdfq
 ebJd82z6lo/RIqfVm867gfla0iorjVUMAmA7VcqYzRR/kDD3Je/CWdInAN+4USmzkfDR
 41WA==
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:references:date:in-reply-to
 :message-id:user-agent:mime-version:content-transfer-encoding;
 bh=kv6TcD7hfO7P4en/NqrNanAHy9vFfMTA0ysx+7+/2Aw=;
 b=puUbDUNqoTkQObh+T4AaXKt0lX9h7OTVRndJkVBiLu9eLKGbGBEvmow/aXiQ//w2T6
 7WjgJLlG3KoWu40zyMQCubAa6qDLQMPyDqIB+qpCvpMS4wrsi+/Qaz48qI5VlSauE3cq
 mfKPkZMFVfmDZIrBVn5vuCFqpZbstZ5q2uqhbrWx+shMh+LjnCtIOP19LlPqw1HFUsRo
 TEFiFFnwPESEX2TrtLG0EwUZvz6ZoAHFUqLstG9s7rnVZbl1EzmywnL7BXVXJjBA4r3M
 1rs2i8n4h2+2m6+i6V2XronzSOnTtb9j+ZtIzcSh1Lyyk0orUEF1Q0D1crsXKyk3D4cr
 odLg==
X-Gm-Message-State: APjAAAXilIPCP0IhIVFWJQWUmy5UAPJhnz6MqgVvaqD/k9w9XhZ80Siz
 XVZRM3/3rO6Q6TrFCfiQs1E=
X-Google-Smtp-Source: APXvYqzV5WA4sX8+WAi7oXqTbAaQ852DHc+9CenXKNoQHa+GLWsn++IFRBWHVNevUrlEC2CkPeUgtQ==
X-Received: by 2002:a5d:44ca:: with SMTP id z10mr11536334wrr.266.1575559451200; 
 Thu, 05 Dec 2019 07:24:11 -0800 (PST)
Received: from little-buster
 (2a01cb04010fc800344a427cd486b589.ipv6.abo.wanadoo.fr.
 [2a01:cb04:10f:c800:344a:427c:d486:b589])
 by smtp.gmail.com with ESMTPSA id a24sm130080wmb.29.2019.12.05.07.24.09
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 05 Dec 2019 07:24:10 -0800 (PST)
From: =?utf-8?Q?K=C3=A9vin_Le_Gouguec?= <kevin.legouguec@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#38457: 27.0.50; dabbrev-expand regression due to message
 change
References: <8736e3vve8.fsf@HIDDEN> <8736e2coyv.fsf@HIDDEN>
 <83y2vujd0y.fsf@HIDDEN> <87blspm0sm.fsf@HIDDEN>
 <837e3ckbem.fsf@HIDDEN>
Date: Thu, 05 Dec 2019 16:24:08 +0100
In-Reply-To: <837e3ckbem.fsf@HIDDEN> (Eli Zaretskii's message of "Wed, 04 Dec
 2019 05:38:41 +0200")
Message-ID: <87y2vqaj8n.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 38457
Cc: 38457 <at> debbugs.gnu.org, stephen.berman@HIDDEN,
 Juri Linkov <juri@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

>> From: Juri Linkov <juri@HIDDEN>
>>=20
>> > So please try to find a simpler fix for this problem, one that doesn't
>> > involve a timer.
>>=20
>> This is the simplest and the safest solution.
>
> The simplest solution would be to prevent dabbrev-expand from
> displaying the message in the first place; there are conditions for
> that which evidently the new implementation somehow triggers.
>
>> I wanted to implement it earlier but had no time before.  I see no
>> problems with it.
>
> Let's not rock the boat too much so close to the release cycle because
> of a very minor problem which caused these changes.  You may not see
> any problems with it now, but I'm certain we will bump into numerous
> problems very soon if we make such significant changes in this
> infrastructure, which is used everywhere in Emacs.

Mmm, as you say, the message infrastructure is used everywhere in Emacs,
and it has received significant changes in aa89c84e00d.

I think the regression Stephen noticed is more widespread than just
dabbrev-expand: e.g. TRAMP is also affected[1].  Does it make sense to
address each symptom individually?  Were dabbrev, TRAMP, and possibly
others wrong to assume that they could call (message =E2=80=A6) without cau=
sing
2-second delays?

NB: I am not saying that Juri's initial patch is the simplest nor the
safest.  It just seems to me that aa89c84e00d has already "rocked the
boat" quite a bit, and addressing this specific bug report by tweaking
dabbrev-expand will only take care of the tip of the iceberg, to
continue the nautical metaphor=E2=80=A6


[1] C-x C-f /ssh:localhost: RET

    =E2=87=92 This hangs for 10 seconds unless the user furiously spams some
    command (e.g. C-n), as each of the following message takes 2 seconds
    to disappear:

    > Tramp: Opening connection for localhost using ssh...
    > Tramp: Sending command =E2=80=98exec ssh   -o ControlMaster=3Dauto -o=
 ControlPath=3D'tramp.%C' -o ControlPersist=3Dno -e none localhost=E2=80=99
    > Tramp: Waiting for prompts from remote shell...done
    > Tramp: Found remote shell prompt on =E2=80=98localhost=E2=80=99
    > Tramp: Opening connection for localhost using ssh...done

    I haven't reported this as a separate issue yet, because I am
    assuming that both bugs are caused by recent changes in message and
    should be fixed there=E2=80=A6




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#38457; Package emacs. Full text available.

Message received at 38457 <at> debbugs.gnu.org:


Received: (at 38457) by debbugs.gnu.org; 5 Dec 2019 03:43:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Dec 04 22:43:22 2019
Received: from localhost ([127.0.0.1]:42899 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ici2z-0000lJ-NG
	for submit <at> debbugs.gnu.org; Wed, 04 Dec 2019 22:43:21 -0500
Received: from eggs.gnu.org ([209.51.188.92]:54199)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1ici2x-0000l4-8T
 for 38457 <at> debbugs.gnu.org; Wed, 04 Dec 2019 22:43:20 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:34049)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1ici2r-0000jN-6L; Wed, 04 Dec 2019 22:43:13 -0500
Received: from [176.228.60.248] (port=2114 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1ici2q-0007zP-EY; Wed, 04 Dec 2019 22:43:13 -0500
Date: Thu, 05 Dec 2019 05:43:07 +0200
Message-Id: <83lfrrigj8.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Juri Linkov <juri@HIDDEN>
In-reply-to: <871rtjn0kt.fsf@HIDDEN> (message from Juri Linkov on
 Thu, 05 Dec 2019 01:16:34 +0200)
Subject: Re: bug#38457: 27.0.50; dabbrev-expand regression due to message
 change
References: <8736e3vve8.fsf@HIDDEN> <8736e2coyv.fsf@HIDDEN>
 <83y2vujd0y.fsf@HIDDEN> <87blspm0sm.fsf@HIDDEN>
 <837e3ckbem.fsf@HIDDEN> <871rtjn0kt.fsf@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 38457
Cc: 38457 <at> debbugs.gnu.org, stephen.berman@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Juri Linkov <juri@HIDDEN>
> Cc: stephen.berman@HIDDEN,  38457 <at> debbugs.gnu.org
> Date: Thu, 05 Dec 2019 01:16:34 +0200
> 
> > Let's not rock the boat too much so close to the release cycle because
> > of a very minor problem which caused these changes.  You may not see
> > any problems with it now, but I'm certain we will bump into numerous
> > problems very soon if we make such significant changes in this
> > infrastructure, which is used everywhere in Emacs.
> 
> There may be a misunderstanding here.  I was talking about the
> changes for development in master, not for the release branch.
> If you think it would be too risky to release with these changes,
> then fine, these changes could be removed in the release branch.

The master branch will become the release branch very soon.  If you
want to wait with these changes after the emacs-27 branch is cut, it's
fine by me, but we need to solve the issue with dabbrev-expand for the
release branch as well.

That is why I suggest to find a simpler, safer solution for that issue
now, and if you insist on using a timer (which I personally consider
not a good idea), then do this after the release branch is cut.

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#38457; Package emacs. Full text available.

Message received at 38457 <at> debbugs.gnu.org:


Received: (at 38457) by debbugs.gnu.org; 4 Dec 2019 23:27:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Dec 04 18:27:42 2019
Received: from localhost ([127.0.0.1]:42792 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ice3Z-00020Y-My
	for submit <at> debbugs.gnu.org; Wed, 04 Dec 2019 18:27:41 -0500
Received: from bongo.elm.relay.mailchannels.net ([23.83.212.21]:57695)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1ice3Y-00020P-18
 for 38457 <at> debbugs.gnu.org; Wed, 04 Dec 2019 18:27:40 -0500
X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN
Received: from relay.mailchannels.net (localhost [127.0.0.1])
 by relay.mailchannels.net (Postfix) with ESMTP id 7D94814187D;
 Wed,  4 Dec 2019 23:27:37 +0000 (UTC)
Received: from pdx1-sub0-mail-a19.g.dreamhost.com
 (100-96-45-206.trex.outbound.svc.cluster.local [100.96.45.206])
 (Authenticated sender: dreamhost)
 by relay.mailchannels.net (Postfix) with ESMTPA id 16E4D1415BD;
 Wed,  4 Dec 2019 23:27:37 +0000 (UTC)
X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN
Received: from pdx1-sub0-mail-a19.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); Wed, 04 Dec 2019 23:27:37 +0000
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|jurta@HIDDEN
X-MailChannels-Auth-Id: dreamhost
X-Abaft-Daffy: 216b845f35168610_1575502057327_3503392965
X-MC-Loop-Signature: 1575502057327:4174198862
X-MC-Ingress-Time: 1575502057327
Received: from pdx1-sub0-mail-a19.g.dreamhost.com (localhost [127.0.0.1])
 by pdx1-sub0-mail-a19.g.dreamhost.com (Postfix) with ESMTP id 5DAB9B76EF;
 Wed,  4 Dec 2019 15:27:33 -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; s=linkov.net; bh=qmuLv6bxVFMSa5psSBpVs8Cf9YY=; b=
 1k76PtZzI03LB7+OKOOfWTXw4W3E223OOT/ASnLK6SNpavz62JiswSyhiyWwwNoR
 icf553PwoXT2jCF+SE2ihnQjuLp6rHrgQKak1BrwmWFZQ2hMTvTZveo4c26ohzlK
 hT/Ayr249ZFcpdTCmQ2vRZIDkK9EMd4c57SSnBvSb20=
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@HIDDEN)
 by pdx1-sub0-mail-a19.g.dreamhost.com (Postfix) with ESMTPSA id 70543B76F2;
 Wed,  4 Dec 2019 15:27:30 -0800 (PST)
X-DH-BACKEND: pdx1-sub0-mail-a19
From: Juri Linkov <juri@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#38457: 27.0.50; dabbrev-expand regression due to message
 change
Organization: LINKOV.NET
References: <8736e3vve8.fsf@HIDDEN> <8736e2coyv.fsf@HIDDEN>
 <83y2vujd0y.fsf@HIDDEN> <87blspm0sm.fsf@HIDDEN>
 <837e3ckbem.fsf@HIDDEN>
Date: Thu, 05 Dec 2019 01:16:34 +0200
In-Reply-To: <837e3ckbem.fsf@HIDDEN> (Eli Zaretskii's message of "Wed, 04 Dec
 2019 05:38:41 +0200")
Message-ID: <871rtjn0kt.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 38457
Cc: 38457 <at> debbugs.gnu.org, stephen.berman@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>> I wanted to implement it earlier but had no time before.  I see no
>> problems with it.
>
> Let's not rock the boat too much so close to the release cycle because
> of a very minor problem which caused these changes.  You may not see
> any problems with it now, but I'm certain we will bump into numerous
> problems very soon if we make such significant changes in this
> infrastructure, which is used everywhere in Emacs.

There may be a misunderstanding here.  I was talking about the
changes for development in master, not for the release branch.
If you think it would be too risky to release with these changes,
then fine, these changes could be removed in the release branch.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#38457; Package emacs. Full text available.

Message received at 38457 <at> debbugs.gnu.org:


Received: (at 38457) by debbugs.gnu.org; 4 Dec 2019 03:39:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Dec 03 22:39:11 2019
Received: from localhost ([127.0.0.1]:41327 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1icLVO-00082r-Vc
	for submit <at> debbugs.gnu.org; Tue, 03 Dec 2019 22:39:11 -0500
Received: from eggs.gnu.org ([209.51.188.92]:48959)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1icLVM-00082U-FT
 for 38457 <at> debbugs.gnu.org; Tue, 03 Dec 2019 22:39:09 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:41102)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1icLVA-0000PK-O4; Tue, 03 Dec 2019 22:38:56 -0500
Received: from [176.228.60.248] (port=1968 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1icLV6-0007KV-4e; Tue, 03 Dec 2019 22:38:52 -0500
Date: Wed, 04 Dec 2019 05:38:41 +0200
Message-Id: <837e3ckbem.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Juri Linkov <juri@HIDDEN>
In-reply-to: <87blspm0sm.fsf@HIDDEN> (message from Juri Linkov on
 Wed, 04 Dec 2019 01:44:57 +0200)
Subject: Re: bug#38457: 27.0.50; dabbrev-expand regression due to message
 change
References: <8736e3vve8.fsf@HIDDEN> <8736e2coyv.fsf@HIDDEN>
 <83y2vujd0y.fsf@HIDDEN> <87blspm0sm.fsf@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 38457
Cc: 38457 <at> debbugs.gnu.org, stephen.berman@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Juri Linkov <juri@HIDDEN>
> Cc: stephen.berman@HIDDEN,  38457 <at> debbugs.gnu.org
> Date: Wed, 04 Dec 2019 01:44:57 +0200
> 
> > So please try to find a simpler fix for this problem, one that doesn't
> > involve a timer.
> 
> This is the simplest and the safest solution.

The simplest solution would be to prevent dabbrev-expand from
displaying the message in the first place; there are conditions for
that which evidently the new implementation somehow triggers.

> I wanted to implement it earlier but had no time before.  I see no
> problems with it.

Let's not rock the boat too much so close to the release cycle because
of a very minor problem which caused these changes.  You may not see
any problems with it now, but I'm certain we will bump into numerous
problems very soon if we make such significant changes in this
infrastructure, which is used everywhere in Emacs.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#38457; Package emacs. Full text available.

Message received at 38457 <at> debbugs.gnu.org:


Received: (at 38457) by debbugs.gnu.org; 3 Dec 2019 23:47:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Dec 03 18:47:16 2019
Received: from localhost ([127.0.0.1]:41233 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1icHsy-0002Id-87
	for submit <at> debbugs.gnu.org; Tue, 03 Dec 2019 18:47:16 -0500
Received: from chocolate.birch.relay.mailchannels.net ([23.83.209.35]:55321)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1icHsv-0002IM-Pf
 for 38457 <at> debbugs.gnu.org; Tue, 03 Dec 2019 18:47:14 -0500
X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN
Received: from relay.mailchannels.net (localhost [127.0.0.1])
 by relay.mailchannels.net (Postfix) with ESMTP id 6FA83215A0;
 Tue,  3 Dec 2019 23:47:12 +0000 (UTC)
Received: from pdx1-sub0-mail-a18.g.dreamhost.com
 (100-96-6-199.trex.outbound.svc.cluster.local [100.96.6.199])
 (Authenticated sender: dreamhost)
 by relay.mailchannels.net (Postfix) with ESMTPA id 0394D2158B;
 Tue,  3 Dec 2019 23:47:12 +0000 (UTC)
X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN
Received: from pdx1-sub0-mail-a18.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, 03 Dec 2019 23:47:12 +0000
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|jurta@HIDDEN
X-MailChannels-Auth-Id: dreamhost
X-Zesty-Chief: 0adc6bf379aadc9f_1575416832247_4160652782
X-MC-Loop-Signature: 1575416832247:3855278037
X-MC-Ingress-Time: 1575416832246
Received: from pdx1-sub0-mail-a18.g.dreamhost.com (localhost [127.0.0.1])
 by pdx1-sub0-mail-a18.g.dreamhost.com (Postfix) with ESMTP id A7C03A3A52;
 Tue,  3 Dec 2019 15:47:10 -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; s=linkov.net; bh=OS57rkIdGx1Su6BdTsImFnLr5Xs=; b=
 BedhIFDyD59yzn+ZRGahXi8uXusxXQxUPOqqW9XLqyQyPy8mRzh1o7dTl0VpMP3e
 T6rpyV+ADYg5bXkiU3RDgO5DpIj3i0sgaLfOBAXL26PYwtjyw68xuBRNqRxtZ9cj
 RO3bAfTRJzeAK45kReOaA886+YDxPcko3HVUwePvM3c=
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@HIDDEN)
 by pdx1-sub0-mail-a18.g.dreamhost.com (Postfix) with ESMTPSA id 1D89EA3A56;
 Tue,  3 Dec 2019 15:47:08 -0800 (PST)
X-DH-BACKEND: pdx1-sub0-mail-a18
From: Juri Linkov <juri@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#38457: 27.0.50; dabbrev-expand regression due to message
 change
Organization: LINKOV.NET
References: <8736e3vve8.fsf@HIDDEN> <8736e2coyv.fsf@HIDDEN>
 <83y2vujd0y.fsf@HIDDEN>
Date: Wed, 04 Dec 2019 01:44:57 +0200
In-Reply-To: <83y2vujd0y.fsf@HIDDEN> (Eli Zaretskii's message of "Tue, 03 Dec
 2019 05:36:45 +0200")
Message-ID: <87blspm0sm.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 38457
Cc: 38457 <at> debbugs.gnu.org, stephen.berman@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

> So please try to find a simpler fix for this problem, one that doesn't
> involve a timer.

This is the simplest and the safest solution.  I wanted to implement it
earlier but had no time before.  I see no problems with it.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#38457; Package emacs. Full text available.

Message received at 38457 <at> debbugs.gnu.org:


Received: (at 38457) by debbugs.gnu.org; 3 Dec 2019 03:37:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 02 22:37:05 2019
Received: from localhost ([127.0.0.1]:39203 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ibyzp-0003RG-0b
	for submit <at> debbugs.gnu.org; Mon, 02 Dec 2019 22:37:05 -0500
Received: from eggs.gnu.org ([209.51.188.92]:52021)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1ibyzo-0003Qn-0V
 for 38457 <at> debbugs.gnu.org; Mon, 02 Dec 2019 22:37:04 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:49756)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1ibyzf-0001RM-Vj; Mon, 02 Dec 2019 22:36:56 -0500
Received: from [176.228.60.248] (port=1736 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1ibyzf-0001z8-Fd; Mon, 02 Dec 2019 22:36:55 -0500
Date: Tue, 03 Dec 2019 05:36:45 +0200
Message-Id: <83y2vujd0y.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Juri Linkov <juri@HIDDEN>
In-reply-to: <8736e2coyv.fsf@HIDDEN> (message from Juri Linkov on
 Tue, 03 Dec 2019 01:00:40 +0200)
Subject: Re: bug#38457: 27.0.50;
 dabbrev-expand regression due to message change
References: <8736e3vve8.fsf@HIDDEN> <8736e2coyv.fsf@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 38457
Cc: 38457 <at> debbugs.gnu.org, stephen.berman@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Juri Linkov <juri@HIDDEN>
> Date: Tue, 03 Dec 2019 01:00:40 +0200
> Cc: 38457 <at> debbugs.gnu.org
> 
> > 0. emacs -Q
> > 1. M-! te M-/
> >
> > => It takes about 4 seconds on my machine for the expansion "text" to
> > appear, during which the minibuffer displays "[Scanning for
> > dabbrevs...100%]" and then "[Scanning for dabbrevs...done]".  On builds
> > without this regression, the expansion is virtually instantaneous and no
> > message is seen in the minibuffer.
> 
> This is because of the current limitation of minibuffer-message.
> It uses sit-for to wait for 2 seconds per every message.
> This should be fixed by using the timer, so there will be no delays
> anymore:

Please don't make this change, or any other changes in this stuff that
significantly modify the internals of these basic APIs.  I'm that
close to ask to revert the entire message-in-echo-area change, because
it's already too invasive and runs a high risk of disrupting too many
commands.  We don't want the pretest of Emacs 27.1 to last forever for
these reasons.

So please try to find a simpler fix for this problem, one that doesn't
involve a timer.  If it isn't possible, let's indeed consider removing
the message-in-echo-area changes for now.

Sorry for that, but we should keep in mind that Emacs 27.1 pretest is
coming soon, and any deep changes in low-level infrastructure used all
over the place should wait for the next release.

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#38457; Package emacs. Full text available.

Message received at 38457 <at> debbugs.gnu.org:


Received: (at 38457) by debbugs.gnu.org; 3 Dec 2019 00:15:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 02 19:15:19 2019
Received: from localhost ([127.0.0.1]:39146 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ibvqZ-0006Ob-N8
	for submit <at> debbugs.gnu.org; Mon, 02 Dec 2019 19:15:19 -0500
Received: from mout.gmx.net ([212.227.15.18]:48835)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stephen.berman@HIDDEN>) id 1ibvqX-0006OM-VL
 for 38457 <at> debbugs.gnu.org; Mon, 02 Dec 2019 19:15:18 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
 s=badeba3b8450; t=1575332107;
 bh=M4nQqC8M9vRS8YoHajo5ZlOSzmECncKhYgD3Log4N+E=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To;
 b=Wis5craD8ZcmWW9MueBlsBPpT/VSPAsBVbQv9b5ywhfxdOEdnbKD6HCpkNbTCF/M6
 6f8/Y7bUfSShGPNbmJmqF0QvKfiGC93xO1t4/9PfbC4ldBB+aFqNrJzyy3NbEU4oRN
 6jzKUzscH92s3F6mCHz5TCfZCanpKcub77QePBDs=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from strobe-lfs84 ([188.109.175.134]) by mail.gmx.com (mrgmx004
 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N8ob6-1hg6hx1RN0-015nmL; Tue, 03
 Dec 2019 01:15:07 +0100
From: Stephen Berman <stephen.berman@HIDDEN>
To: Juri Linkov <juri@HIDDEN>
Subject: Re: bug#38457: 27.0.50; dabbrev-expand regression due to message
 change
References: <8736e3vve8.fsf@HIDDEN> <8736e2coyv.fsf@HIDDEN>
Date: Tue, 03 Dec 2019 01:15:05 +0100
In-Reply-To: <8736e2coyv.fsf@HIDDEN> (Juri Linkov's message of "Tue, 
 03 Dec 2019 01:00:40 +0200")
Message-ID: <87a78auuwm.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:V3nvX2vX1hRP/X/so6UFd3lf/ToUrYp5qIFovVSEW7rCIi/dNoI
 RMvs+Yy4xEBu1EMjSdLdJIWKRzBF7GQ6LObrxwPKY36Nn65QQMsjxuj9u9R89vL8ICccPAE
 dI51NDqAaESoxKpvuCYno8AGYeOu6iJNwWN9iG/FzcFZ6pyiClOUNjYXxxg5Ydyj4Tg9BFv
 fy2DJniB10J4MF98qQfUQ==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:+fLF5XnlVOQ=:clrZL+FYtFpufTaq6mq0AS
 WTeWLxh9ekz/T/NxGsN9aVNDN0h2MAORbcEIdnxjt13Qto2XdsWri7J/8+RNOOk62hwkp/4JG
 neHvGuhfDGVEJztGNeLkNJ+7YORpBYmBfRVtKA7d5bGq3XzrSUuPXKGAVNYjhy1uKiSP07aX2
 E5TvYI0iY/DEQQyo/zorgGe7dCXnEkQvBBGHauTpaNlmA+LWFDlFJ2wMFnB8XLdHhWfVN56KE
 qur4Eb6chiyan5RFPO/j05kS8k3fuEJw9E7MV/wSg+YbxbHdfj+cc7H8bn+DDjfW78nHyU30x
 29wQOcrijpML1I3EsR559TXKdarzakAX+/u1jGASgBOkk8mgLYCeBQ3j2j0WYgN3FyBCSLSnn
 1wKKn5M1xzGUcB5f2LPeS3an54zDvI2iML6Lr54Ppf22AjgarLIdL7EeLV7l/iBilCM9dD+5A
 Q7FY1x99U0XZMXgDGTDcBjyoYsBYxQkYYE3rIxg3zpfgmqrWwO7HWPYaYkTZGU1iAtAIoV1HB
 /5qEgJ4UB6ictN7ZvktcRvjHENtdglScv/ZB68ZRoX0xGIPifQXhw4ioxH7jOD9xYr/YbMwZg
 bQnc9o7HDSR+3TgKo9niwdB47Mme+JTnKuTL38WEqJB4SeUFN2uqM4VPrpwVXXE0qj0u4kvGJ
 M0tlDtrxSC5ELBEuB20EpyK/6nyT93QmOPk+AwYUl4Xw8lCfRfwLBMYhXn/3L3w6ChORusAdI
 XlrNw3vq099RrlEilPk3x+ba1srgx1hKowULYXpxbLTeLL088dJHDvlV9NVR+U8TRb3nUEej0
 51BZbMj349n309SjlRhZ4hlCtpOj5dpCEzkdjVH7NBFnxhsfHPhK9YfCSw15rsCyPhAU0ZqpP
 eCBqiudtWYN5XdKy39ZRJQypiOlzYIuVTr6D5Sv2ZJnWyTFGaf+TaU5esjgCmiFQF7CYDg4xd
 GHQdzD/eHPWXOJi8iyWIGAwitka1M6YsY3UJiIV2HAwsenr6eee1N3ECRtl/Zs45Bw2xanMAl
 s+NV7rOD2b6E4y9jUU99/dA+MBsb7BJBH3UcPApSZb1YuiHHt7YoYALgLHejH5mbkx5A0TfZL
 Z9I/yBw4q+VFnwwtLFZgBSfjd1BxvzuVkHa0PSuwKiD6DtTtRc70kuwRQ2YzutTwngXRsCRaK
 /Nd9T8Vq/14Xi/tKCriTjTvUccCFdWaXSsv8cDEhu5n4avX1W3ZJp7uuS3cVJlpJgrZtufEZf
 juaj5lEP1ekvi20ez6Yl20KcYeobBDmQqNvMH8wEOla/bJfK+hR8ng0TTN40=
X-Spam-Score: -0.1 (/)
X-Debbugs-Envelope-To: 38457
Cc: 38457 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.1 (-)

On Tue, 03 Dec 2019 01:00:40 +0200 Juri Linkov <juri@HIDDEN> wrote:

>> 0. emacs -Q
>> 1. M-! te M-/
>>
>> => It takes about 4 seconds on my machine for the expansion "text" to
>> appear, during which the minibuffer displays "[Scanning for
>> dabbrevs...100%]" and then "[Scanning for dabbrevs...done]".  On builds
>> without this regression, the expansion is virtually instantaneous and no
>> message is seen in the minibuffer.
>
> This is because of the current limitation of minibuffer-message.
> It uses sit-for to wait for 2 seconds per every message.
> This should be fixed by using the timer, so there will be no delays
> anymore:

I confirm that this patch eliminates the dabbrev-expand delay.
Simultaneously with the expansion, the message "[Scanning for
dabbrevs...done]" is displayed, which is uninformative and hence a bit
annoying, but otherwise seems harmless.  Thanks for the fix.

Steve Berman




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#38457; Package emacs. Full text available.

Message received at 38457 <at> debbugs.gnu.org:


Received: (at 38457) by debbugs.gnu.org; 2 Dec 2019 23:46:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 02 18:46:47 2019
Received: from localhost ([127.0.0.1]:39120 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ibvOw-00059m-Az
	for submit <at> debbugs.gnu.org; Mon, 02 Dec 2019 18:46:47 -0500
Received: from bonobo.birch.relay.mailchannels.net ([23.83.209.22]:3554)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1ibvOu-00059b-BW
 for 38457 <at> debbugs.gnu.org; Mon, 02 Dec 2019 18:46:45 -0500
X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN
Received: from relay.mailchannels.net (localhost [127.0.0.1])
 by relay.mailchannels.net (Postfix) with ESMTP id C61FD21DF4;
 Mon,  2 Dec 2019 23:46:42 +0000 (UTC)
Received: from pdx1-sub0-mail-a98.g.dreamhost.com
 (100-96-4-107.trex.outbound.svc.cluster.local [100.96.4.107])
 (Authenticated sender: dreamhost)
 by relay.mailchannels.net (Postfix) with ESMTPA id 3545A21D14;
 Mon,  2 Dec 2019 23:46:42 +0000 (UTC)
X-Sender-Id: dreamhost|x-authsender|jurta@HIDDEN
Received: from pdx1-sub0-mail-a98.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); Mon, 02 Dec 2019 23:46:42 +0000
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|jurta@HIDDEN
X-MailChannels-Auth-Id: dreamhost
X-Drop-Bored: 08bb3c133af82ef5_1575330402516_98482903
X-MC-Loop-Signature: 1575330402516:2956078607
X-MC-Ingress-Time: 1575330402515
Received: from pdx1-sub0-mail-a98.g.dreamhost.com (localhost [127.0.0.1])
 by pdx1-sub0-mail-a98.g.dreamhost.com (Postfix) with ESMTP id 025318018D;
 Mon,  2 Dec 2019 15:46:36 -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; s=linkov.net; bh=mvtWIyO0sYFoCzoHYyO2gfmjhC4=; b=
 feoNzSwhsP+roTTo3PIN/+BX1uEwcUS1xYBLSH6pgatBSEd8NdELVqvdTEzoYjv8
 1yIybhvAIQycvF3uVMoFR/JwduPI5awrEStWwPrU116d2F0qRkYAZJ2H8471Q5HY
 esgpchOzBIjw6UXlM5BvVpWEanVPy+SHgo1C778SVvM=
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@HIDDEN)
 by pdx1-sub0-mail-a98.g.dreamhost.com (Postfix) with ESMTPSA id 5FC5C8018A;
 Mon,  2 Dec 2019 15:46:34 -0800 (PST)
X-DH-BACKEND: pdx1-sub0-mail-a98
From: Juri Linkov <juri@HIDDEN>
To: Stephen Berman <stephen.berman@HIDDEN>
Subject: Re: bug#38457: 27.0.50; dabbrev-expand regression due to message
 change
Organization: LINKOV.NET
References: <8736e3vve8.fsf@HIDDEN>
Date: Tue, 03 Dec 2019 01:00:40 +0200
In-Reply-To: <8736e3vve8.fsf@HIDDEN> (Stephen Berman's message of "Mon, 02
 Dec 2019 12:06:55 +0100")
Message-ID: <8736e2coyv.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Spam-Score: -0.1 (/)
X-Debbugs-Envelope-To: 38457
Cc: 38457 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.1 (-)

--=-=-=
Content-Type: text/plain

> 0. emacs -Q
> 1. M-! te M-/
>
> => It takes about 4 seconds on my machine for the expansion "text" to
> appear, during which the minibuffer displays "[Scanning for
> dabbrevs...100%]" and then "[Scanning for dabbrevs...done]".  On builds
> without this regression, the expansion is virtually instantaneous and no
> message is seen in the minibuffer.

This is because of the current limitation of minibuffer-message.
It uses sit-for to wait for 2 seconds per every message.
This should be fixed by using the timer, so there will be no delays
anymore:


--=-=-=
Content-Type: text/x-diff
Content-Disposition: inline; filename=minibuffer-message-timer.patch

diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el
index a7bdde478f..3febdeb174 100644
--- a/lisp/minibuffer.el
+++ b/lisp/minibuffer.el
@@ -702,6 +702,9 @@ minibuffer
 (defvar minibuffer-message-properties nil
   "Text properties added to the text shown by `minibuffer-message'.")
 
+(defvar minibuffer-message-timer nil)
+(defvar minibuffer-message-overlay nil)
+
 (defun minibuffer-message (message &rest args)
   "Temporarily display MESSAGE at the end of the minibuffer.
 The text is displayed for `minibuffer-message-timeout' seconds,
@@ -732,24 +735,23 @@ minibuffer-message
                 ;; Don't overwrite the face properties the caller has set
                 (text-properties-at 0 message))
       (setq message (apply #'propertize message minibuffer-message-properties)))
-    (let ((ol (make-overlay (point-max) (point-max) nil t t))
-          ;; A quit during sit-for normally only interrupts the sit-for,
-          ;; but since minibuffer-message is used at the end of a command,
-          ;; at a time when the command has virtually finished already, a C-g
-          ;; should really cause an abort-recursive-edit instead (i.e. as if
-          ;; the C-g had been typed at top-level).  Binding inhibit-quit here
-          ;; is an attempt to get that behavior.
-          (inhibit-quit t))
-      (unwind-protect
-          (progn
-            (unless (zerop (length message))
-              ;; The current C cursor code doesn't know to use the overlay's
-              ;; marker's stickiness to figure out whether to place the cursor
-              ;; before or after the string, so let's spoon-feed it the pos.
-              (put-text-property 0 1 'cursor t message))
-            (overlay-put ol 'after-string message)
-            (sit-for (or minibuffer-message-timeout 1000000)))
-        (delete-overlay ol)))))
+
+    (when (timerp minibuffer-message-timer)
+      (cancel-timer minibuffer-message-timer))
+    (when (overlayp minibuffer-message-overlay)
+      (delete-overlay minibuffer-message-overlay))
+    (setq minibuffer-message-overlay
+          (make-overlay (point-max) (point-max) nil t t))
+    (setq minibuffer-message-timer
+          (run-with-timer (or minibuffer-message-timeout 1) nil
+                          (lambda () (when (overlayp minibuffer-message-overlay)
+                                       (delete-overlay minibuffer-message-overlay)))))
+    (unless (zerop (length message))
+      ;; The current C cursor code doesn't know to use the overlay's
+      ;; marker's stickiness to figure out whether to place the cursor
+      ;; before or after the string, so let's spoon-feed it the pos.
+      (put-text-property 0 1 'cursor t message))
+    (overlay-put minibuffer-message-overlay 'after-string message)))
 
 (defun minibuffer-completion-contents ()
   "Return the user input in a minibuffer before point as a string.

--=-=-=--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#38457; Package emacs. Full text available.

Message received at 38457 <at> debbugs.gnu.org:


Received: (at 38457) by debbugs.gnu.org; 2 Dec 2019 16:02:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 02 11:02:34 2019
Received: from localhost ([127.0.0.1]:38809 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ibo9i-0000AL-7f
	for submit <at> debbugs.gnu.org; Mon, 02 Dec 2019 11:02:34 -0500
Received: from eggs.gnu.org ([209.51.188.92]:43277)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1ibo9g-0000A4-E3
 for 38457 <at> debbugs.gnu.org; Mon, 02 Dec 2019 11:02:32 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e]:38658)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1ibo9b-0001BK-8m; Mon, 02 Dec 2019 11:02:27 -0500
Received: from [176.228.60.248] (port=3197 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1ibo9a-0005sL-HA; Mon, 02 Dec 2019 11:02:27 -0500
Date: Mon, 02 Dec 2019 18:02:16 +0200
Message-Id: <83sgm2lnqv.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Stephen Berman <stephen.berman@HIDDEN>
In-reply-to: <8736e3vve8.fsf@HIDDEN> (message from Stephen Berman on Mon, 02
 Dec 2019 12:06:55 +0100)
Subject: Re: bug#38457: 27.0.50;
 dabbrev-expand regression due to message change
References: <8736e3vve8.fsf@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 38457
Cc: 38457 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Stephen Berman <stephen.berman@HIDDEN>
> Date: Mon, 02 Dec 2019 12:06:55 +0100
> 
> 0. emacs -Q
> 1. M-! te M-/
> 
> => It takes about 4 seconds on my machine for the expansion "text" to
> appear, during which the minibuffer displays "[Scanning for
> dabbrevs...100%]" and then "[Scanning for dabbrevs...done]".  On builds
> without this regression, the expansion is virtually instantaneous and no
> message is seen in the minibuffer.
> 
> Git bisect pinpoints the following change:
> 
> aa89c84e00d8dc85100e6fedab7631c415e6364d is the first bad commit
> commit aa89c84e00d8dc85100e6fedab7631c415e6364d
> Author: Juri Linkov <juri@HIDDEN>
> Date:   Wed Nov 27 01:43:49 2019 +0200
> 
>     message uses minibuffer-message in the active minibuffer (bug#17272 bug#19064)
> 
>     * doc/lispref/display.texi (Displaying Messages): Explain the
>     behavior of using minibuffer-message if the minibuffer is active.
> 
>     * src/editfns.c (Fmessage_in_echo_area): New function with body
>     copied from Fmessage.
>     (Fmessage): Call minibuffer-message in the active minibuffer,
>     otherwise call Fmessage_in_echo_area.
>     (message-in-echo-area): New variable.
> 
>     * lisp/isearch.el (isearch--momentary-message, isearch-message):
>     * lisp/minibuffer.el (minibuffer-message, minibuffer-completion-help):
>     Use 'message-in-echo-area' instead of 'message' where necessary.
> 
>     * lisp/autorevert.el (auto-revert-handler):
>     * lisp/man.el (Man-bgproc-sentinel):
>     * lisp/subr.el (do-after-load-evaluation):
>     Revert recent changes that replaced 'message' with 'minibuffer-message'.
>     This is not needed anymore since 'message' uses 'minibuffer-message'
>     in the active minibuffer.

I guess the new message-in-echo-area confuses dabbrev.el because it
switches buffers, and dabbrev.el has special logic for that, which
triggers the message, and the subsequent wait.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#38457; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 2 Dec 2019 11:07:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 02 06:07:03 2019
Received: from localhost ([127.0.0.1]:37151 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ibjXj-000511-LF
	for submit <at> debbugs.gnu.org; Mon, 02 Dec 2019 06:07:03 -0500
Received: from lists.gnu.org ([209.51.188.17]:48255)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stephen.berman@HIDDEN>) id 1ibjXi-00050g-0R
 for submit <at> debbugs.gnu.org; Mon, 02 Dec 2019 06:07:02 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:39672)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <stephen.berman@HIDDEN>) id 1ibjXg-000681-IP
 for bug-gnu-emacs@HIDDEN; Mon, 02 Dec 2019 06:07:01 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: **
X-Spam-Status: No, score=2.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 SPOOFED_FREEMAIL,URIBL_BLOCKED autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <stephen.berman@HIDDEN>) id 1ibjXf-0004lj-E0
 for bug-gnu-emacs@HIDDEN; Mon, 02 Dec 2019 06:07:00 -0500
Received: from mout.gmx.net ([212.227.15.19]:39987)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <stephen.berman@HIDDEN>)
 id 1ibjXf-0004kz-0Q
 for bug-gnu-emacs@HIDDEN; Mon, 02 Dec 2019 06:06:59 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
 s=badeba3b8450; t=1575284817;
 bh=94olzQv8PevAFbQUYsFOTPXMxxZWzA5Haur2Pwp4OVY=;
 h=X-UI-Sender-Class:From:To:Subject:Date;
 b=XRw8YuzFD5TzCQkDKKESEZnCqQNYYqz4KBW2zSw5n594YuNzV6yJAKAfoQmM5KcGo
 B4oGvHqyH90j7kiA6diIzD993WpnmBUXcytXfLezYhSEXTNAcF9sC906R3GHPDOVlD
 GFDvKVQ2F8MRWQF62TAcd6zLax88GjQWgoN0b9TY=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from strobe-lfs84 ([188.109.175.134]) by mail.gmx.com (mrgmx004
 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MVNAr-1iAxra0APn-00SKGI for
 <bug-gnu-emacs@HIDDEN>; Mon, 02 Dec 2019 12:06:57 +0100
From: Stephen Berman <stephen.berman@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 27.0.50; dabbrev-expand regression due to message change
Date: Mon, 02 Dec 2019 12:06:55 +0100
Message-ID: <8736e3vve8.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:WCxaPjg/jn+n1T0jYgCtCv1TdPaUiqdZhqk+jufhqNZUSi23wwd
 XDddwxrSIU2Lng9kR1cJ3VOpqYy161KIdWOHLCads7Y5RWJAd+Wkh9bptkUK7E5MDb7D4Xz
 K3LiayTN6iaFlXZfRjzauW7zkcRuCLkwPW0iiURaT6KNh2jUySt6XahNlmzuD+UrcrgX7lv
 +xYUYWWbHVQ4A0sll6jYg==
X-UI-Out-Filterresults: notjunk:1;V03:K0:ax1dYgNL/MQ=:jqME3+ZJB0Fb5JHYY/Cl8C
 p3qDILLEtt/zsWQ0E5iwSL+p1TggoYuB86S3EL1MhWv8NowiENqEgGF9SoxFO7tz51Qoo5Hc0
 0IgJT0xND34ZJxi8mJ22438o0EaQ7g80IWchh0FWn6viakiaDQGvVkl7bosiVrZln2m4dOnBy
 ltHhM3guPeKlLsD8BmEOVnGmeTgL2s6+qysGkEZ5vslrVsQH4KGrlf+w4ew6sFfZW1A/3TBag
 kRvUgZ60GWI9Ec/9LFfItUKvK32dICCm4K+WaOnwovCfHeSOIMeCULmKIwFTiuAX6BsRpfNJ+
 Hcb97Ilw3bl1Abwdp+56H+woogmJeqVV3hute890KpRhRcS5/8KjskkBQqTI1ssHgQyX9EW1E
 FR8i0We/UIeVWZj/Ry9acLbAu+Jp+QtQerrsproWirt4vvL+jeX26aFpuhYddUu2j23CdacZ2
 /UdlvFSH9sadag6IQ6WRibnWJv++yJikwLnrOeVtYU2qvT38WJXRI9eUEyFDfedXFqcsSHzpN
 swmtKZzrRmwLo0hOl7JAQpi0SxFfYHv5L181hEHfsou24xe2rUsiaBdT6EDOL/mxPXWrPuVZR
 6vad3nxjGd+TbnPJTj6UqvjA5/EGrxJzWbQZFr4WYWc54lKLep6YUB2ly7f/vRsRnFOIDPslR
 HFAcYyClDQ9VdIFRFJXM52a7cYGEjL7BRd/UTQubVAWMg9EKfzOIHr19RMnzmND+lYrAbbjHe
 /ih7OgEiRUX3MidlcmEz3voJlt+0/U12dlsTxpsYaDcioZpFDLDrzrWrxFTgQs3cw8i4iYBUf
 fZK2aFrnTTBtC47rhdkiQlRLx33UTNKFRSO5gNhfoldXo6han3aSyfOvnRhTIPA9wyAIuULwB
 +PINuTKt88B8xkMdkjXGPaGaSCuXpklbQ6aT7TiYjDwAeY2DjonWQG/OHZgg3Y8m4uFR9GKQM
 r2EE5YgiaTqI718mBt5mAhzCuLQXlsKm/t+zbQKeXoEEXZIiQH3GU9sbZ2+JnIJlj4Nu/HjwS
 4YOlenP1r1ZCoA9cGYRTVf8kO6Bcv+fxdREA187sf7UWUYULQttL3LguVpagKpuN8V/wCPRUp
 nhCGzXjfhkDSLKikqk4l9ahhYiY37I6ustNGMQULx5sMgZwdenZ0uPPGKw4iWZjwln7LQ71+B
 OaxOel6qr7KSIJSacEQ+ebUzqVBFDcf9htBbGI+0SgsEfKHz+HcDGpP9ycFhDrhxQTl0DvEbj
 b6BIxJ5y2d3y4znpOzGSQ1Npx1ppkHi3T7q1BDmlnYGBbKptZ2HUkCnVNwG8=
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-Received-From: 212.227.15.19
X-Spam-Score: 0.6 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)

0. emacs -Q
1. M-! te M-/

=3D> It takes about 4 seconds on my machine for the expansion "text" to
appear, during which the minibuffer displays "[Scanning for
dabbrevs...100%]" and then "[Scanning for dabbrevs...done]".  On builds
without this regression, the expansion is virtually instantaneous and no
message is seen in the minibuffer.

Git bisect pinpoints the following change:

aa89c84e00d8dc85100e6fedab7631c415e6364d is the first bad commit
commit aa89c84e00d8dc85100e6fedab7631c415e6364d
Author: Juri Linkov <juri@HIDDEN>
Date:   Wed Nov 27 01:43:49 2019 +0200

    message uses minibuffer-message in the active minibuffer (bug#17272 bu=
g#19064)

    * doc/lispref/display.texi (Displaying Messages): Explain the
    behavior of using minibuffer-message if the minibuffer is active.

    * src/editfns.c (Fmessage_in_echo_area): New function with body
    copied from Fmessage.
    (Fmessage): Call minibuffer-message in the active minibuffer,
    otherwise call Fmessage_in_echo_area.
    (message-in-echo-area): New variable.

    * lisp/isearch.el (isearch--momentary-message, isearch-message):
    * lisp/minibuffer.el (minibuffer-message, minibuffer-completion-help):
    Use 'message-in-echo-area' instead of 'message' where necessary.

    * lisp/autorevert.el (auto-revert-handler):
    * lisp/man.el (Man-bgproc-sentinel):
    * lisp/subr.el (do-after-load-evaluation):
    Revert recent changes that replaced 'message' with 'minibuffer-message=
'.
    This is not needed anymore since 'message' uses 'minibuffer-message'
    in the active minibuffer.


In GNU Emacs 27.0.50 (build 27, x86_64-pc-linux-gnu, GTK+ Version 3.24.5, =
cairo version 1.16.0)
 of 2019-12-01 built on strobe-lfs84
Repository revision: 9f2145f42daab13aed5cf89fdb6a7c5579819ec0
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12003000
System Description: Linux From Scratch

Configured using:
 'configure --with-cairo 'CFLAGS=3D-Og -g3'
 PKG_CONFIG_PATH=3D/opt/qt5/lib/pkgconfig'

Configured features:
XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND DBUS GSETTINGS GLIB NOTIFY
INOTIFY ACL GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS JSON PDUMPER LCMS2
GMP




Acknowledgement sent to Stephen Berman <stephen.berman@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#38457; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 8 Dec 2019 03:15:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.