From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: pinkanon pinkanon Newsgroups: gmane.emacs.bugs Subject: bug#34939: Some minibuffer behaviour is annoying Date: Mon, 01 Apr 2019 13:10:50 +0300 Message-ID: <26451261554113450@myt6-add70abb4f02.qloud-c.yandex.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: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="28589"; mail-complaints-to="usenet@blaine.gmane.org" Cc: "34939@debbugs.gnu.org" <34939@debbugs.gnu.org> To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 01 12:11: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 1hAtuR-0007Lq-BI for geb-bug-gnu-emacs@m.gmane.org; Mon, 01 Apr 2019 12:11:19 +0200 Original-Received: from localhost ([127.0.0.1]:49697 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hAtuQ-00076E-6L for geb-bug-gnu-emacs@m.gmane.org; Mon, 01 Apr 2019 06:11:18 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:54038) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hAtuJ-000766-UC for bug-gnu-emacs@gnu.org; Mon, 01 Apr 2019 06:11:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hAtuH-0003if-U5 for bug-gnu-emacs@gnu.org; Mon, 01 Apr 2019 06:11:11 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53550) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hAtuA-0003er-BZ for bug-gnu-emacs@gnu.org; Mon, 01 Apr 2019 06:11:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hAtuA-0000M6-4s for bug-gnu-emacs@gnu.org; Mon, 01 Apr 2019 06:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: pinkanon pinkanon Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 01 Apr 2019 10:11: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.15541134611362 (code B ref 34939); Mon, 01 Apr 2019 10:11:02 +0000 Original-Received: (at 34939) by debbugs.gnu.org; 1 Apr 2019 10:11:01 +0000 Original-Received: from localhost ([127.0.0.1]:38861 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hAtu9-0000Lr-80 for submit@debbugs.gnu.org; Mon, 01 Apr 2019 06:11:01 -0400 Original-Received: from forward501o.mail.yandex.net ([37.140.190.203]:56592) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hAtu6-0000Lb-LE for 34939@debbugs.gnu.org; Mon, 01 Apr 2019 06:11:00 -0400 Original-Received: from mxback8g.mail.yandex.net (mxback8g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:169]) by forward501o.mail.yandex.net (Yandex) with ESMTP id 794321E80191; Mon, 1 Apr 2019 13:10:51 +0300 (MSK) Original-Received: from localhost (localhost [::1]) by mxback8g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id m99B5E9gWR-AovGiRO6; Mon, 01 Apr 2019 13:10:50 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1554113450; bh=gdd1HoYUpKGQP+67hR4E+ryJjFiPO8yaRCcb6mD5zkc=; h=Message-Id:Cc:Subject:In-Reply-To:Date:References:To:From; b=CURpMSxHvwq4yyRHEwcHkRazq/pxDW/ozWNnOBCx8taddZyFsKL3HJQRqw2Bi0xlu 1v9QsO7DHCBoj/fIV1xSKjE4QVCI3PQTve21z5RH1mcATOrrBbA1JBcC7Q+umYTPzA jyturEJHqskZulI9AnZgEtcW4SDvp3ZtfGhe9pvs= Authentication-Results: mxback8g.mail.yandex.net; dkim=pass header.i=@yandex.ru Original-Received: by myt6-add70abb4f02.qloud-c.yandex.net with HTTP; Mon, 01 Apr 2019 13:10:50 +0300 Envelope-From: pinkanon-pinkanon@yandex.ru In-Reply-To: <87a7hasuz4.fsf@mail.linkov.net> X-Mailer: Yamail [ http://yandex.ru ] 5.0 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:157016 Archived-At: 31.03.2019, 23:16, "Juri Linkov" : > Messages in the echo area should not conceal the minibuffer. Period. > > 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))))))) > This does the job! Thank you, Juri. >>  (2) When I try to quit and some buffer is unchanged, I get the usual >>  deal asking me what I want. The problem I have here [in addition to >>  the problem discussed in (1), adapted to this case: "Type C-h for >>  help."] is that I must use C-g, but not good old escape. > > To avoid all such problems, just bind keyboard-escape-quit globally > when not on a tty where an ESC prefix still might be needed: > >   (when window-system >     (define-key global-map [escape] 'keyboard-escape-quit)) I have no luck w/ this one, though. Emacs 26.1 build 1, Arch Linux. steps: emacs -Q somefile -> Eval the code -> type something -> C-x C-c -> "Save file...? ..." -> Escape -> "Type C-h for help"