summaryrefslogtreecommitdiff
path: root/src/composite.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2020-06-02 20:44:59 +0300
committerEli Zaretskii <eliz@gnu.org>2020-06-02 20:44:59 +0300
commit22b2e9c901231312d6d8c6fd5d138b98501bc65e (patch)
treef8f0415813131e1e1676c3c4a5d94e36660371d4 /src/composite.c
parent9afcf2bd39ceb2988ed516efa0a474137fb30f74 (diff)
downloademacs-22b2e9c901231312d6d8c6fd5d138b98501bc65e.tar.gz
Fix Arabic composition rules
* lisp/language/misc-lang.el (composition-function-table): Reorder Arabic composition rules in descending order of lookback. * src/composite.c (syms_of_composite): Document the order of rules in 'composition-function-table'.
Diffstat (limited to 'src/composite.c')
-rw-r--r--src/composite.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/composite.c b/src/composite.c
index 518502be49f..5c56107fb77 100644
--- a/src/composite.c
+++ b/src/composite.c
@@ -1987,7 +1987,8 @@ preceding and/or following characters, this char-table contains
a function to call to compose that character.
The element at index C in the table, if non-nil, is a list of
-composition rules of this form: ([PATTERN PREV-CHARS FUNC] ...)
+composition rules of the form ([PATTERN PREV-CHARS FUNC] ...);
+they must be in the descending order of PREV-CHARS values.
PATTERN is a regular expression which C and the surrounding
characters must match.