From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: erase-buffer and marker-position
Date: Mon, 25 Feb 2013 23:46:21 -0500 [thread overview]
Message-ID: <jwvobf7of9b.fsf-monnier+gmane.emacs.help@gnu.org> (raw)
In-Reply-To: 87621fogsd.fsf@gmail.com
> 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
next prev parent reply other threads:[~2013-02-26 4:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-26 4:11 erase-buffer and marker-position Thorsten Jolitz
2013-02-26 4:46 ` Stefan Monnier [this message]
2013-02-26 4:50 ` Thorsten Jolitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvobf7of9b.fsf-monnier+gmane.emacs.help@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.