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: Tue, 02 Apr 2019 21:25:53 +0300 Message-ID: <577871554229553@sas1-640e2cc17194.qloud-c.yandex.net> References: <1879851553195601@myt3-2475c4d2af83.qloud-c.yandex.net> <87a7hasuz4.fsf@mail.linkov.net> <26451261554113450@myt6-add70abb4f02.qloud-c.yandex.net> <87r2alcyuj.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="178104"; 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 Tue Apr 02 20:27:31 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 1hBO89-000k7D-DN for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Apr 2019 20:27:29 +0200 Original-Received: from localhost ([127.0.0.1]:57292 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hBO88-0008TN-EF for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Apr 2019 14:27:28 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37499) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hBO7n-0008MH-F1 for bug-gnu-emacs@gnu.org; Tue, 02 Apr 2019 14:27:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hBO7k-0000h4-Gz for bug-gnu-emacs@gnu.org; Tue, 02 Apr 2019 14:27:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56383) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hBO7i-0000bA-NO for bug-gnu-emacs@gnu.org; Tue, 02 Apr 2019 14:27:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hBO7i-0001gG-DQ for bug-gnu-emacs@gnu.org; Tue, 02 Apr 2019 14:27: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: Tue, 02 Apr 2019 18:27: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.15542295666386 (code B ref 34939); Tue, 02 Apr 2019 18:27:02 +0000 Original-Received: (at 34939) by debbugs.gnu.org; 2 Apr 2019 18:26:06 +0000 Original-Received: from localhost ([127.0.0.1]:41694 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hBO6m-0001ev-Fm for submit@debbugs.gnu.org; Tue, 02 Apr 2019 14:26:06 -0400 Original-Received: from forward501j.mail.yandex.net ([5.45.198.251]:35326) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hBO6j-0001eI-GN for 34939@debbugs.gnu.org; Tue, 02 Apr 2019 14:26:03 -0400 Original-Received: from mxback21g.mail.yandex.net (mxback21g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:321]) by forward501j.mail.yandex.net (Yandex) with ESMTP id AEF0533800E8; Tue, 2 Apr 2019 21:25:54 +0300 (MSK) Original-Received: from localhost (localhost [::1]) by mxback21g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id EaCrmerWfr-PrJakZ3X; Tue, 02 Apr 2019 21:25:54 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1554229554; bh=Uxa2ij95Bm3sxFTAOtJ0GPo7rHoew+VHVctHzdrwQzo=; h=Message-Id:Cc:Subject:In-Reply-To:Date:References:To:From; b=UR+1+ZkxSwovao2lEXjPoztqZlhpDGWXXZMYWoRrNx4SYlHXvV8so6cBrmH81gNDn TIM/pd4wdBsUjAil//DqhjAzBgcto5g4LxdV0RE0PO5uaM1Kts8YFwLCU2tk0FHPQz 7W+LbT9e3HE6pvUniZ0iSwolpv6o6H9RAetuLkEI= Authentication-Results: mxback21g.mail.yandex.net; dkim=pass header.i=@yandex.ru Original-Received: by sas1-640e2cc17194.qloud-c.yandex.net with HTTP; Tue, 02 Apr 2019 21:25:53 +0300 Envelope-From: pinkanon-pinkanon@yandex.ru In-Reply-To: <87r2alcyuj.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:157102 Archived-At: > `C-x C-c' (save-buffers-kill-terminal) is a special case that > requires a special customization: > > (define-key query-replace-map [escape] 'quit) Great! Thanks, Juri! Thanks all! 01.04.2019, 23:46, "Juri Linkov" : >>>>   (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" > > Thanks for detailed test case, I misunderstood your original description, > but now it's clear. > > `C-x C-c' (save-buffers-kill-terminal) is a special case that > requires a special customization: > >   (define-key query-replace-map [escape] 'quit)