changeset 23545:0d25c6f765ab

(tibetan-pre-write-conversion): Cancel previous change, use generate-new-buffer instead of get-buffer-create.
author Kenichi Handa <handa@m17n.org>
date Mon, 26 Oct 1998 08:00:11 +0000
parents e54fbf58812f
children d180b9c69e4a
files lisp/language/tibet-util.el
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/language/tibet-util.el	Mon Oct 26 08:00:11 1998 +0000
+++ b/lisp/language/tibet-util.el	Mon Oct 26 08:00:11 1998 +0000
@@ -447,12 +447,12 @@
 (defun tibetan-pre-write-conversion (from to)
   (setq tibetan-decomposed-temp tibetan-decomposed)
   (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))))
+    (set-buffer (generate-new-buffer " *temp*"))
+    (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))