[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug in global-set-key
From: |
Eli Zaretskii |
Subject: |
Re: Bug in global-set-key |
Date: |
Wed, 7 Nov 2001 12:21:53 +0200 (IST) |
On Tue, 6 Nov 2001, Igor Lyubashevskiy wrote:
> (global-set-key "\C-x\C-3" 'hscroll-mode)
>
> actually assigns hscrill-mode to \C-x\C-s instead of \C-x\C-3.
> \C-hk for \C-x\C-3 still shows "no key assigned" but
> \C-hk for \C-x\C-s now shows hscroll-mode
I think C-3 is not a valid character, so it cannot be used in a string
(Emacs 21.1 signals an error if I try). Try this instead:
(global-set-key [?\C-x ?\C-3] 'hscroll-mode)
Note that C-3 will not work on most character terminals, so perhaps
it's not a good idea to use it as a key binding.