aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorPo Lu2023-02-16 23:57:01 +0800
committerPo Lu2023-02-16 23:57:01 +0800
commit2dcce30290dc7782e9de3b4adf59f38b42408c98 (patch)
tree67b79ee1049c8fa31c8fdc2c9c67df77ac4e86ee /src/buffer.c
parentcf24b61985c26cbf2e5a24cb0b64a8528aa3a9cc (diff)
downloademacs-2dcce30290dc7782e9de3b4adf59f38b42408c98.tar.gz
emacs-2dcce30290dc7782e9de3b4adf59f38b42408c98.zip
Update Android port
* doc/emacs/android.texi (Android Fonts): * doc/emacs/input.texi (On-Screen Keyboards): * doc/lispref/commands.texi (Misc Events): Update documentation. * java/org/gnu/emacs/EmacsInputConnection.java (setSelection): New function. * java/org/gnu/emacs/EmacsSurfaceView.java (EmacsSurfaceView) (reconfigureFrontBuffer): Make bitmap references weak references. * java/org/gnu/emacs/EmacsView.java (handleDirtyBitmap): Don't clear surfaceView bitmap. * lisp/comint.el (comint-mode): * lisp/international/fontset.el (script-representative-chars) (setup-default-fontset): Improve detection of CJK fonts. * lisp/isearch.el (set-text-conversion-style): New variable. (isearch-mode, isearch-done): Save and restore the text conversion style. * lisp/minibuffer.el (minibuffer-mode): Set an appropriate text conversion style. * lisp/simple.el (analyze-text-conversion): Run post-self-insert-hook properly. * lisp/subr.el (read-char-from-minibuffer): Disable text conversion when reading character. * src/androidterm.c (show_back_buffer): Don't check that F is not garbaged. (android_update_selection, android_reset_conversion): Use the ephemeral last point and handle text conversion being disabled. * src/buffer.c (syms_of_buffer): Convert old style DEFVAR. * src/keyboard.c (kbd_buffer_get_event): Handle text conversion first. * src/lisp.h: Update prototypes. * src/lread.c (read_filtered_event): Temporarily disable text conversion. * src/sfnt.c (sfnt_decompose_glyph_1, sfnt_decompose_glyph_2): New functions. (sfnt_decompose_glyph, sfnt_decompose_instructed_outline): Refactor contour decomposition to those two functions. (main): Update tests. * src/sfntfont-android.c (system_font_directories): Add empty field. (Fandroid_enumerate_fonts, init_sfntfont_android): Enumerate fonts in a user fonts directory. * src/sfntfont.c (struct sfnt_font_desc): New field `num_glyphs'. (sfnt_enum_font_1): Set num_glyphs and avoid duplicate fonts. (sfntfont_glyph_valid): New function. (sfntfont_lookup_char, sfntfont_list_1): Make sure glyphs found are valid. * src/textconv.c (sync_overlay, really_commit_text) (really_set_composing_text, really_set_composing_region) (really_delete_surrounding_text, really_set_point_and_mark) (handle_pending_conversion_events_1) (handle_pending_conversion_events, conversion_disabled_p) (disable_text_conversion, resume_text_conversion) (Fset_text_conversion_style, syms_of_textconv): Update to respect new options. * src/textconv.h: * src/window.h (GCALIGNED_STRUCT): New field `ephemeral_last_point'. * src/xdisp.c (mark_window_display_accurate_1): Set it.
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c22
1 files changed, 13 insertions, 9 deletions
diff --git a/src/buffer.c b/src/buffer.c
index af4aa583c96..393b8c5340a 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -5862,15 +5862,19 @@ Use Custom to set this variable and update the display. */);
5862 DEFVAR_PER_BUFFER ("text-conversion-style", &BVAR (current_buffer, 5862 DEFVAR_PER_BUFFER ("text-conversion-style", &BVAR (current_buffer,
5863 text_conversion_style), 5863 text_conversion_style),
5864 Qnil, 5864 Qnil,
5865 "How the on screen keyboard's input method should insert in this buffer.\n\ 5865 doc: /* How the on screen keyboard's input method should insert in this buffer.
5866When nil, the input method will be disabled and an ordinary keyboard\n\ 5866When nil, the input method will be disabled and an ordinary keyboard
5867will be displayed in its place.\n\ 5867will be displayed in its place.
5868When the symbol `action', the input method will insert text directly, but\n\ 5868When the symbol `action', the input method will insert text directly, but
5869will send `return' key events instead of inserting new line characters.\n\ 5869will send `return' key events instead of inserting new line characters.
5870Any other value means that the input method will insert text directly.\n\ 5870Any other value means that the input method will insert text directly.
5871\n\ 5871
5872This variable does not take immediate effect when set; rather, it takes\n\ 5872If you need to make non-buffer local changes to this variable, use
5873effect upon the next redisplay after the selected window or buffer changes."); 5873`overriding-text-conversion-style', which see.
5874
5875This variable does not take immediate effect when set; rather, it
5876takes effect upon the next redisplay after the selected window or
5877buffer changes. */);
5874 5878
5875 DEFVAR_LISP ("kill-buffer-query-functions", Vkill_buffer_query_functions, 5879 DEFVAR_LISP ("kill-buffer-query-functions", Vkill_buffer_query_functions,
5876 doc: /* List of functions called with no args to query before killing a buffer. 5880 doc: /* List of functions called with no args to query before killing a buffer.