emacs-devel
[Top][All Lists]
Advanced

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

Re: Line Continuation Bugs & Patch


From: Richard Stallman
Subject: Re: Line Continuation Bugs & Patch
Date: Sun, 26 May 2002 16:25:19 -0600 (MDT)

    That is the follwing line in window_scroll_pixel_based of window.c .
          w->start_at_line_beg = Fbolp ();
    I think we can't say  PT == window-start  here. Am I right?

You are right.  So it is a bug to use Fbolp there.
Does this fix it?

*** window.c.~1.414.~   Sat Apr 27 15:54:02 2002
--- window.c    Sun May 26 14:30:50 2002
***************
*** 4162,4171 ****
  
    if (! vscrolled)
      {
        /* Set the window start, and set up the window for redisplay.  */
!       set_marker_restricted (w->start, make_number (IT_CHARPOS (it)),
                             w->buffer);
!       w->start_at_line_beg = Fbolp ();
        w->update_mode_line = Qt;
        XSETFASTINT (w->last_modified, 0);
        XSETFASTINT (w->last_overlay_modified, 0);
--- 4162,4175 ----
  
    if (! vscrolled)
      {
+       int pos = IT_CHARPOS (it);
+       int bytepos;
        /* Set the window start, and set up the window for redisplay.  */
!       set_marker_restricted (w->start, make_number (pos),
                             w->buffer);
!       bytepos = XMARKER (w->start)->bytepos;
!       w->start_at_line_beg = ((pos == BEGV || FETCH_BYTE (bytepos - 1) == 
'\n')
!                             ? Qt : Qnil);
        w->update_mode_line = Qt;
        XSETFASTINT (w->last_modified, 0);
        XSETFASTINT (w->last_overlay_modified, 0);



reply via email to

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