change, use generate-new-buffer instead of get-buffer-create.
(defun tibetan-pre-write-conversion (from to)
(setq tibetan-decomposed-temp tibetan-decomposed)
(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))))
+ (set-buffer (generate-new-buffer " *temp*"))
+ (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))