From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bojohan+news@dd.chalmers.se (Johan =?utf-8?Q?Bockg=C3=A5rd?=) Newsgroups: gmane.emacs.devel Subject: Re: delete-overlay causes recentering Date: Mon, 23 Apr 2007 15:57:00 +0200 Message-ID: References: <25771086.79401173867519911.JavaMail.www@wwinf4104> <87fy72v2bs.fsf@stupidchicken.com> <87zm5av218.fsf@stupidchicken.com> <873b31e9tq.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1177336666 11757 80.91.229.12 (23 Apr 2007 13:57:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 23 Apr 2007 13:57:46 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 23 15:57:39 2007 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.50) id 1Hfz2q-0006tG-JP for ged-emacs-devel@m.gmane.org; Mon, 23 Apr 2007 15:57:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hfz8F-0006Nz-IP for ged-emacs-devel@m.gmane.org; Mon, 23 Apr 2007 10:03:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hfz8C-0006Nt-8g for emacs-devel@gnu.org; Mon, 23 Apr 2007 10:03:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hfz89-0006NO-Sl for emacs-devel@gnu.org; Mon, 23 Apr 2007 10:03:03 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hfz89-0006NJ-I5 for emacs-devel@gnu.org; Mon, 23 Apr 2007 10:03:01 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hfz2k-00024w-0m for emacs-devel@gnu.org; Mon, 23 Apr 2007 09:57:26 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Hfz2U-00068I-2O for emacs-devel@gnu.org; Mon, 23 Apr 2007 15:57:10 +0200 Original-Received: from gamma02.me.chalmers.se ([129.16.50.72]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 23 Apr 2007 15:57:10 +0200 Original-Received: from bojohan+news by gamma02.me.chalmers.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 23 Apr 2007 15:57:10 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 17 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: gamma02.me.chalmers.se Mail-Copies-To: never User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.93 (gnu/linux) Cancel-Lock: sha1:NbLW6aG1V7Bh+dAxoa9BHev2wRU= X-detected-kernel: Linux 2.6, seldom 2.4 (older, 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:69852 Archived-At: Chong Yidong writes: > If we use the original values of BEG_UNCHANGED and END_UNCHANGED, > before it is "updated" by the above code, the spurious recentering > does not take place. The original (2006) test case also seems to > behave OK -- in that case, we recenter correctly. However, I can't be > certain this is correct because I don't know the original > justification for the above check. Thanks a lot for looking at this, but the new behavior is worse: When a window starts is in a continued line, it is recentered whenever the window is unselected--by activating the minibuffer, switching to another window, or switching to another frame. -- Johan Bockgård