From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: delete-overlay causes recentering Date: Mon, 23 Apr 2007 19:07:48 -0400 Message-ID: References: <25771086.79401173867519911.JavaMail.www@wwinf4104> <87fy72v2bs.fsf@stupidchicken.com> <87zm5av218.fsf@stupidchicken.com> <873b31e9tq.fsf@stupidchicken.com> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1177369889 7757 80.91.229.12 (23 Apr 2007 23:11:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 23 Apr 2007 23:11:29 +0000 (UTC) Cc: emacs-devel@gnu.org To: bojohan+news@dd.chalmers.se (Johan =?utf-8?Q?Bockg=C3=A5rd?=) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 24 01:11:25 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 1Hg7go-0001oB-Lz for ged-emacs-devel@m.gmane.org; Tue, 24 Apr 2007 01:11:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hg7mG-0005hV-5Z for ged-emacs-devel@m.gmane.org; Mon, 23 Apr 2007 19:17:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hg7lQ-0004zV-2c for emacs-devel@gnu.org; Mon, 23 Apr 2007 19:16:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hg7lP-0004z5-9s for emacs-devel@gnu.org; Mon, 23 Apr 2007 19:16:07 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hg7lP-0004z0-6B for emacs-devel@gnu.org; Mon, 23 Apr 2007 19:16:07 -0400 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hg7fx-0002gD-46 for emacs-devel@gnu.org; Mon, 23 Apr 2007 19:10:29 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1Hg7dM-0002AN-KF; Mon, 23 Apr 2007 19:07:48 -0400 In-reply-to: (bojohan+news@dd.chalmers.se) 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:69884 Archived-At: > 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. That is the spurious scrolling bug I have mentioned. Thank you for connecting it with specific code. Now it should be possible to track it down. Yidong wrote: I don't know an easy way to fix this. Can you describe the series of events that cause the spurious recentering?