From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: scrollbar (once more) Date: Sun, 6 Apr 2003 17:51:53 -0500 (CDT) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200304062251.h36Mprh16267@eel.dms.auburn.edu> 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> NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1049669750 16854 80.91.224.249 (6 Apr 2003 22:55:50 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 6 Apr 2003 22:55:50 +0000 (UTC) Cc: monnier+gnu/emacs@rum.cs.yale.edu Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Apr 07 00:55:48 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 192J3E-0004Ng-00 for ; Mon, 07 Apr 2003 00:55:48 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 192J6S-0000ew-00 for ; Mon, 07 Apr 2003 00:59:08 +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 192J2b-0001Ho-06 for emacs-devel@quimby.gnus.org; Sun, 06 Apr 2003 18:55:09 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 192J1a-0000Iq-00 for emacs-devel@gnu.org; Sun, 06 Apr 2003 18:54:06 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 192IzO-0006me-00 for emacs-devel@gnu.org; Sun, 06 Apr 2003 18:51:52 -0400 Original-Received: from manatee.dms.auburn.edu ([131.204.53.104]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 192IyU-0006Cj-00; Sun, 06 Apr 2003 18:50:54 -0400 Original-Received: from eel.dms.auburn.edu (eel.dms.auburn.edu [131.204.53.108]) h36Moroc029559; Sun, 6 Apr 2003 17:50:53 -0500 (CDT) Original-Received: (from teirllm@localhost) by eel.dms.auburn.edu (8.11.6+Sun/8.11.6) id h36Mprh16267; Sun, 6 Apr 2003 17:51:53 -0500 (CDT) X-Authentication-Warning: eel.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: teirllm@dms.auburn.edu In-reply-to: <200304062137.h36Lbcu16188@eel.dms.auburn.edu> (message from Luc Teirlinck on Sun, 6 Apr 2003 16:37:38 -0500 (CDT)) Original-cc: rms@gnu.org 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:12940 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:12940 Line 11235 of xdisp.c: end = BUF_Z (buf) - XFASTINT (w->window_end_pos) - BUF_BEGV (buf); (in function set_vertical_scroll_bar) Lines 978-981 of window.c: else XSETINT (value, BUF_Z (XBUFFER (buf)) - XFASTINT (w->window_end_pos)); return value; (in function window-end) Both set_vertical_scroll_bar and (window-end) do the wrong thing, because they both use the above expression, in which something must be wrong. My best guess is that redisplay does not get w->window_end_pos right. I do not know enough about either the Emacs C code or redisplay to go beyond this. I definitely do not have the time to start studying that code at present. Is anybody familiar with the new redisplay mechanism (except for Gerd who wrote it)? (window-end nil t) gets things right. Sincerely, Luc.