1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-28 07:45:00 +00:00

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

This commit is contained in:
Kenichi Handa 1998-10-21 11:50:56 +00:00
parent ada511780c
commit 7273226df7

View File

@ -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))