1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-09 15:50:40 -08:00
emacs/lisp/textmodes
Po Lu cf24b61985 Update Android port
* doc/emacs/input.texi (On-Screen Keyboards):
* doc/lispref/commands.texi (Misc Events): Improve documentation
of text conversion stuff.
* java/org/gnu/emacs/EmacsInputConnection.java (beginBatchEdit)
(endBatchEdit, commitCompletion, commitText, deleteSurroundingText)
(finishComposingText, getSelectedText, getTextAfterCursor)
(EmacsInputConnection, setComposingRegion, performEditorAction)
(getExtractedText): Condition debug code on DEBUG_IC.
* java/org/gnu/emacs/EmacsService.java (EmacsService, updateIC):
Likewise.
* lisp/bindings.el (global-map):
* lisp/electric.el (global-map): Make `text-conversion'
`analyze-text-conversion'.
* lisp/progmodes/prog-mode.el (prog-mode): Enable text
conversion in input methods.
* lisp/simple.el (analyze-text-conversion): New function.
* lisp/textmodes/text-mode.el (text-conversion-style)
(text-mode): Likewise.
* src/androidterm.c (android_handle_ime_event): Handle
set_point_and_mark.
(android_sync_edit): Give Emacs 100 ms instead.
(android_perform_conversion_query): Skip the active region, not
the conversion region.
(getSelectedText): Implement properly.
(android_update_selection): Expose mark to input methods.
(android_reset_conversion): Handle `text-conversion-style'.
* src/buffer.c (init_buffer_once, syms_of_buffer): Add buffer
local variable `text-conversion-style'.
* src/buffer.h (struct buffer, bset_text_conversion_style): New
fields.
* src/emacs.c (android_emacs_init): Call syms_of_textconv.
* src/frame.h (enum text_conversion_operation): Rename
TEXTCONV_SET_POINT.
* src/lisp.h: Export syms_of_textconv.

* src/marker.c (set_marker_internal): Force redisplay when the
mark is set and the buffer is visible on builds that use text
conversion.  Explain why.

* src/textconv.c (copy_buffer): Fix copying past gap.
(get_mark): New function.
(textconv_query): Implement new flag.
(sync_overlay): New function.  Display conversion text in an
overlay.
(record_buffer_change, really_commit_text)
(really_set_composing_text, really_set_composing_region)
(really_delete_surrounding_text, really_set_point)
(handle_pending_conversion_events_1, decrement_inside)
(handle_pending_conversion_events, textconv_set_point)
(get_extracted_text, register_textconv_interface): Various fixes
and improvements.

* src/textconv.h (struct textconv_interface): Update
documentation.
* src/window.h (GCALIGNED_STRUCT): New field `prev_mark'.
* src/xdisp.c (mark_window_display_accurate_1): Handle
prev_mark.
2023-02-15 22:51:44 +08:00
..
artist.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
bib-mode.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
bibtex-style.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
bibtex.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
conf-mode.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
css-mode.el Make tree-sitter based modes optional 2023-01-20 10:28:26 +02:00
dns-mode.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
emacs-authors-mode.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
emacs-news-mode.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
enriched.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
fill.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
flyspell.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
glyphless-mode.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
html-ts-mode.el Swap tag and element in html-ts-mode (bug#60972) 2023-01-23 13:10:26 +01:00
ispell.el ; Mention Hunspell private-dictionary misfeature in doc strings 2023-02-12 14:05:44 +02:00
less-css-mode.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
makeinfo.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
mhtml-mode.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
nroff-mode.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
page-ext.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
page.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
paragraphs.el Add forward-sentence with tree sitter support (bug#60623) 2023-01-11 16:26:00 +01:00
picture.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
pixel-fill.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
po.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
refbib.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
refer.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
refill.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
reftex-auc.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
reftex-cite.el Fix reftex-citation docstring (bug#60710) 2023-01-10 19:02:04 +02:00
reftex-dcr.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
reftex-global.el Make binaries distributed with Emacs work on Android 2023-01-24 21:37:22 +08:00
reftex-index.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
reftex-parse.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
reftex-ref.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
reftex-sel.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
reftex-toc.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
reftex-vars.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
reftex.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
remember.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
rst.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
sgml-mode.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
string-edit.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
table.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
tex-mode.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
texinfmt.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
texinfo.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
texnfo-upd.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
text-mode.el Update Android port 2023-02-15 22:51:44 +08:00
tildify.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
toml-ts-mode.el Make tree-sitter based modes optional 2023-01-20 10:28:26 +02:00
two-column.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
underline.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
word-wrap-mode.el ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
yaml-ts-mode.el Make tree-sitter based modes optional 2023-01-20 10:28:26 +02:00