]> git.eshelyaron.com Git - emacs.git/commit
Optionally allow point to enter composed character sequences
authorEli Zaretskii <eliz@gnu.org>
Sat, 12 Feb 2022 18:38:51 +0000 (20:38 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 12 Feb 2022 18:38:51 +0000 (20:38 +0200)
commitb5997c0f108d265917f899f6558ac56a8638451d
tree1d108251c5315ad908ddf41145b8d3da71e84ce6
parent09fecae87747291afcc9f59c985e3d804de961c3
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.
etc/NEWS
lisp/cus-start.el
src/composite.c
src/keyboard.c
src/xdisp.c