Mercurial > emacs
changeset 17775:a4bf913d6caf
(thai-pre-write-conversion): Make it work
for the case the arg FROM is a string.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Mon, 12 May 1997 07:00:25 +0000 |
parents | ade41b936c3e |
children | ece62fdeeebb |
files | lisp/language/thai-util.el |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/language/thai-util.el Mon May 12 07:00:21 1997 +0000 +++ b/lisp/language/thai-util.el Mon May 12 07:00:25 1997 +0000 @@ -164,8 +164,12 @@ (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)