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: Kim F . Storm
Subject: [Emacs-diffs] Changes to emacs/src/window.c
Date: Thu, 07 Jul 2005 05:36:18 -0400

Index: emacs/src/window.c
diff -c emacs/src/window.c:1.510 emacs/src/window.c:1.511
*** emacs/src/window.c:1.510    Thu Jul  7 09:33:29 2005
--- emacs/src/window.c  Thu Jul  7 09:36:18 2005
***************
*** 5453,5459 ****
        {
          struct position pos;
  
-         iarg = XINT (arg);
          iarg = max (iarg, this_scroll_margin);
  
          pos = *vmotion (PT, -iarg, w);
--- 5453,5458 ----
***************
*** 5468,5477 ****
  
        if (center_p)
        iarg = make_number (ht / 2);
!       else if (XINT (arg) < 0)
!       iarg = XINT (arg) + ht;
!       else
!       iarg = XINT (arg);
  
        /* Don't let it get into the margin at either top or bottom.  */
        iarg = max (iarg, this_scroll_margin);
--- 5467,5474 ----
  
        if (center_p)
        iarg = make_number (ht / 2);
!       else if (iarg < 0)
!       iarg += ht;
  
        /* Don't let it get into the margin at either top or bottom.  */
        iarg = max (iarg, this_scroll_margin);




reply via email to

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