>>>> "AM" == Alexey Mahotkin
<alexm(a)hsys.msk.ru> writes:
AM> Details (substitute actual characters instead of (0xFF) and (0xCA)):
AM> (put 'Cyrillic_HARDSIGN 'ascii-character ?\xff) ===> ?(0xFF)
AM> (get 'Cyrillic_HARDSIGN 'ascii-character) ===> ?(0xFF)
AM> But when I try to type that character, it shows
AM> (0xCA)
AM> and after that:
AM> (get 'Cyrillic_HARDSIGN 'ascii-character) ===> ?(0xCA)
AM> setting it again with `put' yields the same results.
The only place where there is
(put 'ascii-character x_keysym_to_character())
with hardcoded 8859-5 value is in
maybe_define_x_key_as_self_inserting_character.
I've used gdb, set breakpoint to
maybe_define_x_key_as_self_inserting_character if (keysym == 0x6ff)
(0x6ff == 1791 == Cyrillic_HARDSIGN)
Every time I type HARDSIGN, breakpoint appears, with the following
backtrace:
(gdb) bt
#0 maybe_define_x_key_as_self_inserting_character (keysym=1791,
symbol=138277596) at /var/src/xemacs-21.4.1/src/event-Xt.c:188
#1 0x816531a in x_reset_key_mapping (d=0x8239058)
at /var/src/xemacs-21.4.1/src/event-Xt.c:356
#2 0x81699e0 in emacs_Xt_mapping_action (w=0x84463c8, event=0xbffff62c)
at /var/src/xemacs-21.4.1/src/event-Xt.c:864
#3 0x400fa683 in _XtMatchAtom () from /usr/X11R6/lib/libXt.so.6
#4 0x400faaeb in _XtMatchAtom () from /usr/X11R6/lib/libXt.so.6
#5 0x400fb004 in _XtTranslateEvent () from /usr/X11R6/lib/libXt.so.6
#6 0x400fb25d in _XtTraverseStateTree () from /usr/X11R6/lib/libXt.so.6
#7 0x400ce27d in XtCallCallbackList () from /usr/X11R6/lib/libXt.so.6
#8 0x400e3a4b in _XtRefreshMapping () from /usr/X11R6/lib/libXt.so.6
#9 0x400d96de in XtDispatchEvent () from /usr/X11R6/lib/libXt.so.6
#10 0x400e3f51 in XtAppProcessEvent () from /usr/X11R6/lib/libXt.so.6
#11 0x8168bb9 in emacs_Xt_next_event (emacs_event=0x840f970)
at /var/src/xemacs-21.4.1/src/event-Xt.c:2703
#12 0x80d08ee in event_stream_next_event (event=0x840f970)
at /var/src/xemacs-21.4.1/src/event-stream.c:499
#13 0x80d1a4c in next_event_internal (target_event=138475888, allow_queued=1)
at /var/src/xemacs-21.4.1/src/event-stream.c:1959
#14 0x80d1de7 in Fnext_event (event=138475888, prompt=136251236)
at /var/src/xemacs-21.4.1/src/event-stream.c:2178
#15 0x8091143 in Fcommand_loop_1 () at /var/src/xemacs-21.4.1/src/cmdloop.c:574
#16 0x80913bd in command_loop_1 (dummy=136251236)
at /var/src/xemacs-21.4.1/src/cmdloop.c:494
. . . hope that next lines are irrelevant . . .
As you see, there is x_reset_key_mapping() every time I type a Cyrillic
character. I do not think it is feature.... Any thoughts?
I have XFree 3.6.6 (-11potato, I'm running Debian).
Thank you,
--alexm