]> git.eshelyaron.com Git - emacs.git/commitdiff
(XTread_socket, KeyPress case): Clear compose_status
authorRichard M. Stallman <rms@gnu.org>
Wed, 30 Oct 1996 05:09:38 +0000 (05:09 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 30 Oct 1996 05:09:38 +0000 (05:09 +0000)
if the key has the meta modifier.

src/xterm.c

index e124df8dd4c3544bf36163153f94e5c32414f2a1..c85f79216c1c04c32d66a1099392b6e1332ab05d 100644 (file)
@@ -3732,6 +3732,14 @@ XTread_socket (sd, bufp, numchars, expected)
                                        | dpyinfo->hyper_mod_mask
                                        | dpyinfo->alt_mod_mask);
 
+                 /* In case Meta is ComposeCharacter,
+                    clear its status.  According to Markus Ehrnsperger
+                    Markus.Ehrnsperger@lehrstuhl-bross.physik.uni-muenchen.de
+                    this enables ComposeCharacter to work whether or
+                    not it is combined with Meta.  */
+                 if (modifiers & dpyinfo->meta_mod_mask)
+                   bzero (&compose_status, sizeof (compose_status));
+
 #ifdef HAVE_X_I18N
                  if (FRAME_XIC (f))
                    {