unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
Cc: monnier+gnu/emacs@rum.cs.yale.edu
Subject: Re: scrollbar (once more)
Date: Mon, 14 Apr 2003 22:06:16 -0400	[thread overview]
Message-ID: <E195Fpw-000475-00@fencepost.gnu.org> (raw)
In-Reply-To: <200304062251.h36Mprh16267@eel.dms.auburn.edu> (message from Luc Teirlinck on Sun, 6 Apr 2003 17:51:53 -0500 (CDT))

       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;

  reply	other threads:[~2003-04-15  2:06 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-03  2:35 scrollbar (once more) Luc Teirlinck
2003-04-03 13:15 ` Robert J. Chassell
2003-04-03 22:52 ` Richard Stallman
2003-04-04  4:41   ` Luc Teirlinck
2003-04-04 14:51     ` Stefan Monnier
2003-04-05  8:12       ` Richard Stallman
2003-04-06 21:05         ` Stefan Monnier
2003-04-06 21:37           ` Luc Teirlinck
2003-04-06 22:51             ` Luc Teirlinck
2003-04-15  2:06               ` Richard Stallman [this message]
2003-04-15  2:49                 ` Luc Teirlinck
2003-04-04 22:24     ` Richard Stallman
2003-04-04 23:11       ` Luc Teirlinck
2003-04-04 23:37         ` bug in window-end Luc Teirlinck
2003-04-05  4:41           ` Luc Teirlinck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E195Fpw-000475-00@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=monnier+gnu/emacs@rum.cs.yale.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).