]> git.eshelyaron.com Git - emacs.git/commit
Update Android port
authorPo Lu <luangruo@yahoo.com>
Thu, 15 Jun 2023 04:36:50 +0000 (12:36 +0800)
committerPo Lu <luangruo@yahoo.com>
Thu, 15 Jun 2023 04:36:50 +0000 (12:36 +0800)
commit363e293cc919ab02c40bd9a8fa4875c2e5644b2d
tree5fa537364e29fbcdb13cd195ac6da253a6d95771
parentca120044ac11d38ca1e8cac7903be38d5ca15d2b
Update Android port

* java/org/gnu/emacs/EmacsInputConnection.java
(EmacsInputConnection, beginBatchEdit, reset, endBatchEdit):
Keep track of the number of batch edits and return an
appropriate value.
(takeSnapshot): Implement function.
* java/org/gnu/emacs/EmacsNative.java (takeSnapshot): New
function.
* java/org/gnu/emacs/EmacsService.java (resetIC): Improve
debugging output.
* java/org/gnu/emacs/EmacsView.java (onCreateInputConnection):
Call `reset' to clear the UI side batch edit count.
* src/androidterm.c (struct
android_get_surrounding_text_context): New fields
`conversion_start' and `conversion_end'.
(android_get_surrounding_text): Return the conversion region.
(android_get_surrounding_text_internal, NATIVE_NAME): Factor out
`getSurroundingText'.
(takeSnapshot): New function.
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