emacs-devel
[Top][All Lists]
Advanced

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

Re: recenter is broken


From: Richard M. Stallman
Subject: Re: recenter is broken
Date: Thu, 07 Jul 2005 17:31:13 -0400

    Do `emacs -q -nbc' then:

    C-h n
    M-x end-of-buffer

    Note how the entire file is completely overscrolled out of view.

Does this give good results?

*** window.c    06 Jul 2005 14:54:17 -0400      1.509
--- window.c    07 Jul 2005 16:02:47 -0400      
***************
*** 5372,5377 ****
--- 5372,5379 ----
       line counts would lead to strange effects.  */
    if (FRAME_WINDOW_P (XFRAME (w->frame)))
      {
+       iarg = XINT (arg);
+ 
        if (center_p)
        {
          struct it it;
***************
*** 5391,5397 ****
          int extra_line_spacing;
          int h = window_box_height (w);
  
-         iarg = XINT (arg);
          iarg = - max (-iarg, this_scroll_margin);
  
          SET_TEXT_POS (pt, PT, PT_BYTE);
--- 5393,5398 ----
***************
*** 5453,5459 ****
        {
          struct position pos;
  
-         iarg = XINT (arg);
          iarg = max (iarg, this_scroll_margin);
  
          pos = *vmotion (PT, -iarg, w);
--- 5454,5459 ----




reply via email to

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