emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/src/window.c


From: Richard M. Stallman
Subject: [Emacs-diffs] Changes to emacs/src/window.c
Date: Tue, 28 May 2002 16:26:34 -0400

Index: emacs/src/window.c
diff -c emacs/src/window.c:1.414 emacs/src/window.c:1.415
*** emacs/src/window.c:1.414    Fri Apr 26 19:39:05 2002
--- emacs/src/window.c  Tue May 28 16:26:34 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]