Complete.Org: Mailing Lists: Archives: discussion: November 2000:
[aclug-L] Re: Regarding the meeting for 11/20/00
Home

[aclug-L] Re: Regarding the meeting for 11/20/00

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: discussion@xxxxxxxxx
Subject: [aclug-L] Re: Regarding the meeting for 11/20/00
From: Steven Saner <ssaner@xxxxxxxxxxxxxxx>
Date: Tue, 21 Nov 2000 15:23:51 -0600
Reply-to: discussion@xxxxxxxxx

Hey, do you know how to make emacs work with the number keypad if you
have NumLock turned on. The keypad works fine with vi or other things,
but in emacs I just get beeps. BTW, I am running emacs in terminal
mode.


On Tue, Nov 21, 2000 at 03:14:42PM -0600, Tom Hull wrote:
> Nate Bargmann wrote:
> > 
> > On Tue, Nov 21, 2000 at 11:06:42AM -0600, Tom Hull wrote:
> > > Add to your ~/.emacs file:
> > >
> > >   (global-set-key "\C-?" 'delete-char)
> > >
> > > You can test this without exiting and reloading by putting your cursor
> > > at the end of the line, then:
> > >
> > >   <ESC>-x eval-last-sexp <ENTER>
> > >
> > > Interactively, you can do:
> > >
> > >   <ESC>-x global-set-key <ENTER>
> > >
> > > Then on prompt press <DELETE>, then on prompt type:
> > >
> > >   delete-char
> > 
> > Hmmm.
> > 
> > I must have a stubborn version of Emacs.  I tried both examples and
> > <Delete> still acts like <Backspace> :(  I'm not worried, I'm sure
> > someday I'll figure it out.  I'm using GNU Emacs 20.7.2 on Debian 2.2,
> > if that makes any difference.
> 
> Sorry about that ... mine's stubborn too. I tested that DELETE worked,
> but didn't notice BACKSPACE until later. Try this (in ~/.emacs):
> 
>   (global-set-key [delete] 'delete-char)
> 
> The interactive M-x global-set-key version won't work, because the X
> keymap is returning a DEL code, so emacs is trying to remap that.
> However, the X keymap also returns DEL for BACKSPACE (use ^Q to
> verify this), so both get remapped.
> 
> Note that the [delete] mapping will only work in X. When you run
> emacs in terminal mode (even in xterm), it will only read the
> processed keyboard codes and not the raw key shifts. To change
> this you'd have to go into your X keymap and twiddle with that
> to have the keys generate distinct codes, which emacs could
> then recognize and map differently.
> 
> -- 
> /*
>  *  Tom Hull * thull@xxxxxxxxxxx * http://www.ocston.org/~thull/
>  */
> 
> -- This is the discussion@xxxxxxxxx list.  To unsubscribe,
> visit http://tmp2.complete.org/cgi-bin/listargate-aclug.cgi

-- This is the discussion@xxxxxxxxx list.  To unsubscribe,
visit http://tmp2.complete.org/cgi-bin/listargate-aclug.cgi


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