diff options
author | Eli Zaretskii <eliz@gnu.org> | 2022-02-12 20:38:51 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2022-02-12 20:38:51 +0200 |
commit | b5997c0f108d265917f899f6558ac56a8638451d (patch) | |
tree | 1d108251c5315ad908ddf41145b8d3da71e84ce6 /test/lisp/emacs-lisp/syntax-tests.el | |
parent | 09fecae87747291afcc9f59c985e3d804de961c3 (diff) | |
download | emacs-b5997c0f108d265917f899f6558ac56a8638451d.tar.gz emacs-b5997c0f108d265917f899f6558ac56a8638451d.tar.bz2 emacs-b5997c0f108d265917f899f6558ac56a8638451d.zip |
Optionally allow point to enter composed character sequences
This changeset is based on code originally posted by
Kenichi Handa <handa@gnu.org> as part of discussing bug#20140,
with a few adjustments and changes, mainly to support R2L
text and provide a user option to control the feature.
* src/xdisp.c (compute_stop_pos, next_element_from_buffer)
(composition_reseat_it): Don't allow auto-composing characters
past point when 'composition-break-at-point' is non-nil.
(syms_of_xdisp) <composition-break-at-point>: New boolean variable.
(redisplay_internal, redisplay_window): Disable "just move the
cursor" optimizations when 'composition-break-at-point' is non-nil.
* src/keyboard.c (command_loop_1): Force redisplay when
'composition-break-at-point' is non-nil.
* lisp/cus-start.el (standard): Provide customization form for
'composition-break-at-point'.
* etc/NEWS: Announce the new feature.
Diffstat (limited to 'test/lisp/emacs-lisp/syntax-tests.el')
0 files changed, 0 insertions, 0 deletions