From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: How to prevent ESC from closing frames Date: Fri, 29 Aug 2014 10:47:04 +0700 Message-ID: References: <1faefe17-1e70-4732-80a4-b6035e4dcfee@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1409284047 4519 80.91.229.3 (29 Aug 2014 03:47:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Aug 2014 03:47:27 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: abdo.haji.ali@gmail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 29 05:47:21 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XND9j-0006wf-TT for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Aug 2014 05:47:20 +0200 Original-Received: from localhost ([::1]:39965 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XND9j-0006v3-2T for geh-help-gnu-emacs@m.gmane.org; Thu, 28 Aug 2014 23:47:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54155) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XND9Y-0006un-1Z for help-gnu-emacs@gnu.org; Thu, 28 Aug 2014 23:47:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XND9X-0001rW-30 for help-gnu-emacs@gnu.org; Thu, 28 Aug 2014 23:47:07 -0400 Original-Received: from mail-ig0-x236.google.com ([2607:f8b0:4001:c05::236]:49392) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XND9W-0001r8-Ti for help-gnu-emacs@gnu.org; Thu, 28 Aug 2014 23:47:07 -0400 Original-Received: by mail-ig0-f182.google.com with SMTP id a13so2003531igq.9 for ; Thu, 28 Aug 2014 20:47:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=DOe2KJF4JLLT4/I2OGYmvIDsmbliOyBOIIia6ViHcZI=; b=a7LbH6JXmmJ/TXBCZBMNSUEtHwTGE42/lNg4bVFSaICxRmn4zNP5IyuUgDwVMe08zy md+aWM6P9qckGwLODZV4AFuAgD1IUYRc3ZBvR4dwXUfKGvO5UzAJybGzzvyohGj70nIy nAt2AweQHa1FOveoejesg3xAtG6/TwOrS3ZuAtEBVKX+amgJaQBPx64BPgmfHtZcmWKj Fmcc/NAdClMZWAcp7c6Wh4ZhSp+SRbH2rDWLjstsBN6vflsNpX/8C+c7A2m4b6CHhC69 MWK/jxfzYWScLsW0dNwekkpy3w+gwTgwCeHUWWaQRYJmlk9xnDSjH8Tdl+Y+gPnF6Qoc KfTg== X-Received: by 10.50.43.193 with SMTP id y1mr1235805igl.32.1409284024751; Thu, 28 Aug 2014 20:47:04 -0700 (PDT) Original-Received: by 10.107.130.3 with HTTP; Thu, 28 Aug 2014 20:47:04 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: vYs4SDM4XUUbAVqwpsHD5a9cJwE X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c05::236 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:99496 Archived-At: On Thu, Aug 28, 2014 at 2:13 PM, wrote: > > Yes, emacs -Q has the same behaviour > > I wasn't very clear though. The frames close when pressing ESC three time= s in a row. > It's a habit of mine that is proving to be very inconvenient You use the term =E2=80=9Cframe=E2=80=9D but actually mean Emacs windows, t= hat=E2=80=99s why some other replies misunderstand you. C-h k ESC ESC ESC ``` ESC ESC ESC (translated from ) runs the command keyboard-escape-quit, which is an interactive compiled Lisp function in `simple.el'. It is bound to M-ESC ESC. (keyboard-escape-quit) Exit the current "mode" (in a generalized sense of the word). This command can exit an interactive command such as `query-replace', can clear out a prefix argument or a region, can get out of the minibuffer or other recursive edit, cancel the use of the current buffer (for special-purpose buffers), **or go back to just one window (by deleting all but the selected window).*= * ``` I have looked at the source of this function and it does not check any variables that could be used to control its features. So, no, you can=E2=80=99t, at least not directly. What you can do is to instead pick up the habit of pressing C-g to cancel whatever you are doing, C-M-c to get out of recursive edit, and the key you usually use to kill buffers for special-purpose buffers too. Or you can copy the source of keyboard-escape-quit, rename it to your own name, delete the alternative that deals with deleting windows, and bind your version to ESC ESC ESC.