diff options
author | Eli Zaretskii <eliz@gnu.org> | 2021-05-26 20:08:47 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2021-05-26 20:08:47 +0300 |
commit | 85da7b57bc204c4cc6953156c1a9a4dc6e875541 (patch) | |
tree | b61286d21ea2c58ec76ea4c058beeb9d8d95428b /src/composite.h | |
parent | d5d4e826919d4d09a12ecb92dc8658243bdd87ad (diff) | |
download | emacs-85da7b57bc204c4cc6953156c1a9a4dc6e875541.tar.gz |
Make 'string-width' auto-composition aware
* src/composite.c (find_automatic_composition): Now extern.
(char_composable_p): Don't assume 'unicode-category-table' is
always available.
* src/composite.h (find_automatic_composition): Add prototype.
* src/character.c (lisp_string_width): Support automatic
compositions; call 'find_automatic_composition' when
'auto-composition-mode' is ON.
Diffstat (limited to 'src/composite.h')
-rw-r--r-- | src/composite.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/composite.h b/src/composite.h index c5d3c0faabb..75e5f9b9ecb 100644 --- a/src/composite.h +++ b/src/composite.h @@ -320,6 +320,10 @@ extern bool composition_gstring_p (Lisp_Object); extern int composition_gstring_width (Lisp_Object, ptrdiff_t, ptrdiff_t, struct font_metrics *); +extern bool find_automatic_composition (ptrdiff_t, ptrdiff_t, ptrdiff_t *, + ptrdiff_t *, Lisp_Object *, + Lisp_Object); + extern void composition_compute_stop_pos (struct composition_it *, ptrdiff_t, ptrdiff_t, ptrdiff_t, Lisp_Object); |