From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Howard Yeh!" Newsgroups: gmane.emacs.help Subject: Re: Meta-key Madness (argh!!) Date: 2 Dec 2006 13:24:46 -0800 Organization: http://groups.google.com Message-ID: <1165094686.484095.313400@79g2000cws.googlegroups.com> References: <1164867131.959727.245990@l12g2000cwl.googlegroups.com> <85fyc1bden.fsf@lola.goethe.zz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: sea.gmane.org 1165095727 30543 80.91.229.2 (2 Dec 2006 21:42:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 2 Dec 2006 21:42:07 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Dec 02 22:42:05 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 1GqccL-0001Se-2d for geh-help-gnu-emacs@m.gmane.org; Sat, 02 Dec 2006 22:41:54 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GqccK-0007OC-ML for geh-help-gnu-emacs@m.gmane.org; Sat, 02 Dec 2006 16:41:52 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!79g2000cws.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 38 Original-NNTP-Posting-Host: 24.81.236.125 Original-X-Trace: posting.google.com 1165094692 15422 127.0.0.1 (2 Dec 2006 21:24:52 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sat, 2 Dec 2006 21:24:52 +0000 (UTC) In-Reply-To: <85fyc1bden.fsf@lola.goethe.zz> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1) Gecko/20061025 Firefox/2.0 (Swiftfox),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: 79g2000cws.googlegroups.com; posting-host=24.81.236.125; posting-account=SUX7gQ0AAAB-8FRbE-5V1YHe8sG_NjBt Original-Xref: shelby.stanford.edu gnu.emacs.help:143611 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:39213 Archived-At: David Kastrup wrote: > "Howard Yeh!" writes: > > > I can't figure out how to bind "C-[" > > > > For some reason > > > > (global-set-key "\C-[" 'insert-parentheses) > > > > unbinds all my meta keys, and pressing "C-[" gives me the ESC key. What > > gives? > > That's how things are on text terminals. On graphical terminals, > (local-set-key [C-\[] 'insert-parentheses) > could conceivably make a difference, but apparently it doesn't. You mean emacs still can't tell when used under a graphical terminal? > > I also has trouble binding c-i, m-i, because they are synonyms for > > . Though I have really ugly work around for them. Is there any > > established way to deal with this sort of problems? > > Accept that ESC is the same as C-[. I remapped c-i to c-> in emacs, and bind the function i want to c->. So emacs *can* tell apart c-i and . But simply binding to c-i doesn't work as advertised. Strangely, it works to bind C-[ in my lisp-mode. I am anal retentive about my key bindings... This is not the first time I've struggled with bindings to control key synonyms. I absolutely need C-i because I bind my arrow keys to C-i,j,k,l. This is so my hand doesn't have to move as much. The default emacs bindings are not very ergonomic.