aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/international/utf-8.el24
1 files changed, 14 insertions, 10 deletions
diff --git a/lisp/international/utf-8.el b/lisp/international/utf-8.el
index 2d8791b49e3..66e8181c7ca 100644
--- a/lisp/international/utf-8.el
+++ b/lisp/international/utf-8.el
@@ -991,16 +991,20 @@ Also compose particular scripts if `utf-8-compose-scripts' is non-nil."
991 (set-buffer-multibyte nil))) 991 (set-buffer-multibyte nil)))
992 992
993 (when (and utf-8-compose-scripts (> length 1)) 993 (when (and utf-8-compose-scripts (> length 1))
994 ;; These currently have definitions which cover the relevant 994 ;; This let-binding avoids recursive auto-loading. And, we
995 ;; unicodes. We could avoid loading thai-util &c by checking 995 ;; anyway don't have to run the following code while
996 ;; whether the region contains any characters with the appropriate 996 ;; auto-loading.
997 ;; categories. There aren't yet Unicode-based rules for Tibetan. 997 (let ((utf-8-compose-scripts nil))
998 (diacritic-compose-region (point-max) (point-min)) 998 ;; These currently have definitions which cover the relevant
999 (thai-compose-region (point-max) (point-min)) 999 ;; unicodes. We could avoid loading thai-util &c by checking
1000 (lao-compose-region (point-max) (point-min)) 1000 ;; whether the region contains any characters with the appropriate
1001 (devanagari-compose-region (point-max) (point-min)) 1001 ;; categories. There aren't yet Unicode-based rules for Tibetan.
1002 (malayalam-compose-region (point-max) (point-min)) 1002 (diacritic-compose-region (point-max) (point-min))
1003 (tamil-compose-region (point-max) (point-min))) 1003 (thai-compose-region (point-max) (point-min))
1004 (lao-compose-region (point-max) (point-min))
1005 (devanagari-compose-region (point-max) (point-min))
1006 (malayalam-compose-region (point-max) (point-min))
1007 (tamil-compose-region (point-max) (point-min))))
1004 (- (point-max) (point-min))))) 1008 (- (point-max) (point-min)))))
1005 1009
1006(defun utf-8-pre-write-conversion (beg end) 1010(defun utf-8-pre-write-conversion (beg end)