erase-buffer插入新内容后save-excursion不回到之前的point

(save-excursion
  (erase-buffer)
  (insert data))

我这样为啥光标不能回去原来的point呢?data跟原来的内容差不多

(info “(elisp) Excursions”)

Warning: Ordinary insertion of text adjacent to the saved point value relocates the saved value, just as it relocates all markers. More precisely, the saved value is a marker with insertion type nil . See Marker Insertion Types. Therefore, when the saved point value is restored, it normally comes before the inserted text.

暂时使用 (point) 先拿到point,然后使用 goto-char 来解决了