jed-users mailing list

[2002 Date Index] [2002 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

xjed and keypad, pc-select-mode


Hi, 

I'm a new (x)jed user, and I got some problems with keypad and xjed. In Linux 
Configuration Howto and on some newsgroups, people say "it's a Xwindow 
problem, configure your Xmodmap".

However my xwindow keyboard works well, xev give KP_X if X if the keypad key 
I press, quite ok I think (Xfree 4.2).

Finally the following workaround seems to work :

#ifdef XWINDOWS

%
% Xwindow keypad
%

variable KP_Substract = 0xFFAD;
variable KP_Enter = 0xFF8D;
variable KP_0 = 0xFFB0;
variable KP_1 = 0xFFB1;
variable KP_2 = 0xFFB2;
variable KP_3 = 0xFFB3;
variable KP_4 = 0xFFB4;
variable KP_5 = 0xFFB5;
variable KP_6 = 0xFFB6;
variable KP_7 = 0xFFB7;
variable KP_8 = 0xFFB8;
variable KP_9 = 0xFFB9;

x_set_keysym (KP_Substract, 0, "-");
x_set_keysym (KP_Enter, 0, "\r");
x_set_keysym (KP_0, 0, "0");
x_set_keysym (KP_1, 0, "1");
x_set_keysym (KP_2, 0, "2");
x_set_keysym (KP_3, 0, "3");
x_set_keysym (KP_4, 0, "4");
x_set_keysym (KP_5, 0, "5");
x_set_keysym (KP_6, 0, "6");
x_set_keysym (KP_7, 0, "7");
x_set_keysym (KP_8, 0, "8");
x_set_keysym (KP_9, 0, "9");

#endif

BTW, why #ifndef XWINDOWS and not XWINDOW ?

Do you know any equivalent of emacs's pc-select-mode, I can't find some, and 
I'm going to write one if it doesn't exist yet.

Last thing, is there an equivalent of "C-c C-\" binding in emacs (add slashes 
at the end of each line of a region, useful in C macros definition) ?

Thanks,

-- 
Nicolas Burrus

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2002 date index] [2002 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]