unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Garreau\, Alexandre" <galex-713@galex-713.eu>
To: Eli Zaretskii <eliz@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Saving (and finding) markers (Was: Re: point moved despite save-excursion, after deleting/reinserting region)
Date: Thu, 18 Oct 2018 20:08:05 +0200	[thread overview]
Message-ID: <877eifruuy.fsf_-_@portable.galex-713.eu> (raw)
In-Reply-To: <83sh13qts5.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 18 Oct 2018 16:16:42 +0300")

I’m unaware of what other side-effects might happens because of deleting
and reinserting a region of text, but how, within a region, get all the
markers? so to restore them afterwards.

I guess these must be updated somehow when anything is changed, so there
must be a list of them somewhere, thereas allowing to fetch them
according a given region.

I’d like to try this method as it looks straightforward, I didn’t find
rightaway through describe-function nor manual how to achieve a such
thing, and `clone-buffer' doesn’t seem to work on a file-visiting buffer
(and anyway I’m expecting from org-mode to be complex enough so to
triggers unexpected behaviors and side effects if ever I trigger complex
stuff in another buffer than the original one, or with a different
file-name, etc.).



  reply	other threads:[~2018-10-18 18:08 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-17  1:43 point moved despite save-excursion, after deleting/reinserting region Garreau, Alexandre
2018-10-17 16:12 ` Eli Zaretskii
2018-10-17 20:13   ` Garreau, Alexandre
2018-10-18  2:38     ` Eli Zaretskii
2018-10-18  9:50       ` Garreau, Alexandre
2018-10-18 11:32         ` Yuri Khan
2018-10-18 11:45           ` Garreau, Alexandre
2018-10-18 13:16         ` Eli Zaretskii
2018-10-18 18:08           ` Garreau, Alexandre [this message]
2018-10-18 18:32             ` Saving (and finding) markers (Was: Re: point moved despite save-excursion, after deleting/reinserting region) Eli Zaretskii
2018-10-18 19:36               ` Saving (and finding) markers Garreau, Alexandre
2018-10-18 20:11                 ` Eli Zaretskii
2018-10-19  1:15               ` Stefan Monnier
2018-10-19  6:38                 ` Eli Zaretskii

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877eifruuy.fsf_-_@portable.galex-713.eu \
    --to=galex-713@galex-713.eu \
    --cc=eliz@gnu.org \
    --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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).