diff options
author | Kenichi Handa <handa@m17n.org> | 1998-10-21 11:50:56 +0000 |
---|---|---|
committer | Kenichi Handa <handa@m17n.org> | 1998-10-21 11:50:56 +0000 |
commit | 166488a59ac921edfeef1efd24824f55b7f0c210 (patch) | |
tree | 2221db7f96987bea6362ca1c670f5155479cb5ea /lisp/language/thai-util.el | |
parent | 7273226df7251183b42ba6a8a270f9de65a84c3e (diff) | |
download | emacs-166488a59ac921edfeef1efd24824f55b7f0c210.tar.gz |
(thai-pre-write-conversion): Use with-temp-buffer.
Diffstat (limited to 'lisp/language/thai-util.el')
-rw-r--r-- | lisp/language/thai-util.el | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/lisp/language/thai-util.el b/lisp/language/thai-util.el index 3d4863313ec..1bb9beb3c2b 100644 --- a/lisp/language/thai-util.el +++ b/lisp/language/thai-util.el @@ -166,14 +166,12 @@ positions (integers or markers) specifying the region." ;;;###autoload (defun thai-pre-write-conversion (from to) - (let ((old-buf (current-buffer)) - (work-buf (get-buffer-create " *thai-work*"))) - (set-buffer work-buf) - (erase-buffer) - (if (stringp from) - (insert from) - (insert-buffer-substring old-buf from to)) - (decompose-region (point-min) (point-max)) + (let ((old-buf (current-buffer))) + (with-temp-buffer + (if (stringp from) + (insert from) + (insert-buffer-substring old-buf from to)) + (decompose-region (point-min) (point-max))) ;; Should return nil as annotations. nil)) |