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: show-paren-mode prevents page-down from displaying next 1/2 page. Date: Thu, 19 Apr 2007 13:24:29 -0400 Message-ID: <874pncuvjm.fsf@stupidchicken.com> References: <1F26F4742242BA449B1716A3A1E93EC60BFC356A@BFTMLVEM02.e2k.ad.ge.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1177003365 25954 80.91.229.12 (19 Apr 2007 17:22:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 19 Apr 2007 17:22:45 +0000 (UTC) Cc: Glenn Morris , rms@gnu.org, emacs-devel@gnu.org To: "Maguire\, Andrew \(GE Infra\, Energy\)" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 19 19:22:37 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 1HeaL2-0006be-Mf for ged-emacs-devel@m.gmane.org; Thu, 19 Apr 2007 19:22:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HeaQ0-0008CU-Fn for ged-emacs-devel@m.gmane.org; Thu, 19 Apr 2007 13:27:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HeaPx-0008BH-4f for emacs-devel@gnu.org; Thu, 19 Apr 2007 13:27:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HeaPv-00089y-KV for emacs-devel@gnu.org; Thu, 19 Apr 2007 13:27:36 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HeaPv-00089v-I6 for emacs-devel@gnu.org; Thu, 19 Apr 2007 13:27:35 -0400 Original-Received: from cyd.mit.edu ([18.19.1.138]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HeaKt-0001hW-Ng; Thu, 19 Apr 2007 13:22:23 -0400 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id 63A9D4E68E; Thu, 19 Apr 2007 13:24:29 -0400 (EDT) In-Reply-To: <1F26F4742242BA449B1716A3A1E93EC60BFC356A@BFTMLVEM02.e2k.ad.ge.com> (Andrew Maguire's message of "Thu\, 19 Apr 2007 13\:46\:56 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.98 (gnu/linux) 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:69648 Archived-At: "Maguire, Andrew (GE Infra, Energy)" writes: > However, the situation I have now uncovered seems to be related to > an overlay being left behind after scroll event and then the next > scroll event finds this overlay, removes it but this causes an extra > window redisplay and thus a recenter when one was not > expected. Point is moved to the correct place. Therefore, my > suspicion is that it is related to the new when test preventing the > deletion of a previous overlay when one is needed but it is outside > the new window's bounds. I suspect that the when clause needs to > always set the pos variable if dir is set but only set the mismatch > variable using the test with window-start. I checked in a different fix. This should clear up the recentering problems when using show-paren-mode.