From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Gordon Beaton Newsgroups: gmane.emacs.help Subject: keybinding mystery Date: 05 Oct 2007 08:28:02 GMT Organization: - Message-ID: <4705f592$0$3198$8404b019@news.wineasy.se> NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1191573767 1925 80.91.229.12 (5 Oct 2007 08:42:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 5 Oct 2007 08:42:47 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 05 10:42:41 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IdilV-0006CA-O2 for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Oct 2007 10:42:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IdilR-0004QS-7Q for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Oct 2007 04:42:29 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!goblin1!goblin2!goblin.stu.neva.ru!fi.sn.net!newsfeed1.fi.sn.net!news.song.fi!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: slrn/0.9.8.1pl1 (Linux) Original-Lines: 21 Original-NNTP-Posting-Host: cube.smaltan.org Original-X-Trace: 1191572882 news.wineasy.se 3198 195.42.215.17:1299 Original-X-Complaints-To: abuse@tdcsong.se Original-Xref: shelby.stanford.edu gnu.emacs.help:152619 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:48127 Archived-At: I map ctrl-= to a function like this: (global-set-key [(ctrl =)] 'gb-match-paren) This works fine, unless I run "emacs -nw". However If I run "emacs -nw" (or "emacs -nw -q --no-site-file"), this key combination inserts "=" into my text. describe-key seems to confirm that "ctrl" is lost: = runs the command self-insert-command This is emacs 22.1 on Linux. Other commands that use ctrl don't behave this way. How should I bind this key to my function so that it works in both cases? /gordon --