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

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

Re: keybinding mystery


From: Tassilo Horn
Subject: Re: keybinding mystery
Date: Fri, 05 Oct 2007 11:40:41 +0200
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux)

Gordon Beaton <address@hidden> writes:

Hi Gordon,

> I map ctrl-= to a function like this:
>
>  (global-set-key [(ctrl =)] 'gb-match-paren)

I'd recommend using (kbd "C-=") instead of [(ctrl =)].  It looks clearer
because it uses the format emacs uses for printing keybindings, too.
But that doesn't have anything to do with your problem, both forms are
equivalent.

> 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:

Yes, various bindings are not available inside terminals.  It's a
terminal limitation, not an emacs one.

> How should I bind this key to my function so that it works in both
> cases?

Generally speaking, all keys like C-X where X is a alphabetical or
numerical letter should work in both cases.

Bye,
Tassilo


reply via email to

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