On 23/03/16 02:05, Rob Browning wrote:
Dmitry Alexandrov <321...@gmail.com> writes:
However, when logical keyboard layout of X11 has more than one Delete
key — for example if I map delete key on numpad to regular ‘Delete’:
$ xmodmap -e 'keycode 91 = Delete KP_Decimal Delete KP_Separator'
and restart Emacs, then *both* regular Delete and numpad Delete start to
delete backward (like Backspace) and <f1> k <delete> says: ‘DEL
(translated from <delete>)...’.
What does xev say those keys generate after the change?
Exactly the same as was before the change for Delete key (which is
pretty logical — I did nothing with it):
KeyPress event, serial 39, synthetic NO, window 0x4000001,
root 0x2c5, subw 0x0, time 517319829, (-539,523), root:(121,544),
state 0x4000, keycode 119 (keysym 0xffff, Delete), same_screen YES,
XLookupString gives 1 bytes: (7f) ""
XmbLookupString gives 1 bytes: (7f) ""
XFilterEvent returns: False
KeyRelease event, serial 39, synthetic NO, window 0x4000001,
root 0x2c5, subw 0x0, time 517319930, (-539,523), root:(121,544),
state 0x4000, keycode 119 (keysym 0xffff, Delete), same_screen YES,
XLookupString gives 1 bytes: (7f) ""
XFilterEvent returns: False
While keypad Delete was:
KeyPress event, serial 39, synthetic NO, window 0x4000001,
root 0x2c5, subw 0x0, time 517643626, (-939,555), root:(249,576),
state 0x4000, keycode 91 (keysym 0xff9f, KP_Delete), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 39, synthetic NO, window 0x4000001,
root 0x2c5, subw 0x0, time 517643754, (-939,555), root:(249,576),
state 0x4000, keycode 91 (keysym 0xff9f, KP_Delete), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
and became:
KeyPress event, serial 39, synthetic NO, window 0x4000001,
root 0x2c5, subw 0x0, time 517715787, (-811,588), root:(377,609),
state 0x4000, keycode 91 (keysym 0xffff, Delete), same_screen YES,
XLookupString gives 1 bytes: (7f) ""
XmbLookupString gives 1 bytes: (7f) ""
XFilterEvent returns: False
KeyRelease event, serial 39, synthetic NO, window 0x4000001,
root 0x2c5, subw 0x0, time 517715920, (-811,588), root:(377,609),
state 0x4000, keycode 91 (keysym 0xffff, Delete), same_screen YES,
XLookupString gives 1 bytes: (7f) ""
XFilterEvent returns: False
Does your question mean that this odd behaviour is not reproducible on
your machine?