aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorMiles Bader2005-07-14 08:02:00 +0000
committerMiles Bader2005-07-14 08:02:00 +0000
commitbacb9790f594207469f22ed9f3e8085ab76e5e2b (patch)
treeb1cee62715d6cd2797f3122e4f058d7bc18ceef6 /src/window.c
parentd3e4babdd1267fb5690a17949196640a47c6f159 (diff)
parentead25b5cabbe092711864eae13a76437e6a65ce1 (diff)
downloademacs-bacb9790f594207469f22ed9f3e8085ab76e5e2b.tar.gz
emacs-bacb9790f594207469f22ed9f3e8085ab76e5e2b.zip
Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-69
Merge from emacs--cvs-trunk--0 Patches applied: * emacs--cvs-trunk--0 (patch 474-484) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 88-91) - Merge from emacs--cvs-trunk--0 - Update FSF's address in GPL notices - Update from CVS
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/window.c b/src/window.c
index 941c0a00133..9ae9bbf55f4 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1472,7 +1472,7 @@ delete_window (window)
1472 1472
1473 /* Check if we have a v/hchild with a v/hchild. In that case remove 1473 /* Check if we have a v/hchild with a v/hchild. In that case remove
1474 one of them. */ 1474 one of them. */
1475 1475
1476 if (! NILP (par->vchild) && ! NILP (XWINDOW (par->vchild)->vchild)) 1476 if (! NILP (par->vchild) && ! NILP (XWINDOW (par->vchild)->vchild))
1477 { 1477 {
1478 p = XWINDOW (par->vchild); 1478 p = XWINDOW (par->vchild);
@@ -5357,6 +5357,7 @@ and redisplay normally--don't erase and redraw the frame. */)
5357 { 5357 {
5358 arg = Fprefix_numeric_value (arg); 5358 arg = Fprefix_numeric_value (arg);
5359 CHECK_NUMBER (arg); 5359 CHECK_NUMBER (arg);
5360 iarg = XINT (arg);
5360 } 5361 }
5361 5362
5362 set_buffer_internal (buf); 5363 set_buffer_internal (buf);
@@ -5391,7 +5392,6 @@ and redisplay normally--don't erase and redraw the frame. */)
5391 int extra_line_spacing; 5392 int extra_line_spacing;
5392 int h = window_box_height (w); 5393 int h = window_box_height (w);
5393 5394
5394 iarg = XINT (arg);
5395 iarg = - max (-iarg, this_scroll_margin); 5395 iarg = - max (-iarg, this_scroll_margin);
5396 5396
5397 SET_TEXT_POS (pt, PT, PT_BYTE); 5397 SET_TEXT_POS (pt, PT, PT_BYTE);
@@ -5453,7 +5453,6 @@ and redisplay normally--don't erase and redraw the frame. */)
5453 { 5453 {
5454 struct position pos; 5454 struct position pos;
5455 5455
5456 iarg = XINT (arg);
5457 iarg = max (iarg, this_scroll_margin); 5456 iarg = max (iarg, this_scroll_margin);
5458 5457
5459 pos = *vmotion (PT, -iarg, w); 5458 pos = *vmotion (PT, -iarg, w);
@@ -5467,11 +5466,9 @@ and redisplay normally--don't erase and redraw the frame. */)
5467 int ht = window_internal_height (w); 5466 int ht = window_internal_height (w);
5468 5467
5469 if (center_p) 5468 if (center_p)
5470 iarg = make_number (ht / 2); 5469 iarg = ht / 2;
5471 else if (XINT (arg) < 0) 5470 else if (iarg < 0)
5472 iarg = XINT (arg) + ht; 5471 iarg += ht;
5473 else
5474 iarg = XINT (arg);
5475 5472
5476 /* Don't let it get into the margin at either top or bottom. */ 5473 /* Don't let it get into the margin at either top or bottom. */
5477 iarg = max (iarg, this_scroll_margin); 5474 iarg = max (iarg, this_scroll_margin);