emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/src/keymap.c,v


From: Kenichi Handa
Subject: [Emacs-diffs] Changes to emacs/src/keymap.c,v
Date: Tue, 26 Sep 2006 04:16:59 +0000

CVSROOT:        /cvsroot/emacs
Module name:    emacs
Changes by:     Kenichi Handa <handa>   06/09/26 04:16:59

Index: keymap.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/keymap.c,v
retrieving revision 1.338
retrieving revision 1.339
diff -u -b -r1.338 -r1.339
--- keymap.c    25 Sep 2006 04:38:18 -0000      1.338
+++ keymap.c    26 Sep 2006 04:16:59 -0000      1.339
@@ -2385,8 +2385,14 @@
       else
        SPLIT_CHAR (without_bits, charset, c1, c2);
 
-      if (charset
-         && CHAR_VALID_P (charset, 1)
+      if (! CHAR_VALID_P (without_bits, 1))
+       {
+         char buf[256];
+
+         sprintf (buf, "Invalid char code %d", XINT (key));
+         return build_string (buf);
+       }
+      else if (charset
          && ((c1 == 0 && c2 == -1) || c2 == 0))
        {
          /* Handle a generic character.  */




reply via email to

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