From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Effect of deletions on indirect buffers (Bug#8219) Date: Fri, 11 Mar 2011 18:19:25 -0500 Message-ID: References: <877hc5bfqy.fsf@stupidchicken.com> <838vwlto85.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1299885735 17617 80.91.229.12 (11 Mar 2011 23:22:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 11 Mar 2011 23:22:15 +0000 (UTC) Cc: Chong Yidong , 8219@debbugs.gnu.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 12 00:22:10 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PyBeo-0002RZ-2P for ged-emacs-devel@m.gmane.org; Sat, 12 Mar 2011 00:22:09 +0100 Original-Received: from localhost ([127.0.0.1]:50008 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PyBel-0004xY-T3 for ged-emacs-devel@m.gmane.org; Fri, 11 Mar 2011 18:22:04 -0500 Original-Received: from [140.186.70.92] (port=35406 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PyBcd-0003mj-En for emacs-devel@gnu.org; Fri, 11 Mar 2011 18:19:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PyBcI-0000RH-HD for emacs-devel@gnu.org; Fri, 11 Mar 2011 18:19:31 -0500 Original-Received: from tomts16.bellnexxia.net ([209.226.175.4]:53014 helo=tomts16-srv.bellnexxia.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PyBcG-0000Pg-BN; Fri, 11 Mar 2011 18:19:28 -0500 Original-Received: from toip3.srvr.bell.ca ([209.226.175.86]) by tomts16-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20110311231926.NOLI1917.tomts16-srv.bellnexxia.net@toip3.srvr.bell.ca>; Fri, 11 Mar 2011 18:19:26 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAIY7ek1GHsU+/2dsb2JhbACmN3jCRYViBIUp Original-Received: from bas1-montreal07-1176421694.dsl.bell.ca (HELO ceviche.home) ([70.30.197.62]) by toip3.srvr.bell.ca with ESMTP; 11 Mar 2011 18:19:26 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id C8E49660C9; Fri, 11 Mar 2011 18:19:25 -0500 (EST) In-Reply-To: <838vwlto85.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 11 Mar 2011 22:07:54 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Solaris 8 (1) X-Received-From: 209.226.175.4 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:137130 Archived-At: > 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