summaryrefslogtreecommitdiff
path: root/lisp/language/tibet-util.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/language/tibet-util.el')
-rw-r--r--lisp/language/tibet-util.el16
1 files changed, 7 insertions, 9 deletions
diff --git a/lisp/language/tibet-util.el b/lisp/language/tibet-util.el
index 6a940212c52..eb61b01988b 100644
--- a/lisp/language/tibet-util.el
+++ b/lisp/language/tibet-util.el
@@ -446,15 +446,13 @@ See also docstring of the function tibetan-compose-region."
;;;###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))