aboutsummaryrefslogtreecommitdiffstats
path: root/src/androidterm.c
diff options
context:
space:
mode:
authorPo Lu2023-06-09 18:05:26 +0800
committerPo Lu2023-06-09 18:05:26 +0800
commit01bea42cbff84ca76f339088f19a42cddfe83cbb (patch)
treef3f0c250a13ee6e4ad004fbc310726667779710a /src/androidterm.c
parenta5b74e2ff62faccea19c00783e62bc328c30f92a (diff)
downloademacs-01bea42cbff84ca76f339088f19a42cddfe83cbb.tar.gz
emacs-01bea42cbff84ca76f339088f19a42cddfe83cbb.zip
Avoid responding to input method queries asynchronously
* src/androidterm.c (handle_one_android_event): Don't answer queries here; just rely on the event interrupting android_select. This avoids exposing buffer contents to input methods while a command is being executed. * src/textconv.c (TEXTCONV_DEBUG, really_commit_text) (really_finish_composing_text, really_set_composing_text) (really_set_composing_region, really_delete_surrounding_text) (really_set_point_and_mark, get_extracted_text): Add debugging printouts.
Diffstat (limited to 'src/androidterm.c')
-rw-r--r--src/androidterm.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/androidterm.c b/src/androidterm.c
index 77f2bd1c7a0..704ff5f5d85 100644
--- a/src/androidterm.c
+++ b/src/androidterm.c
@@ -1053,12 +1053,12 @@ handle_one_android_event (struct android_display_info *dpyinfo,
1053 used to make Android run stuff. */ 1053 used to make Android run stuff. */
1054 1054
1055 if (!event->xaction.window && !event->xaction.action) 1055 if (!event->xaction.window && !event->xaction.action)
1056 { 1056 /* Don't run queries here, as it may run inside editor
1057 /* Check for and run anything the UI thread wants to run on the main 1057 commands, which can expose an inconsistent view of buffer
1058 thread. */ 1058 contents to the input method during command execution.
1059 android_check_query (); 1059
1060 goto OTHER; 1060 Instead, wait for Emacs to return to `android_select'. */
1061 } 1061 goto OTHER;
1062 1062
1063 f = any; 1063 f = any;
1064 1064