diff options
| author | Gerd Moellmann | 1999-09-07 14:48:56 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 1999-09-07 14:48:56 +0000 |
| commit | cfa2208264fdb06a8bb4882a57da315abfa86b6a (patch) | |
| tree | 0493d489c2673bad293d05aa3c7ffc908c70bd66 /src/window.c | |
| parent | a46866a03aa0bf8670529e706045b7bdc3b810d1 (diff) | |
| download | emacs-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.
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 9 |
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\ | |||
| 4582 | cells to reserve for the left marginal area. Second parameter\n\ | 4581 | cells to reserve for the left marginal area. Second parameter\n\ |
| 4583 | RIGHT-WIDTH does the same for the right marginal area.\n\ | 4582 | RIGHT-WIDTH does the same for the right marginal area.\n\ |
| 4584 | A nil width parameter means no margin.") | 4583 | A 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. */ |