diff src/xterm.c @ 91046:35069180a991

Fix up multi-tty merge Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-261 Creator: Stefan Monnier <monnier@iro.umontreal.ca>
author Miles Bader <miles@gnu.org>
date Fri, 12 Oct 2007 21:06:27 +0000
parents bdb3fe0ba9fa
children a0e466c4d599
line wrap: on
line diff
--- a/src/xterm.c	Fri Oct 12 01:23:15 2007 +0000
+++ b/src/xterm.c	Fri Oct 12 21:06:27 2007 +0000
@@ -6777,32 +6777,20 @@
 		copy_bufptr = coding.destination;
 	      }
 
-		require = decoding_buffer_size (&coding, nbytes);
-		p = (unsigned char *) alloca (require);
-		coding.mode |= CODING_MODE_LAST_BLOCK;
-		/* We explicitly disable composition handling because
-		   key data should not contain any composition sequence.  */
-		coding.composing = COMPOSITION_DISABLED;
-		decode_coding (&coding, copy_bufptr, p, nbytes, require);
-		nbytes = coding.produced;
-		nchars = coding.produced_char;
-		copy_bufptr = p;
-
-		/* Convert the input data to a sequence of
-		   character events.  */
-		for (i = 0; i < nbytes; i += len)
-		  {
-		    if (nchars == nbytes)
-		      c = copy_bufptr[i], len = 1;
-		    else
-		      c = STRING_CHAR_AND_LENGTH (copy_bufptr + i,
-						  nbytes - i, len);
-		    inev.ie.kind = (SINGLE_BYTE_CHAR_P (c)
-				    ? ASCII_KEYSTROKE_EVENT
-				    : MULTIBYTE_CHAR_KEYSTROKE_EVENT);
-		    inev.ie.code = c;
-		    kbd_buffer_store_event_hold (&inev.ie, hold_quit);
-		  }
+	    /* Convert the input data to a sequence of
+	       character events.  */
+	    for (i = 0; i < nbytes; i += len)
+	      {
+		if (nchars == nbytes)
+		  c = copy_bufptr[i], len = 1;
+		else
+		  c = STRING_CHAR_AND_LENGTH (copy_bufptr + i,
+					      nbytes - i, len);
+		inev.ie.kind = (SINGLE_BYTE_CHAR_P (c)
+				? ASCII_KEYSTROKE_EVENT
+				: MULTIBYTE_CHAR_KEYSTROKE_EVENT);
+		inev.ie.code = c;
+		kbd_buffer_store_event_hold (&inev.ie, hold_quit);
 	      }
 
 	    /* Previous code updated count by nchars rather than nbytes,