changeset 23544:e54fbf58812f

(viqr-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 6f3b920860e5
children 0d25c6f765ab
files lisp/language/viet-util.el
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/language/viet-util.el	Mon Oct 26 08:00:11 1998 +0000
+++ b/lisp/language/viet-util.el	Mon Oct 26 08:00:11 1998 +0000
@@ -284,11 +284,11 @@
 ;;;###autoload
 (defun viqr-pre-write-conversion (from to)
   (let ((old-buf (current-buffer)))
-    (with-temp-buffer
-      (if (stringp from)
-	  (insert from)
-	(insert-buffer-substring old-buf from to))
-      (viet-encode-viqr-region (point-min) (point-max)))
+    (set-buffer (generate-new-buffer " *temp*"))
+    (if (stringp from)
+	(insert from)
+      (insert-buffer-substring old-buf from to))
+    (viet-encode-viqr-region (point-min) (point-max))
     ;; Should return nil as annotations.
     nil))