help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: erase-buffer and marker-position


From: Stefan Monnier
Subject: Re: erase-buffer and marker-position
Date: Mon, 25 Feb 2013 23:46:21 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

> what is the canonical way to remember/restore the (relative) old
> marker-position when a buffer is erased?

You can try and be more careful about how the buffer is "rebuilt".
E.g. insert-file-content with the `replace' argument will try and notice
if only the beginning/end of the file was modified.

Another option is to turn the markers into bookmarks.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]