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: 11 Sep 2006 19:36:30 -0700 Organization: http://groups.google.com Message-ID: <1158028590.059775.95820@h48g2000cwc.googlegroups.com> References: <1157748592.520351.123650@i3g2000cwc.googlegroups.com> <1157851494.463384.244420@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 1158028874 11772 80.91.229.2 (12 Sep 2006 02:41:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 12 Sep 2006 02:41:14 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 12 04:41:13 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 1GMyD0-0004LM-7O for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Sep 2006 04:41:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GMyCz-0005Ne-QI for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Sep 2006 22:41:09 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!h48g2000cwc.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 28 Original-NNTP-Posting-Host: 129.79.245.19 Original-X-Trace: posting.google.com 1158028593 28586 127.0.0.1 (12 Sep 2006 02:36:33 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 12 Sep 2006 02:36:33 +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: h48g2000cwc.googlegroups.com; posting-host=129.79.245.19; posting-account=jZLLag0AAACIndabW1GuVi-ROZuf5LGz Original-Xref: shelby.stanford.edu gnu.emacs.help:141679 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:37301 Archived-At: > Apparently some modes bind ESC locally e.g. lisp-interaction-mode > (*scratch) and help-mode (*Help*). So you'd need to put > (local-unset-key "\e") in each such mode's hook. You are right. The local keymap for *scratch* buffer defined ESC. After I unset it, I ran (key-binding "\e") and the answer was nil. After that, I entered > (let ((input-mode (current-input-mode))) > (setcar (nthcdr 3 input-mode) ?\e) ; QUIT = ESC > (set-input-mode input-mode)) replacing (set-input-mode input-mode) with (apply 'set-input-mode input-mode), but pressing ESC when the minibuffer is active (e.g., during entering a filename) still has no effect. After I said (global-set-key "\e" 'keyboard-quit) pressing ESC in the scratch buffer causes the word "Quit" to appear in the minibuffer, but pressing ESC in the minibuffer still has no effect. Yevgeniy