aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann1999-09-07 14:48:56 +0000
committerGerd Moellmann1999-09-07 14:48:56 +0000
commitcfa2208264fdb06a8bb4882a57da315abfa86b6a (patch)
tree0493d489c2673bad293d05aa3c7ffc908c70bd66
parenta46866a03aa0bf8670529e706045b7bdc3b810d1 (diff)
downloademacs-cfa2208264fdb06a8bb4882a57da315abfa86b6a.tar.gz
emacs-cfa2208264fdb06a8bb4882a57da315abfa86b6a.zip
(Fset_window_margins): Make window the first argument.
(set_window_buffer): Call Fset_window_margins with window as first argument.
-rw-r--r--src/window.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/window.c b/src/window.c
index 6f1a325d67c..d8bb7cdd699 100644
--- a/src/window.c
+++ b/src/window.c
@@ -2382,8 +2382,7 @@ set_window_buffer (window, buffer, run_hooks_p)
2382 } 2382 }
2383 2383
2384 /* Set left and right marginal area width from buffer. */ 2384 /* Set left and right marginal area width from buffer. */
2385 Fset_window_margins (b->left_margin_width, b->right_margin_width, 2385 Fset_window_margins (window, b->left_margin_width, b->right_margin_width);
2386 window);
2387 2386
2388 if (run_hooks_p) 2387 if (run_hooks_p)
2389 { 2388 {
@@ -4582,16 +4581,16 @@ First parameter LEFT-WIDTH specifies the number of character\n\
4582cells to reserve for the left marginal area. Second parameter\n\ 4581cells to reserve for the left marginal area. Second parameter\n\
4583RIGHT-WIDTH does the same for the right marginal area.\n\ 4582RIGHT-WIDTH does the same for the right marginal area.\n\
4584A nil width parameter means no margin.") 4583A nil width parameter means no margin.")
4585 (left, right, window) 4584 (window, left, right)
4586 Lisp_Object window, left, right; 4585 Lisp_Object window, left, right;
4587{ 4586{
4588 struct window *w = decode_window (window); 4587 struct window *w = decode_window (window);
4589 struct frame *f = XFRAME (w->frame); 4588 struct frame *f = XFRAME (w->frame);
4590 4589
4591 if (!NILP (left)) 4590 if (!NILP (left))
4592 CHECK_NUMBER_OR_FLOAT (left, 0); 4591 CHECK_NUMBER_OR_FLOAT (left, 1);
4593 if (!NILP (right)) 4592 if (!NILP (right))
4594 CHECK_NUMBER_OR_FLOAT (right, 0); 4593 CHECK_NUMBER_OR_FLOAT (right, 2);
4595 4594
4596 /* Check widths < 0 and translate a zero width to nil. 4595 /* Check widths < 0 and translate a zero width to nil.
4597 Margins that are too wide have to be checked elsewhere. */ 4596 Margins that are too wide have to be checked elsewhere. */