emacs-devel
[Top][All Lists]
Advanced

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

Re: assertion failed: c == event->code


From: Juanma Barranquero
Subject: Re: assertion failed: c == event->code
Date: Sun, 16 Dec 2007 16:19:19 +0100

Unless someone opposes, I'm gonna install this change.

This is the best of both worlds: the C-ñ, C-ç, etc. keystrokes do not
trigger the assertion, and they are not ignored by Emacs.

             Juanma


Index: src/w32term.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/w32term.c,v
retrieving revision 1.277
diff -u -2 -r1.277 w32term.c
--- src/w32term.c       16 Dec 2007 04:31:47 -0000      1.277
+++ src/w32term.c       16 Dec 2007 14:51:58 -0000
@@ -4338,5 +4338,5 @@
                   inev.code = msg.msg.wParam;
                 }
-              else if (msg.msg.wParam < 256)
+              else
                 {
                   wchar_t code;
@@ -4414,12 +4414,4 @@
                     }
                 }
-              else
-                {
-                  /* Windows shouldn't generate WM_CHAR events above 0xFF
-                     in non-Unicode message handlers.  */
-                  DebPrint (("Non-byte WM_CHAR: %d\n", msg.msg.wParam));
-                  inev.kind = NO_EVENT;
-                  break;
-                }
              inev.modifiers = msg.dwModifiers;
              XSETFRAME (inev.frame_or_window, f);

reply via email to

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