changeset 23525:7462da3c79cb

(in-is13194-devanagari-pre-write-conversion): Use with-temp-buffer.
author Kenichi Handa <handa@m17n.org>
date Wed, 21 Oct 1998 11:50:56 +0000
parents 05c942de9202
children f47eb2d1375c
files lisp/language/devan-util.el
diffstat 1 files changed, 6 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/language/devan-util.el	Wed Oct 21 11:50:56 1998 +0000
+++ b/lisp/language/devan-util.el	Wed Oct 21 11:50:56 1998 +0000
@@ -1277,14 +1277,12 @@
 
 ;;;###autoload
 (defun in-is13194-devanagari-pre-write-conversion (from to)
-  (let ((old-buf (current-buffer))
-	(work-buf (get-buffer-create " *devanagari-work*")))
-    (set-buffer work-buf)
-    (erase-buffer)
-    (if (stringp from)
-	(insert from)
-      (insert-buffer-substring old-buf from to))
-    (devanagari-decompose-to-is13194-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))
+      (devanagari-decompose-to-is13194-region (point-min) (point-max)))
     ;; Should return nil as annotations.
     nil))