From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Yevgeniy Makarov" Newsgroups: gmane.emacs.help Subject: Re: Making ESC not a prefix key while keeping Alt = Meta Date: 9 Sep 2006 18:24:54 -0700 Organization: http://groups.google.com Message-ID: <1157851494.463384.244420@i3g2000cwc.googlegroups.com> References: <1157748592.520351.123650@i3g2000cwc.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1157852438 19064 80.91.229.2 (10 Sep 2006 01:40:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 10 Sep 2006 01:40:38 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Sep 10 03:40:37 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GMEJD-0006aO-5u for geh-help-gnu-emacs@m.gmane.org; Sun, 10 Sep 2006 03:40:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GMEJC-0005mp-Oy for geh-help-gnu-emacs@m.gmane.org; Sat, 09 Sep 2006 21:40:30 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!i3g2000cwc.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-NNTP-Posting-Host: 129.79.245.19 Original-X-Trace: posting.google.com 1157851499 24491 127.0.0.1 (10 Sep 2006 01:24:59 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 10 Sep 2006 01:24:59 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.5) Gecko/20060726 Red Hat/1.5.0.5-0.el4.1 Firefox/1.5.0.5 pango-text,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: i3g2000cwc.googlegroups.com; posting-host=129.79.245.19; posting-account=jZLLag0AAACIndabW1GuVi-ROZuf5LGz Original-Xref: shelby.stanford.edu gnu.emacs.help:141641 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:37263 Archived-At: Kevin Rodgers wrote: > (global-set-key "\0" (global-key-binding "\e")) > (setq meta-prefix-char ?\0) > (global-unset-key "\e") This indeed disassociates ESC from Alt; however, ESC remains a prefix key. For example, when I press ESC, Emacs waits a little and then displays "ESC-" in the minibuffer, waiting for the second key in the sequence. A similar thing happens when I press C-h ESC (describe key briefly). When I say (global-set-key "\e" 'keyboard-quit) this indeed puts keyboard-quit function in the global-keymap where ESC-prefix used to be. However, ESC does not become a synonym for C-g: for example, when I do C-x C-f (find file), I can't terminate input using ESC. Yevgeniy