emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scrollbar (once more)


From: Richard Stallman
Subject: Re: scrollbar (once more)
Date: Mon, 14 Apr 2003 22:06:16 -0400

       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 via email to

[Prev in Thread] Current Thread [Next in Thread]