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: delete-overlay causes recentering Date: Mon, 23 Apr 2007 10:11:05 -0400 Message-ID: <87mz0zqiyu.fsf@stupidchicken.com> 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: quoted-printable X-Trace: sea.gmane.org 1177337526 15400 80.91.229.12 (23 Apr 2007 14:12:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 23 Apr 2007 14:12:06 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 23 16:11:51 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 1HfzGa-0003sw-P5 for ged-emacs-devel@m.gmane.org; Mon, 23 Apr 2007 16:11:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HfzLz-0002QV-P6 for ged-emacs-devel@m.gmane.org; Mon, 23 Apr 2007 10:17:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HfzLr-0002O5-SO for emacs-devel@gnu.org; Mon, 23 Apr 2007 10:17:11 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HfzLr-0002No-Ib for emacs-devel@gnu.org; Mon, 23 Apr 2007 10:17:11 -0400 Original-Received: from south-station-annex.mit.edu ([18.72.1.2]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HfzGS-0003sJ-17 for emacs-devel@gnu.org; Mon, 23 Apr 2007 10:11:36 -0400 Original-Received: from central-city-carrier-station.mit.edu (CENTRAL-CITY-CARRIER-STATION.MIT.EDU [18.7.7.72]) by south-station-annex.mit.edu (8.13.6/8.9.2) with ESMTP id l3NEBTEw026188 for ; Mon, 23 Apr 2007 10:11:31 -0400 (EDT) Original-Received: from outgoing-legacy.mit.edu (OUTGOING-LEGACY.MIT.EDU [18.7.22.104]) by central-city-carrier-station.mit.edu (8.13.6/8.9.2) with ESMTP id l3NEBJPF027584 for ; Mon, 23 Apr 2007 10:11:22 -0400 (EDT) Original-Received: from localhost (SYDNEYPACIFIC-FOUR-SEVENTY.MIT.EDU [18.95.6.215]) ) by outgoing-legacy.mit.edu (8.13.6/8.12.4) with ESMTP id l3NEBE8g006217 for ; Mon, 23 Apr 2007 10:11:19 -0400 (EDT) Original-Received: from cyd by localhost with local (Exim 3.36 #1 (Debian)) id 1HfzFy-0000td-00 for ; Mon, 23 Apr 2007 10:11:06 -0400 In-Reply-To: ("Johan =?utf-8?Q?B?= =?utf-8?Q?ockg=C3=A5rd=22's?= message of "Mon\, 23 Apr 2007 15\:57\:00 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.98 (gnu/linux) X-Scanned-By: MIMEDefang 2.42 X-Spam-Score: -2.599 X-detected-kernel: Solaris 9.1 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:69853 Archived-At: bojohan+news@dd.chalmers.se (Johan Bockg=C3=A5rd) writes: > 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. I know an easy way to fix this. The original patch that introduced this problem in 2006 was intended to prevent an even more serious problem---redisplay being completely garbled when window starts in a continued line. I think it will have to wait till after the release.