From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: scrollbar (once more) Date: Mon, 14 Apr 2003 22:06:16 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200304030235.h332Zsv12591@eel.dms.auburn.edu> <200304040441.h344fvj13614@eel.dms.auburn.edu> <200304041451.h34EpDdw007299@rum.cs.yale.edu> <200304062137.h36Lbcu16188@eel.dms.auburn.edu> <200304062251.h36Mprh16267@eel.dms.auburn.edu> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1050372422 23961 80.91.224.249 (15 Apr 2003 02:07:02 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 15 Apr 2003 02:07:02 +0000 (UTC) Cc: monnier+gnu/emacs@rum.cs.yale.edu Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Apr 15 04:07:00 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 195Fqe-0006E6-00 for ; Tue, 15 Apr 2003 04:07:00 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 195FsH-0002j6-00 for ; Tue, 15 Apr 2003 04:08:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 195Fqi-0003w0-00 for emacs-devel@quimby.gnus.org; Mon, 14 Apr 2003 22:07:04 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 195Fq0-0003dK-00 for emacs-devel@gnu.org; Mon, 14 Apr 2003 22:06:20 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 195Fpx-0003bn-00 for emacs-devel@gnu.org; Mon, 14 Apr 2003 22:06:18 -0400 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 195Fpw-0003bR-00 for emacs-devel@gnu.org; Mon, 14 Apr 2003 22:06:16 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.10) id 195Fpw-000475-00; Mon, 14 Apr 2003 22:06:16 -0400 Original-To: Luc Teirlinck , bob@rattlesnake.com In-reply-to: <200304062251.h36Mprh16267@eel.dms.auburn.edu> (message from Luc Teirlinck on Sun, 6 Apr 2003 17:51:53 -0500 (CDT)) Original-cc: teirllm@dms.auburn.edu Original-cc: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:13237 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:13237 Third line to the top. Thumb shrinks to expected size. Final step of overscrolling: last line to the top. The thumb now covers nearly the entire length of the scrollbar, because the inaccessible portion all of a sudden starts "counting". Both set_vertical_scroll_bar and (window-end) do the wrong thing, because they both use the above expression, in which something must be I think I have fixed it. Does this make it work? *** xdisp.c.~1.825.~ Sun Mar 30 14:24:03 2003 --- xdisp.c Mon Apr 14 06:29:29 2003 *************** *** 12006,12013 **** } else { ! w->window_end_bytepos = 0; ! w->window_end_pos = w->window_end_vpos = make_number (0); } /* But that is not valid info until redisplay finishes. */ --- 12006,12014 ---- } else { ! w->window_end_bytepos = Z_BYTE - ZV_BYTE; ! w->window_end_pos = make_number (Z - ZV); ! w->window_end_vpos = make_number (0); } /* But that is not valid info until redisplay finishes. */ *************** *** 12220,12227 **** else { /* This window must be completely empty. */ ! w->window_end_bytepos = 0; ! w->window_end_pos = w->window_end_vpos = make_number (0); } w->window_end_valid = Qnil; --- 12221,12229 ---- else { /* This window must be completely empty. */ ! w->window_end_bytepos = Z_BYTE - ZV_BYTE; ! w->window_end_pos = make_number (Z - ZV); ! w->window_end_vpos = make_number (0); } w->window_end_valid = Qnil;