From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#38457: 27.0.50; dabbrev-expand regression due to message change Date: Sun, 08 Dec 2019 07:18:09 +0200 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="89293"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: K-9 Mail for Android Cc: stephen.berman@gmx.net To: 38457@debbugs.gnu.org, juri@linkov.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 08 06:19:25 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1idoyZ-000N5J-PY for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Dec 2019 06:19:23 +0100 Original-Received: from localhost ([::1]:55858 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1idoyX-0008Ss-VE for geb-bug-gnu-emacs@m.gmane.org; Sun, 08 Dec 2019 00:19:21 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37130) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1idoyI-0008SG-NP for bug-gnu-emacs@gnu.org; Sun, 08 Dec 2019 00:19:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1idoyH-00057e-08 for bug-gnu-emacs@gnu.org; Sun, 08 Dec 2019 00:19:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44364) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1idoyF-00054a-29 for bug-gnu-emacs@gnu.org; Sun, 08 Dec 2019 00:19:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1idoyD-0007cv-UL for bug-gnu-emacs@gnu.org; Sun, 08 Dec 2019 00:19:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 Dec 2019 05:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38457 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org,Juri Linkov X-Debbugs-Original-Cc: 38457@debbugs.gnu.org, stephen.berman@gmx.net Original-Received: via spool by submit@debbugs.gnu.org id=B.157578230129254 (code B ref -1); Sun, 08 Dec 2019 05:19:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Dec 2019 05:18:21 +0000 Original-Received: from localhost ([127.0.0.1]:50334 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1idoxY-0007bj-Q4 for submit@debbugs.gnu.org; Sun, 08 Dec 2019 00:18:21 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:51621) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1idoxX-0007ba-Is for submit@debbugs.gnu.org; Sun, 08 Dec 2019 00:18:19 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33900) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1idoxW-0008PQ-Fv for bug-gnu-emacs@gnu.org; Sun, 08 Dec 2019 00:18:19 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:41595) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1idoxT-0002sF-Qp; Sun, 08 Dec 2019 00:18:16 -0500 Original-Received: from [109.253.218.96] (port=31850 helo=[10.134.197.159]) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1idoxS-0007O0-Vh; Sun, 08 Dec 2019 00:18:15 -0500 In-Reply-To: <83k177ebs0.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:173031 Archived-At: On December 8, 2019 5:28:31 AM GMT+02:00, Eli Zaretskii wr= ote: > > From: Juri Linkov > > Cc: stephen=2Eberman@gmx=2Enet, 38457@debbugs=2Egnu=2Eorg > > Date: Sun, 08 Dec 2019 01:05:03 +0200 > >=20 > > > I just suggested another possible solution: bind > > > 'minibuffer-message-timeout' to zero when calling > 'minibuffer-message' > > > from 'message'=2E Would that work, or will it have some unwanted > side > > > effects? > >=20 > > K=C3=A9vin posted a patch that binds 'minibuffer-message-timeout' to > zero, but > > it makes each message disappear before the user has a chance to read > it=2E >=20 > But that's how 'message' behaved as well, didn't it? In case the answer is NO, here's an alternative proposal=2E The original problem which the change in 'message' tried to solve, the one= reported in bugs #17272 and #19064, was about calling 'message' when y-or-= n-p is prompting the user=2E So how about if we modify the conditions unde= r which 'message' calls 'minibuffer-message' such that this happens only wh= en y-or-n-p is in progress? E=2Eg=2E, y-or-n-p could bind some variable th= at 'message' would check=2E Maybe yes-or-no-p should do the same=2E This will allow us to fix the original bugs without such wide implications= as we have now=2E And while at that, I don't think we need the new function message-on-echo-= area; the additional logic could be added to 'message's original code=2E WDYT?