help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

keybinding mystery


From: Gordon Beaton
Subject: keybinding mystery
Date: 05 Oct 2007 08:28:02 GMT
User-agent: slrn/0.9.8.1pl1 (Linux)

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

--


reply via email to

[Prev in Thread] Current Thread [Next in Thread]