Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
2af0948d
Commit
2af0948d
authored
May 23, 2013
by
Stefan Monnier
Browse files
* src/keyboard.c (read_decoded_char): Don't decode under w32.
Fixes: debbugs:14403
parent
179a3f11
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
src/ChangeLog
src/ChangeLog
+4
-0
src/keyboard.c
src/keyboard.c
+7
-0
No files found.
src/ChangeLog
View file @
2af0948d
2013-05-23 Stefan Monnier <monnier@iro.umontreal.ca>
* keyboard.c (read_decoded_char): Don't decode under w32 (bug#14403).
2013-05-22 Barry OReilly <gundaetiapo@gmail.com> (tiny change)
* casetab.c (init_casetab_once): Fix last change (bug#14424).
...
...
src/keyboard.c
View file @
2af0948d
...
...
@@ -6827,6 +6827,8 @@ tty_read_avail_input (struct terminal *terminal,
/* XXX I think the following code should be moved to separate hook
functions in system-dependent files. */
#ifdef WINDOWSNT
/* FIXME: AFAIK, tty_read_avail_input is not used under w32 since the non-GUI
code sets read_socket_hook to w32_console_read_socket instead! */
return 0;
#else /* not WINDOWSNT */
if (! tty->term_initted) /* In case we get called during bootstrap. */
...
...
@@ -8700,6 +8702,10 @@ read_decoded_char (int commandflag, Lisp_Object map,
{
Lisp_Object nextevt
= read_char (commandflag, map, prev_event, used_mouse_menu, NULL);
#ifdef WINDOWSNT
/* w32_console already returns decoded events. */
return nextevt;
#else
struct frame *frame = XFRAME (selected_frame);
struct terminal *terminal = frame->terminal;
if (!((FRAME_TERMCAP_P (frame) || FRAME_MSDOS_P (frame))
...
...
@@ -8750,6 +8756,7 @@ read_decoded_char (int commandflag, Lisp_Object map,
= Fcons (events[--n], Vunread_command_events);
return events[0];
}
#endif
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment