Commit 7273226d authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(tibetan-pre-write-conversion): Use with-temp-buffer.

parent ada51178
......@@ -446,15 +446,13 @@ See also docstring of the function tibetan-compose-region."
(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)
(let ((old-buf (current-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)))
(tibetan-decompose-region (point-min) (point-max))))
;; Should return nil as annotations.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment