mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-05 11:45:45 +00:00
(thai-pre-write-conversion): Use with-temp-buffer.
This commit is contained in:
parent
7273226df7
commit
166488a59a
@ -166,14 +166,12 @@ positions (integers or markers) specifying the region."
|
||||
|
||||
;;;###autoload
|
||||
(defun thai-pre-write-conversion (from to)
|
||||
(let ((old-buf (current-buffer))
|
||||
(work-buf (get-buffer-create " *thai-work*")))
|
||||
(set-buffer work-buf)
|
||||
(erase-buffer)
|
||||
(if (stringp from)
|
||||
(insert from)
|
||||
(insert-buffer-substring old-buf from to))
|
||||
(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))
|
||||
(decompose-region (point-min) (point-max)))
|
||||
;; Should return nil as annotations.
|
||||
nil))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user