unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Can't bind "\C-=" and "\C-+" keys
@ 2002-10-10 13:26 d2002xx
  2002-10-10 14:06 ` Stefan Monnier <foo@acm.com>
  0 siblings, 1 reply; 3+ messages in thread
From: d2002xx @ 2002-10-10 13:26 UTC (permalink / raw)


Hi all.

When I bind the two keys by (global-set-key "\C-=" 'undo) and
(global-set-key "\C-+" 'redo), Emacs says "Invalid modifiers in
string".

But interactively using global-set-key works well, does somebody know
what's the problem?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Can't bind "\C-=" and "\C-+" keys
  2002-10-10 13:26 Can't bind "\C-=" and "\C-+" keys d2002xx
@ 2002-10-10 14:06 ` Stefan Monnier <foo@acm.com>
  2002-10-12 12:45   ` Unknown
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier <foo@acm.com> @ 2002-10-10 14:06 UTC (permalink / raw)


>>>>> "d2002xx" == d2002xx  <d2002xx@myrealbox.com> writes:
> When I bind the two keys by (global-set-key "\C-=" 'undo) and
> (global-set-key "\C-+" 'redo), Emacs says "Invalid modifiers in
> string".

C-= and C-+ are not characters, so you can't put them into a string.
Thus you need to use something like

        (global-set-key [(control ?+)] 'redo)


-- Stefan

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Can't bind "\C-=" and "\C-+" keys
  2002-10-10 14:06 ` Stefan Monnier <foo@acm.com>
@ 2002-10-12 12:45   ` Unknown
  0 siblings, 0 replies; 3+ messages in thread
From: Unknown @ 2002-10-12 12:45 UTC (permalink / raw)


**** Post for FREE via your newsreader at post.usenet.com ****

The nice guy "Stefan Monnier <foo@acm.com>"
<monnier+gnu.emacs.help/news/@flint.cs.yale.edu> wrote:

>>>>>> "d2002xx" == d2002xx  <d2002xx@myrealbox.com> writes:
>> When I bind the two keys by (global-set-key "\C-=" 'undo) and
>> (global-set-key "\C-+" 'redo), Emacs says "Invalid modifiers in
>> string".
>
> C-= and C-+ are not characters, so you can't put them into a string.
> Thus you need to use something like
>
>         (global-set-key [(control ?+)] 'redo)

It works!! Thank you!!!

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 *** Usenet.com - The #1 Usenet Newsgroup Service on The Planet! ***
                      http://www.usenet.com
Unlimited Download - 19 Seperate Servers - 90,000 groups - Uncensored
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-10-12 12:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-10 13:26 Can't bind "\C-=" and "\C-+" keys d2002xx
2002-10-10 14:06 ` Stefan Monnier <foo@acm.com>
2002-10-12 12:45   ` Unknown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).