From: "Richard M. Stallman" <rms@gnu.org>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: save-excursion doesn't restore point
Date: Wed, 25 Jan 2006 21:47:07 -0500 [thread overview]
Message-ID: <E1F1xAB-0002n8-73@fencepost.gnu.org> (raw)
In-Reply-To: <20060124171233.1670DBACC@happygiraffe.net> (message from Dominic Mitchell on Tue, 24 Jan 2006 17:12:33 +0000 (GMT))
I would guess that this is because save-excursion uses markers, and
those markers then get invalidated by shell-command-on-region.
I think so.
But
it's still a little weird. Is this a bug?
I think it is simply inevitable. If all the text is replaced,
Emacs has no way of knowing what new position corresponds in any sense
to some old position.
prev parent reply other threads:[~2006-01-26 2:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-24 17:12 save-excursion doesn't restore point Dominic Mitchell
2006-01-26 2:47 ` Richard M. Stallman [this message]
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=E1F1xAB-0002n8-73@fencepost.gnu.org \
--to=rms@gnu.org \
--cc=bug-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.