aboutsummaryrefslogtreecommitdiffstats
path: root/src/keyboard.c
diff options
context:
space:
mode:
authorStefan Monnier2013-05-23 09:23:45 -0400
committerStefan Monnier2013-05-23 09:23:45 -0400
commit2af0948d2c7abccc2a8b3fb9b168a0e971f214c7 (patch)
treed25b8b080b2b441c871c01740934f7fe27e72a15 /src/keyboard.c
parent179a3f11d15cbc6e433f05e03cc7e40fd5ce8362 (diff)
downloademacs-2af0948d2c7abccc2a8b3fb9b168a0e971f214c7.tar.gz
emacs-2af0948d2c7abccc2a8b3fb9b168a0e971f214c7.zip
* src/keyboard.c (read_decoded_char): Don't decode under w32.
Fixes: debbugs:14403
Diffstat (limited to 'src/keyboard.c')
-rw-r--r--src/keyboard.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index 39591569bf8..7f863269a7e 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -6827,6 +6827,8 @@ tty_read_avail_input (struct terminal *terminal,
6827 /* XXX I think the following code should be moved to separate hook 6827 /* XXX I think the following code should be moved to separate hook
6828 functions in system-dependent files. */ 6828 functions in system-dependent files. */
6829#ifdef WINDOWSNT 6829#ifdef WINDOWSNT
6830 /* FIXME: AFAIK, tty_read_avail_input is not used under w32 since the non-GUI
6831 code sets read_socket_hook to w32_console_read_socket instead! */
6830 return 0; 6832 return 0;
6831#else /* not WINDOWSNT */ 6833#else /* not WINDOWSNT */
6832 if (! tty->term_initted) /* In case we get called during bootstrap. */ 6834 if (! tty->term_initted) /* In case we get called during bootstrap. */
@@ -8700,6 +8702,10 @@ read_decoded_char (int commandflag, Lisp_Object map,
8700 { 8702 {
8701 Lisp_Object nextevt 8703 Lisp_Object nextevt
8702 = read_char (commandflag, map, prev_event, used_mouse_menu, NULL); 8704 = read_char (commandflag, map, prev_event, used_mouse_menu, NULL);
8705#ifdef WINDOWSNT
8706 /* w32_console already returns decoded events. */
8707 return nextevt;
8708#else
8703 struct frame *frame = XFRAME (selected_frame); 8709 struct frame *frame = XFRAME (selected_frame);
8704 struct terminal *terminal = frame->terminal; 8710 struct terminal *terminal = frame->terminal;
8705 if (!((FRAME_TERMCAP_P (frame) || FRAME_MSDOS_P (frame)) 8711 if (!((FRAME_TERMCAP_P (frame) || FRAME_MSDOS_P (frame))
@@ -8750,6 +8756,7 @@ read_decoded_char (int commandflag, Lisp_Object map,
8750 = Fcons (events[--n], Vunread_command_events); 8756 = Fcons (events[--n], Vunread_command_events);
8751 return events[0]; 8757 return events[0];
8752 } 8758 }
8759#endif
8753 } 8760 }
8754} 8761}
8755 8762