emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/src/xterm.c


From: Kenichi Handa
Subject: [Emacs-diffs] Changes to emacs/src/xterm.c
Date: Mon, 24 Oct 2005 04:05:36 -0400

Index: emacs/src/xterm.c
diff -c emacs/src/xterm.c:1.886 emacs/src/xterm.c:1.887
*** emacs/src/xterm.c:1.886     Sun Oct 23 21:12:34 2005
--- emacs/src/xterm.c   Mon Oct 24 08:05:36 2005
***************
*** 6236,6241 ****
--- 6236,6262 ----
              goto done_keysym;
            }
  
+         /* Keysyms directly mapped to supported Unicode characters.  */
+         if ((keysym >= 0x01000100 && keysym <= 0x010033ff)
+             || (keysym >= 0x0100e000 && keysym <= 0x0100ffff))
+           {
+             int code, charset_id, c1, c2;
+ 
+             if (keysym < 0x01002500)
+               charset_id = charset_mule_unicode_0100_24ff,
+                 code = (keysym & 0xFFFF) - 0x100;
+             else if (keysym < 0x0100e000)
+               charset_id = charset_mule_unicode_2500_33ff,
+                 code = (keysym & 0xFFFF) - 0x2500;
+             else
+               charset_id = charset_mule_unicode_e000_ffff,
+                 code = (keysym & 0xFFFF) - 0xe000;
+             c1 = (code / 96) + 32, c2 = (code % 96) + 32;
+             inev.ie.kind = MULTIBYTE_CHAR_KEYSTROKE_EVENT;
+             inev.ie.code = MAKE_CHAR (charset_id, c1, c2);
+             goto done_keysym;
+           }
+ 
          /* Now non-ASCII.  */
          if (HASH_TABLE_P (Vx_keysym_table)
              && (NATNUMP (c = Fgethash (make_number (keysym),




reply via email to

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