aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/window.c11
2 files changed, 9 insertions, 8 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index e13ffe8fc66..d70edd2fbf9 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12005-07-07 Kim F. Storm <storm@cua.dk>
2
3 * window.c (Frecenter): Fix last change (set iarg before use).
4
12005-07-06 Richard M. Stallman <rms@gnu.org> 52005-07-06 Richard M. Stallman <rms@gnu.org>
2 6
3 * window.c (Frecenter): When arg is inside the scroll margin, 7 * window.c (Frecenter): When arg is inside the scroll margin,
@@ -19,7 +23,7 @@
19 assume that font family length is less than 32. 23 assume that font family length is less than 32.
20 (x_compute_min_glyph_bounds): Make static. 24 (x_compute_min_glyph_bounds): Make static.
21 (x_load_font): Never set fonts_changed_p to zero. 25 (x_load_font): Never set fonts_changed_p to zero.
22 26
232005-07-04 Lute Kamstra <lute@gnu.org> 272005-07-04 Lute Kamstra <lute@gnu.org>
24 28
25 * Update FSF's address in GPL notices. 29 * Update FSF's address in GPL notices.
diff --git a/src/window.c b/src/window.c
index d9af9ba72ac..a55043ad673 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1474,7 +1474,7 @@ delete_window (window)
1474 1474
1475 /* Check if we have a v/hchild with a v/hchild. In that case remove 1475 /* Check if we have a v/hchild with a v/hchild. In that case remove
1476 one of them. */ 1476 one of them. */
1477 1477
1478 if (! NILP (par->vchild) && ! NILP (XWINDOW (par->vchild)->vchild)) 1478 if (! NILP (par->vchild) && ! NILP (XWINDOW (par->vchild)->vchild))
1479 { 1479 {
1480 p = XWINDOW (par->vchild); 1480 p = XWINDOW (par->vchild);
@@ -5359,6 +5359,7 @@ and redisplay normally--don't erase and redraw the frame. */)
5359 { 5359 {
5360 arg = Fprefix_numeric_value (arg); 5360 arg = Fprefix_numeric_value (arg);
5361 CHECK_NUMBER (arg); 5361 CHECK_NUMBER (arg);
5362 iarg = XINT (arg);
5362 } 5363 }
5363 5364
5364 set_buffer_internal (buf); 5365 set_buffer_internal (buf);
@@ -5393,7 +5394,6 @@ and redisplay normally--don't erase and redraw the frame. */)
5393 int extra_line_spacing; 5394 int extra_line_spacing;
5394 int h = window_box_height (w); 5395 int h = window_box_height (w);
5395 5396
5396 iarg = XINT (arg);
5397 iarg = - max (-iarg, this_scroll_margin); 5397 iarg = - max (-iarg, this_scroll_margin);
5398 5398
5399 SET_TEXT_POS (pt, PT, PT_BYTE); 5399 SET_TEXT_POS (pt, PT, PT_BYTE);
@@ -5455,7 +5455,6 @@ and redisplay normally--don't erase and redraw the frame. */)
5455 { 5455 {
5456 struct position pos; 5456 struct position pos;
5457 5457
5458 iarg = XINT (arg);
5459 iarg = max (iarg, this_scroll_margin); 5458 iarg = max (iarg, this_scroll_margin);
5460 5459
5461 pos = *vmotion (PT, -iarg, w); 5460 pos = *vmotion (PT, -iarg, w);
@@ -5470,10 +5469,8 @@ and redisplay normally--don't erase and redraw the frame. */)
5470 5469
5471 if (center_p) 5470 if (center_p)
5472 iarg = make_number (ht / 2); 5471 iarg = make_number (ht / 2);
5473 else if (XINT (arg) < 0) 5472 else if (iarg < 0)
5474 iarg = XINT (arg) + ht; 5473 iarg += ht;
5475 else
5476 iarg = XINT (arg);
5477 5474
5478 /* Don't let it get into the margin at either top or bottom. */ 5475 /* Don't let it get into the margin at either top or bottom. */
5479 iarg = max (iarg, this_scroll_margin); 5476 iarg = max (iarg, this_scroll_margin);