From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Chong Yidong <cyd@stupidchicken.com>,
8219@debbugs.gnu.org, emacs-devel@gnu.org
Subject: Re: Effect of deletions on indirect buffers (Bug#8219)
Date: Fri, 11 Mar 2011 18:19:25 -0500 [thread overview]
Message-ID: <jwv1v2dxn68.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <838vwlto85.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 11 Mar 2011 22:07:54 +0200")
> This makes a lot of sense, but your description seems to point out
> that the implementation does not behave according to the docs: if
> markers are (or should be) relocated in sync as result of insertion
> and deletion, the same should happen with PT, BUF_BEGV, etc.
Actually, indirect buffers keep their point and narrowing in real
markers. So when they get "active" the BUF_PT, BUF_ZV, etc... get
updated, but until that time, BUF_PT and friends may hold invalid data.
I.e. any place where we use BUF_PT on something else than
current_buffer, we have a bug waiting to happen unless we know for sure
that that buffer is not indirect.
Stefan
next prev parent reply other threads:[~2011-03-11 23:19 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-11 19:48 Effect of deletions on indirect buffers (Bug#8219) Chong Yidong
2011-03-11 20:07 ` bug#8219: " Eli Zaretskii
2011-03-11 20:07 ` Eli Zaretskii
2011-03-11 20:58 ` bug#8219: " Chong Yidong
2011-03-12 8:15 ` Eli Zaretskii
2011-03-12 8:15 ` Eli Zaretskii
2011-03-11 20:58 ` Chong Yidong
2011-03-11 23:19 ` Stefan Monnier
2011-03-11 23:19 ` Stefan Monnier [this message]
2011-03-12 9:01 ` Eli Zaretskii
2011-03-12 9:01 ` Eli Zaretskii
2011-03-12 20:47 ` bug#8219: " Stefan Monnier
2011-03-12 20:47 ` Stefan Monnier
2011-03-13 16:30 ` bug#8219: " Chong Yidong
2011-03-13 16:30 ` Chong Yidong
2011-03-13 17:09 ` Chong Yidong
2011-03-13 17:09 ` Chong Yidong
2011-03-13 22:29 ` Chong Yidong
2011-03-13 22:29 ` Chong Yidong
2011-03-14 2:41 ` bug#8219: " Juanma Barranquero
2011-03-14 16:18 ` Chong Yidong
2011-03-14 16:18 ` Chong Yidong
2011-03-14 2:41 ` Juanma Barranquero
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=jwv1v2dxn68.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=8219@debbugs.gnu.org \
--cc=cyd@stupidchicken.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@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.