]> git.eshelyaron.com Git - emacs.git/commit
Update Android port
authorPo Lu <luangruo@yahoo.com>
Wed, 7 Jun 2023 03:03:56 +0000 (11:03 +0800)
committerPo Lu <luangruo@yahoo.com>
Wed, 7 Jun 2023 03:03:56 +0000 (11:03 +0800)
commit63339a9577f085074d16fa8c56ddd56864c94dda
treef4cf00e784eec5c9616f38aa6241802de33f2a03
parent9a68041f2ccb07c2baf9cf6e1075243706f73b82
Update Android port

* java/org/gnu/emacs/EmacsInputConnection.java (beginBatchEdit)
(endBatchEdit, commitCompletion, commitText, deleteSurroundingText)
(finishComposingText, getSelectedText, getTextAfterCursor)
(getTextBeforeCursor, setComposingText, setComposingRegion)
(performEditorAction, performContextMenuAction, getExtractedText)
(setSelection, sendKeyEvent, deleteSurroundingTextInCodePoints)
(requestCursorUpdates): Ensure that the input connection is up
to date.
(getSurroundingText): New function.
* java/org/gnu/emacs/EmacsNative.java (getSurroundingText):
Export new C function.
* java/org/gnu/emacs/EmacsService.java (resetIC): Invalidate
previously created input connections.
* java/org/gnu/emacs/EmacsView.java (EmacsView)
(onCreateInputConnection): Signify that input connections are
now up to date.
* src/androidterm.c (struct
android_get_surrounding_text_context): New structure.
(android_get_surrounding_text, NATIVE_NAME):
* src/textconv.c (get_surrounding_text):
* src/textconv.h: New functions.
java/org/gnu/emacs/EmacsInputConnection.java
java/org/gnu/emacs/EmacsNative.java
java/org/gnu/emacs/EmacsService.java
java/org/gnu/emacs/EmacsView.java
src/androidterm.c
src/textconv.c
src/textconv.h