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: Mon, 27 May 2019 23:15:34 +0300 Organization: LINKOV.NET Message-ID: <87imtvd57d.fsf@mail.linkov.net> References: <1879851553195601@myt3-2475c4d2af83.qloud-c.yandex.net> <87a7hasuz4.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="52558"; 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 Mon May 27 22:17:19 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 1hVM3Y-000DUu-Iy for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 May 2019 22:17:16 +0200 Original-Received: from localhost ([127.0.0.1]:50260 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVM3X-00077t-2N for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 May 2019 16:17:15 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:53399) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVM3Q-00077k-Ov for bug-gnu-emacs@gnu.org; Mon, 27 May 2019 16:17:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hVM3O-00078l-Sc for bug-gnu-emacs@gnu.org; Mon, 27 May 2019 16:17:08 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40707) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hVM3K-00076L-PB for bug-gnu-emacs@gnu.org; Mon, 27 May 2019 16:17:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hVM3K-0000M1-Jr for bug-gnu-emacs@gnu.org; Mon, 27 May 2019 16:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 May 2019 20:17:02 +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.15589881801305 (code B ref 34939); Mon, 27 May 2019 20:17:02 +0000 Original-Received: (at 34939) by debbugs.gnu.org; 27 May 2019 20:16:20 +0000 Original-Received: from localhost ([127.0.0.1]:54250 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hVM2e-0000Kz-IG for submit@debbugs.gnu.org; Mon, 27 May 2019 16:16:20 -0400 Original-Received: from cichlid.maple.relay.mailchannels.net ([23.83.214.36]:22923) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hVM2c-0000Kq-8C for 34939@debbugs.gnu.org; Mon, 27 May 2019 16:16:19 -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 6F90814194C; Mon, 27 May 2019 20:16:16 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a50.g.dreamhost.com (100-96-88-48.trex.outbound.svc.cluster.local [100.96.88.48]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id D1306141FD0; Mon, 27 May 2019 20:16:15 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a50.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); Mon, 27 May 2019 20:16:16 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Squirrel-Shoe: 23d9d6fc215e8915_1558988176294_3743755973 X-MC-Loop-Signature: 1558988176294:3659015010 X-MC-Ingress-Time: 1558988176293 Original-Received: from pdx1-sub0-mail-a50.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a50.g.dreamhost.com (Postfix) with ESMTP id 64C62832A6; Mon, 27 May 2019 13:16:10 -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=YFppzO zprexcDc2ZlztrtueQHfU=; b=Cs8Uq9q0Fa2bUuNts1Wem5TF8dKvIPLjjNhgKW A2JyK9Q3y3L3nw7PozovPBi2hU/YpKQIiHpMH3Ea4rBUy47RKJkMUhR+GbGORI3P Q2PWHziTWbPYmBP8j6Ztgzo3GbMQWU4XAAdvWlbe/sP+yVrYPunRxmsEeOFRcl49 zgKoY= Original-Received: from mail.jurta.org (m91-129-96-73.cust.tele2.ee [91.129.96.73]) (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-a50.g.dreamhost.com (Postfix) with ESMTPSA id E6BBF83283; Mon, 27 May 2019 13:16:06 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a50 In-Reply-To: (Dmitry Gutov's message of "Sat, 25 May 2019 01:49:00 +0300") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduuddruddvfedgudegucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgfgsehtkeertddtreejnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledrleeirdejfeenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrdeliedrjeefpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtohepughguhhtohhvseihrghnuggvgidrrhhunecuvehluhhsthgvrhfuihiivgeptd 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:159826 Archived-At: >> There is a special function minibuffer-message for this purpose: >> >> (add-hook 'minibuffer-setup-hook >> (lambda () >> (setq-local command-error-function >> (lambda (error context _command) >> (minibuffer-message >> (concat context (get (car error) >> 'error-message)))))= )) > > So um, what's the best way to make this behavior the default? This is a nice behavior but the problem is that overriding command-error-function also removes other useful default features such as logging error messages to the *Messages* buffer (see more at =E2=80=98print_error_message=E2=80=99).