changeset 23522:0f86fe9632e0

(tibetan-pre-write-conversion): Use with-temp-buffer.
author Kenichi Handa <handa@m17n.org>
date Wed, 21 Oct 1998 11:50:56 +0000
parents 616acf65d243
children e49c2fb2a695
files lisp/language/tibet-util.el
diffstat 1 files changed, 7 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/language/tibet-util.el	Wed Oct 21 11:50:56 1998 +0000
+++ b/lisp/language/tibet-util.el	Wed Oct 21 11:50:56 1998 +0000
@@ -446,15 +446,13 @@
 ;;;###autoload
 (defun tibetan-pre-write-conversion (from to)
   (setq tibetan-decomposed-temp tibetan-decomposed)
-  (let ((old-buf (current-buffer))
-	(work-buf (get-buffer-create " *tibetan-work*")))
-    (set-buffer work-buf)
-    (erase-buffer)
-    (if (stringp from)
-	(insert from)
-      (insert-buffer-substring old-buf from to))
-    (if (not tibetan-decomposed-temp)
-	(tibetan-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))
+      (if (not tibetan-decomposed-temp)
+	  (tibetan-decompose-region (point-min) (point-max))))
     ;; Should return nil as annotations.
     nil))