From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Effect of deletions on indirect buffers (Bug#8219) Date: Sat, 12 Mar 2011 11:01:45 +0200 Message-ID: <83wrk4soee.fsf@gnu.org> References: <877hc5bfqy.fsf@stupidchicken.com> <838vwlto85.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1299920526 17420 80.91.229.12 (12 Mar 2011 09:02:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 12 Mar 2011 09:02:06 +0000 (UTC) Cc: cyd@stupidchicken.com, 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 Sat Mar 12 10:01:58 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 1PyKhr-0007ki-C7 for ged-emacs-devel@m.gmane.org; Sat, 12 Mar 2011 10:01:51 +0100 Original-Received: from localhost ([127.0.0.1]:54898 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PyKhp-0003OQ-Pa for ged-emacs-devel@m.gmane.org; Sat, 12 Mar 2011 04:01:49 -0500 Original-Received: from [140.186.70.92] (port=34059 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PyKhk-0003O7-Dk for emacs-devel@gnu.org; Sat, 12 Mar 2011 04:01:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PyKhj-00019Q-25 for emacs-devel@gnu.org; Sat, 12 Mar 2011 04:01:44 -0500 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:41564) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PyKhi-00019C-Qs for emacs-devel@gnu.org; Sat, 12 Mar 2011 04:01:43 -0500 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0LHX00400SW7NH00@a-mtaout23.012.net.il> for emacs-devel@gnu.org; Sat, 12 Mar 2011 11:01:41 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.124.58.59]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LHX004QDT2RN210@a-mtaout23.012.net.il>; Sat, 12 Mar 2011 11:01:41 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.175 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:137143 Archived-At: > From: Stefan Monnier > Cc: Chong Yidong , 8219@debbugs.gnu.org, emacs-devel@gnu.org > Date: Fri, 11 Mar 2011 18:19:25 -0500 > > 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. It follows that BUF_PT, when used on other than the current buffer should update PT if necessary, if that buffer is an indirect buffer, before returning the value. And the same with BUF_BEGV, BUF_ZV, etc. Right?