aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.h
diff options
context:
space:
mode:
authorPo Lu2023-02-12 20:32:25 +0800
committerPo Lu2023-02-12 20:32:25 +0800
commit0198b8cffd82893412c738dae8e50c45a99286f1 (patch)
tree5dd87dc03d1c1ee08205c988f2c287f714f1cfa3 /src/coding.h
parentab48881a2fb72df016f2a00bc107e5a35a411a9d (diff)
downloademacs-0198b8cffd82893412c738dae8e50c45a99286f1.tar.gz
emacs-0198b8cffd82893412c738dae8e50c45a99286f1.zip
Update Android port
* doc/emacs/android.texi (Android Environment): Document notifications permission. * java/org/gnu/emacs/EmacsEditable.java (EmacsEditable): * java/org/gnu/emacs/EmacsInputConnection.java (EmacsInputConnection): New files. * java/org/gnu/emacs/EmacsNative.java (EmacsNative): Load library dependencies in a less verbose fashion. * java/org/gnu/emacs/EmacsView.java (EmacsView): Make imManager public. (onCreateInputConnection): Set InputType to TYPE_NULL for now. * java/org/gnu/emacs/EmacsWindow.java (EmacsWindow, onKeyDown) (onKeyUp, getEventUnicodeChar): Correctly handle key events with strings. * lisp/term/android-win.el (android-clear-preedit-text) (android-preedit-text): New special event handlers. * src/android.c (struct android_emacs_window): Add function lookup_string. (android_init_emacs_window): Adjust accordingly. (android_wc_lookup_string): New function. * src/androidgui.h (struct android_key_event): Improve commentary. (enum android_lookup_status): New enum. * src/androidterm.c (handle_one_android_event): Synchronize IM lookup code with X. * src/coding.c (from_unicode_buffer): Implement on Android. * src/coding.h: * src/sfnt.c: Fix commentary.
Diffstat (limited to 'src/coding.h')
-rw-r--r--src/coding.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/coding.h b/src/coding.h
index b8d4f5f27e1..08c29c884a5 100644
--- a/src/coding.h
+++ b/src/coding.h
@@ -709,7 +709,7 @@ extern void encode_coding_object (struct coding_system *,
709/* Defined in this file. */ 709/* Defined in this file. */
710INLINE int surrogates_to_codepoint (int, int); 710INLINE int surrogates_to_codepoint (int, int);
711 711
712#if defined (WINDOWSNT) || defined (CYGWIN) 712#if defined (WINDOWSNT) || defined (CYGWIN) || defined HAVE_ANDROID
713 713
714/* These functions use Lisp string objects to store the UTF-16LE 714/* These functions use Lisp string objects to store the UTF-16LE
715 strings that modern versions of Windows expect. These strings are 715 strings that modern versions of Windows expect. These strings are
@@ -732,7 +732,7 @@ extern Lisp_Object from_unicode (Lisp_Object str);
732/* Convert WSTR to an Emacs string. */ 732/* Convert WSTR to an Emacs string. */
733extern Lisp_Object from_unicode_buffer (const wchar_t *wstr); 733extern Lisp_Object from_unicode_buffer (const wchar_t *wstr);
734 734
735#endif /* WINDOWSNT || CYGWIN */ 735#endif /* WINDOWSNT || CYGWIN || HAVE_ANDROID */
736 736
737/* Macros for backward compatibility. */ 737/* Macros for backward compatibility. */
738 738