From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Redisplay bug Date: Mon, 26 Aug 2002 08:04:00 +0300 (IDT) Sender: emacs-devel-admin@gnu.org Message-ID: References: <5xy9auwn44.fsf@kfs2.cua.dk> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1030338470 17157 127.0.0.1 (26 Aug 2002 05:07:50 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 26 Aug 2002 05:07:50 +0000 (UTC) Cc: teirllm@dms.auburn.edu, deego@glue.umd.edu, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17jC6P-0004Sc-00 for ; Mon, 26 Aug 2002 07:07:49 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17jCb4-0000ha-00 for ; Mon, 26 Aug 2002 07:39:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17jC7g-0001VL-00; Mon, 26 Aug 2002 01:09:08 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17jC66-0001GN-00 for emacs-devel@gnu.org; Mon, 26 Aug 2002 01:07:30 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17jC5z-0001Ff-00 for emacs-devel@gnu.org; Mon, 26 Aug 2002 01:07:30 -0400 Original-Received: from is.elta.co.il ([199.203.121.2]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17jC5z-0001FJ-00 for emacs-devel@gnu.org; Mon, 26 Aug 2002 01:07:23 -0400 Original-Received: from is (is [199.203.121.2]) by is.elta.co.il (8.9.3/8.8.8) with SMTP id IAA24034; Mon, 26 Aug 2002 08:04:00 +0300 (IDT) X-Sender: eliz@is Original-To: "Kim F. Storm" In-Reply-To: <5xy9auwn44.fsf@kfs2.cua.dk> Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:6898 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:6898 On 26 Aug 2002, Kim F. Storm wrote: > > But now the redisplay again has a habit of leaving the cursor on > > partially visible lines at the top or bottom of the window (which > > I believe is what Richard tried to fix). > > > > Of course. Reverting that part of the change shows you found the > > right place, but it is not the right fix. > > > > Can you show me which change it was? > > Here is the change I made. Only one line of code with a large comment > on why I changed this. Hope it is enough for you to work on. I think when point enters a partially visible line, redisplay should behave as if that line were invisible, i.e. scroll the display (by default, by half the window height) to bring the point's line into the visible area. If such a change in behavior is not something that requires to rewrite large parts of the display code, I'd suggest to make it so.