(insert 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 来解决了


1 个赞