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

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

Re: C-;


From: Ehud Karni
Subject: Re: C-;
Date: Thu, 26 Oct 2000 21:37:35 +0200

On Thu, 26 Oct 2000 21:13:30 +0200, Eli Zaretskii <eliz@is.elta.co.il> wrote:
> 
> > From: "jonathan bright" <jonathan.bright@onebox.com>
> > Date: Wed, 25 Oct 2000 16:04:00 -0700
> > 
> > i'm unable to map Control SemiColon, for example:
> > 
> >     (define-key global-map "\C-;" 'forward-char)
> > 
> > i've noticed this on both linux and nt
> 
> That's because the PC keyboard doesn't generate a scancode for C-;, so
> no system that runs on a PC can have that key.

Eli, you are wrong here. The PC keyboard can produce this key (both when
used as an X emulator and for NTemacs, I checked). The problem is, \C-;
has no ASCII representation. The solution is to use vector notation:

    (define-key global-map [?\C-;] 'forward-char)

Ehud.


-- 
 @@@@@@ @@@ @@@@@@ @    @   Ehud Karni  Simon & Wiesel  Insurance agency
     @    @      @  @@  @   Tel: +972-3-6212-757    Fax: +972-3-6292-544
     @    @ @    @ @  @@    (USA)  Fax  and  voice  mail:  1-815-5509341
     @    @ @    @ @    @        Better     Safe     Than     Sorry
 http://www.simonwiesel.co.il    mailto:ehud@unix.simonwiesel.co.il



reply via email to

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