From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: bug#8219: Effect of deletions on indirect buffers (Bug#8219) Date: Sun, 13 Mar 2011 13:09:45 -0400 Message-ID: References: <877hc5bfqy.fsf@stupidchicken.com> <838vwlto85.fsf@gnu.org> <83wrk4soee.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1300036270 22488 80.91.229.12 (13 Mar 2011 17:11:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 13 Mar 2011 17:11:10 +0000 (UTC) Cc: Eli Zaretskii , 8219@debbugs.gnu.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 13 18:11:05 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 1Pyonu-0002aP-JM for ged-emacs-devel@m.gmane.org; Sun, 13 Mar 2011 18:11:04 +0100 Original-Received: from localhost ([127.0.0.1]:51681 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pyonn-0004nm-Jo for ged-emacs-devel@m.gmane.org; Sun, 13 Mar 2011 13:09:59 -0400 Original-Received: from [140.186.70.92] (port=42619 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pyong-0004ex-M8 for emacs-devel@gnu.org; Sun, 13 Mar 2011 13:09:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pyona-0005UC-5z for emacs-devel@gnu.org; Sun, 13 Mar 2011 13:09:47 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:50585) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pyona-0005U1-3v for emacs-devel@gnu.org; Sun, 13 Mar 2011 13:09:46 -0400 Original-Received: from cyd by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1PyonZ-0007S2-Hc; Sun, 13 Mar 2011 13:09:45 -0400 In-Reply-To: (Chong Yidong's message of "Sun, 13 Mar 2011 12:30:59 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.10 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:137192 Archived-At: Chong Yidong writes: > I think we should do away with the BUF_BEGV and related macros. Let the > code in buffer.c manipulate the buffer->begv members directly; and the > usage in other parts of Emacs can be replaced with buf_begv() functions > that will update begv if necessary, and return the corrected result. Or rather, these functions should consult the pt_marker, begv_marker and zv_marker markers instead of accessing begv etc directly.