summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenichi Handa <handa@m17n.org>1997-05-12 07:00:25 +0000
committerKenichi Handa <handa@m17n.org>1997-05-12 07:00:25 +0000
commitd540cef3d979b963e7e20156f3aaae3405b3ab22 (patch)
treea8e6dfcfc1afaa7e5aa648279cc654c97a697a6c
parentbbe185b0ae972221ac36ee0da6ece43cd0de3c66 (diff)
downloademacs-d540cef3d979b963e7e20156f3aaae3405b3ab22.tar.gz
(thai-pre-write-conversion): Make it work
for the case the arg FROM is a string.
-rw-r--r--lisp/language/thai-util.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/language/thai-util.el b/lisp/language/thai-util.el
index a97fad0ae7c..334f7e41386 100644
--- a/lisp/language/thai-util.el
+++ b/lisp/language/thai-util.el
@@ -164,8 +164,12 @@ positions (integers or markers) specifying the region."
(work-buf (get-buffer-create " *thai-work*")))
(set-buffer work-buf)
(erase-buffer)
- (insert-buffer-substring old-buf from to)
- (decompose-region (point-min) (point-max))))
+ (if (stringp from)
+ (insert from)
+ (insert-buffer-substring old-buf from to))
+ (decompose-region (point-min) (point-max))
+ ;; Should return nil as annotations.
+ nil))
;;
(provide 'language/thai-util)