From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#34939: Some minibuffer behaviour is annoying Date: Sun, 07 Apr 2019 23:43:01 +0300 Organization: LINKOV.NET Message-ID: <877ec5zgeq.fsf@mail.linkov.net> References: <1879851553195601@myt3-2475c4d2af83.qloud-c.yandex.net> <87a7hasuz4.fsf@mail.linkov.net> <87lg0tbjmj.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="171935"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: pinkanon pinkanon , 34939@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 07 22:57:11 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hDEqk-000iYW-3F for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Apr 2019 22:57:10 +0200 Original-Received: from localhost ([127.0.0.1]:43473 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hDEqj-0005ED-5g for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Apr 2019 16:57:09 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:43109) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hDEqd-0005Dx-67 for bug-gnu-emacs@gnu.org; Sun, 07 Apr 2019 16:57:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hDEqb-0007WD-TV for bug-gnu-emacs@gnu.org; Sun, 07 Apr 2019 16:57:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35231) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hDEqb-0007W2-Ld for bug-gnu-emacs@gnu.org; Sun, 07 Apr 2019 16:57:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hDEqb-0007ru-Jo for bug-gnu-emacs@gnu.org; Sun, 07 Apr 2019 16:57:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 Apr 2019 20:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34939 X-GNU-PR-Package: emacs Original-Received: via spool by 34939-submit@debbugs.gnu.org id=B34939.155467057230192 (code B ref 34939); Sun, 07 Apr 2019 20:57:01 +0000 Original-Received: (at 34939) by debbugs.gnu.org; 7 Apr 2019 20:56:12 +0000 Original-Received: from localhost ([127.0.0.1]:48775 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hDEpo-0007qu-86 for submit@debbugs.gnu.org; Sun, 07 Apr 2019 16:56:12 -0400 Original-Received: from bisque.maple.relay.mailchannels.net ([23.83.214.18]:2459) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hDEpm-0007qm-Ms for 34939@debbugs.gnu.org; Sun, 07 Apr 2019 16:56:11 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 146A95E1D30; Sun, 7 Apr 2019 20:56:07 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a60.g.dreamhost.com (100-96-6-122.trex.outbound.svc.cluster.local [100.96.6.122]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 956355E11B6; Sun, 7 Apr 2019 20:56:06 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a60.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.17.2); Sun, 07 Apr 2019 20:56:07 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Invention-Exultant: 46afe1f50bfcabd3_1554670566919_3196417386 X-MC-Loop-Signature: 1554670566919:140665592 X-MC-Ingress-Time: 1554670566918 Original-Received: from pdx1-sub0-mail-a60.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a60.g.dreamhost.com (Postfix) with ESMTP id 5B6EC80288; Sun, 7 Apr 2019 13:56:01 -0700 (PDT) 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=JTPM4j t7FdCf2DZS8R/Qg06bkTM=; b=CiNe9GizCz0HPK1sac4hz4Ka3X6AdQdI+UlR3G gNwJKLKKCCQGAiBn3dqEMQAOBlEOJtEy3Jk2mqcoaRjILWuruPXTXuPkyt7iKLme qbHwZmeJbLfTnXjLN9iFpSBF7jPSUYLMJopuCrEAw9DSgE7uYFZdQ/aEPmxi+vcq B8Doo= Original-Received: from mail.jurta.org (m91-129-99-202.cust.tele2.ee [91.129.99.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a60.g.dreamhost.com (Postfix) with ESMTPSA id CFAA38027A; Sun, 7 Apr 2019 13:55:58 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a60 In-Reply-To: <87lg0tbjmj.fsf@mail.linkov.net> (Juri Linkov's message of "Mon, 01 Apr 2019 23:29:16 +0300") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduuddruddugdduheegucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgfgsehtkeertddtreejnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledrleelrddvtddvnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledrleelrddvtddvpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtohepughguhhtohhvseihrghnuggvgidrrhhunecuvehluhhsthgvrhfuihiivgeptd 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:157326 Archived-At: >>> Messages in the echo area should never conceal the minibuffer. Perio= d. >>> >>> There is a special function minibuffer-message for this purpose: >> >> Shouldn't we make this behavior the default, then? > > I agree it should be the default. But unfortunately I have no idea > how to do this. Both ways to catch error signals in the minibuffer: > > 1. Overriding the default error function with command-error-function; > > 2. Using condition-case like > > (condition-case lossage > ... minibuffer reading ... > (text-read-only > (minibuffer-message (get (car lossage) 'error-message))))) > > Both they override the default error handling called by > =E2=80=98error-message-string=E2=80=99 in the function =E2=80=98print_e= rror_message=E2=80=99 > that performs many useful things that include logging of error > messages in the *Messages* buffer. Overriding the default error > function will exclude this useful default behavior. Another variant is to extend 'echo_area_display' to use 'minibufer-message' in case of the active minibuffer. More radical approach is to disjoint the minibuffer from the echo area and display them separately one above another.