aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorDan Nicolaescu2010-07-08 14:25:08 -0700
committerDan Nicolaescu2010-07-08 14:25:08 -0700
commit5842a27bbfb7efa6872824e501bc7ec98b631553 (patch)
treed173899af9cbed9d90d94cfc710e6ecc06dd1f6b /src/window.c
parent71c44c04bb996abe77db8efd88255fde06532b10 (diff)
downloademacs-5842a27bbfb7efa6872824e501bc7ec98b631553.tar.gz
emacs-5842a27bbfb7efa6872824e501bc7ec98b631553.zip
Convert DEFUNs to standard C.
* src/alloc.c: Convert DEFUNs to standard C. * src/buffer.c: * src/bytecode.c: * src/callint.c: * src/callproc.c: * src/casefiddle.c: * src/casetab.c: * src/category.c: * src/character.c: * src/charset.c: * src/chartab.c: * src/cmds.c: * src/coding.c: * src/composite.c: * src/data.c: * src/dbusbind.c: * src/dired.c: * src/dispnew.c: * src/doc.c: * src/dosfns.c: * src/editfns.c: * src/emacs.c: * src/eval.c: * src/fileio.c: * src/filelock.c: * src/floatfns.c: * src/fns.c: * src/font.c: * src/fontset.c: * src/frame.c: * src/fringe.c: * src/image.c: * src/indent.c: * src/insdel.c: * src/keyboard.c: * src/keymap.c: * src/lread.c: * src/macros.c: * src/marker.c: * src/menu.c: * src/minibuf.c: * src/msdos.c: * src/nsfns.m: * src/nsmenu.m: * src/nsselect.m: * src/print.c: * src/process.c: * src/search.c: * src/sound.c: * src/syntax.c: * src/term.c: * src/terminal.c: * src/textprop.c: * src/undo.c: * src/w16select.c: * src/w32console.c: * src/w32fns.c: * src/w32font.c: * src/w32menu.c: * src/w32proc.c: * src/w32select.c: * src/window.c: * src/xdisp.c: * src/xfaces.c: * src/xfns.c: * src/xmenu.c: * src/xselect.c: * src/xsettings.c: * src/xsmfns.c: Likewise.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c231
1 files changed, 78 insertions, 153 deletions
diff --git a/src/window.c b/src/window.c
index ef7d14595c1..89563112628 100644
--- a/src/window.c
+++ b/src/window.c
@@ -205,16 +205,14 @@ extern Lisp_Object Qtty;
205 205
206DEFUN ("windowp", Fwindowp, Swindowp, 1, 1, 0, 206DEFUN ("windowp", Fwindowp, Swindowp, 1, 1, 0,
207 doc: /* Return t if OBJECT is a window. */) 207 doc: /* Return t if OBJECT is a window. */)
208 (object) 208 (Lisp_Object object)
209 Lisp_Object object;
210{ 209{
211 return WINDOWP (object) ? Qt : Qnil; 210 return WINDOWP (object) ? Qt : Qnil;
212} 211}
213 212
214DEFUN ("window-live-p", Fwindow_live_p, Swindow_live_p, 1, 1, 0, 213DEFUN ("window-live-p", Fwindow_live_p, Swindow_live_p, 1, 1, 0,
215 doc: /* Return t if OBJECT is a window which is currently visible. */) 214 doc: /* Return t if OBJECT is a window which is currently visible. */)
216 (object) 215 (Lisp_Object object)
217 Lisp_Object object;
218{ 216{
219 return WINDOW_LIVE_P (object) ? Qt : Qnil; 217 return WINDOW_LIVE_P (object) ? Qt : Qnil;
220} 218}
@@ -274,7 +272,7 @@ make_window (void)
274 272
275DEFUN ("selected-window", Fselected_window, Sselected_window, 0, 0, 0, 273DEFUN ("selected-window", Fselected_window, Sselected_window, 0, 0, 0,
276 doc: /* Return the window that the cursor now appears in and commands apply to. */) 274 doc: /* Return the window that the cursor now appears in and commands apply to. */)
277 () 275 (void)
278{ 276{
279 return selected_window; 277 return selected_window;
280} 278}
@@ -283,8 +281,7 @@ DEFUN ("minibuffer-window", Fminibuffer_window, Sminibuffer_window, 0, 1, 0,
283 doc: /* Return the window used now for minibuffers. 281 doc: /* Return the window used now for minibuffers.
284If the optional argument FRAME is specified, return the minibuffer window 282If the optional argument FRAME is specified, return the minibuffer window
285used by that frame. */) 283used by that frame. */)
286 (frame) 284 (Lisp_Object frame)
287 Lisp_Object frame;
288{ 285{
289 if (NILP (frame)) 286 if (NILP (frame))
290 frame = selected_frame; 287 frame = selected_frame;
@@ -295,8 +292,7 @@ used by that frame. */)
295DEFUN ("window-minibuffer-p", Fwindow_minibuffer_p, Swindow_minibuffer_p, 0, 1, 0, 292DEFUN ("window-minibuffer-p", Fwindow_minibuffer_p, Swindow_minibuffer_p, 0, 1, 0,
296 doc: /* Return non-nil if WINDOW is a minibuffer window. 293 doc: /* Return non-nil if WINDOW is a minibuffer window.
297WINDOW defaults to the selected window. */) 294WINDOW defaults to the selected window. */)
298 (window) 295 (Lisp_Object window)
299 Lisp_Object window;
300{ 296{
301 struct window *w = decode_window (window); 297 struct window *w = decode_window (window);
302 return MINI_WINDOW_P (w) ? Qt : Qnil; 298 return MINI_WINDOW_P (w) ? Qt : Qnil;
@@ -320,8 +316,7 @@ of the window. The remaining elements are omitted if the character after
320POS is fully visible; otherwise, RTOP and RBOT are the number of pixels 316POS is fully visible; otherwise, RTOP and RBOT are the number of pixels
321off-window at the top and bottom of the row, ROWH is the height of the 317off-window at the top and bottom of the row, ROWH is the height of the
322display row, and VPOS is the row number (0-based) containing POS. */) 318display row, and VPOS is the row number (0-based) containing POS. */)
323 (pos, window, partially) 319 (Lisp_Object pos, Lisp_Object window, Lisp_Object partially)
324 Lisp_Object pos, window, partially;
325{ 320{
326 register struct window *w; 321 register struct window *w;
327 register int posint; 322 register int posint;
@@ -389,8 +384,7 @@ of the (first) text line, YPOS is negative.
389 384
390Return nil if window display is not up-to-date. In that case, use 385Return nil if window display is not up-to-date. In that case, use
391`pos-visible-in-window-p' to obtain the information. */) 386`pos-visible-in-window-p' to obtain the information. */)
392 (line, window) 387 (Lisp_Object line, Lisp_Object window)
393 Lisp_Object line, window;
394{ 388{
395 register struct window *w; 389 register struct window *w;
396 register struct buffer *b; 390 register struct buffer *b;
@@ -505,8 +499,7 @@ decode_any_window (register Lisp_Object window)
505DEFUN ("window-buffer", Fwindow_buffer, Swindow_buffer, 0, 1, 0, 499DEFUN ("window-buffer", Fwindow_buffer, Swindow_buffer, 0, 1, 0,
506 doc: /* Return the buffer that WINDOW is displaying. 500 doc: /* Return the buffer that WINDOW is displaying.
507WINDOW defaults to the selected window. */) 501WINDOW defaults to the selected window. */)
508 (window) 502 (Lisp_Object window)
509 Lisp_Object window;
510{ 503{
511 return decode_window (window)->buffer; 504 return decode_window (window)->buffer;
512} 505}
@@ -516,8 +509,7 @@ DEFUN ("window-height", Fwindow_height, Swindow_height, 0, 1, 0,
516WINDOW defaults to the selected window. 509WINDOW defaults to the selected window.
517 510
518The return value includes WINDOW's mode line and header line, if any. */) 511The return value includes WINDOW's mode line and header line, if any. */)
519 (window) 512 (Lisp_Object window)
520 Lisp_Object window;
521{ 513{
522 return decode_any_window (window)->total_lines; 514 return decode_any_window (window)->total_lines;
523} 515}
@@ -529,8 +521,7 @@ WINDOW defaults to the selected window.
529Note: The return value is the number of columns available for text in 521Note: The return value is the number of columns available for text in
530WINDOW. If you want to find out how many columns WINDOW takes up, use 522WINDOW. If you want to find out how many columns WINDOW takes up, use
531(let ((edges (window-edges))) (- (nth 2 edges) (nth 0 edges))). */) 523(let ((edges (window-edges))) (- (nth 2 edges) (nth 0 edges))). */)
532 (window) 524 (Lisp_Object window)
533 Lisp_Object window;
534{ 525{
535 return make_number (window_box_text_cols (decode_any_window (window))); 526 return make_number (window_box_text_cols (decode_any_window (window)));
536} 527}
@@ -538,8 +529,7 @@ WINDOW. If you want to find out how many columns WINDOW takes up, use
538DEFUN ("window-full-width-p", Fwindow_full_width_p, Swindow_full_width_p, 0, 1, 0, 529DEFUN ("window-full-width-p", Fwindow_full_width_p, Swindow_full_width_p, 0, 1, 0,
539 doc: /* Return t if WINDOW is as wide as its frame. 530 doc: /* Return t if WINDOW is as wide as its frame.
540WINDOW defaults to the selected window. */) 531WINDOW defaults to the selected window. */)
541 (window) 532 (Lisp_Object window)
542 Lisp_Object window;
543{ 533{
544 return WINDOW_FULL_WIDTH_P (decode_any_window (window)) ? Qt : Qnil; 534 return WINDOW_FULL_WIDTH_P (decode_any_window (window)) ? Qt : Qnil;
545} 535}
@@ -547,8 +537,7 @@ WINDOW defaults to the selected window. */)
547DEFUN ("window-hscroll", Fwindow_hscroll, Swindow_hscroll, 0, 1, 0, 537DEFUN ("window-hscroll", Fwindow_hscroll, Swindow_hscroll, 0, 1, 0,
548 doc: /* Return the number of columns by which WINDOW is scrolled from left margin. 538 doc: /* Return the number of columns by which WINDOW is scrolled from left margin.
549WINDOW defaults to the selected window. */) 539WINDOW defaults to the selected window. */)
550 (window) 540 (Lisp_Object window)
551 Lisp_Object window;
552{ 541{
553 return decode_window (window)->hscroll; 542 return decode_window (window)->hscroll;
554} 543}
@@ -559,8 +548,7 @@ Return NCOL. NCOL should be zero or positive.
559 548
560Note that if `automatic-hscrolling' is non-nil, you cannot scroll the 549Note that if `automatic-hscrolling' is non-nil, you cannot scroll the
561window so that the location of point moves off-window. */) 550window so that the location of point moves off-window. */)
562 (window, ncol) 551 (Lisp_Object window, Lisp_Object ncol)
563 Lisp_Object window, ncol;
564{ 552{
565 struct window *w = decode_window (window); 553 struct window *w = decode_window (window);
566 int hscroll; 554 int hscroll;
@@ -581,8 +569,7 @@ DEFUN ("window-redisplay-end-trigger", Fwindow_redisplay_end_trigger,
581 doc: /* Return WINDOW's redisplay end trigger value. 569 doc: /* Return WINDOW's redisplay end trigger value.
582WINDOW defaults to the selected window. 570WINDOW defaults to the selected window.
583See `set-window-redisplay-end-trigger' for more information. */) 571See `set-window-redisplay-end-trigger' for more information. */)
584 (window) 572 (Lisp_Object window)
585 Lisp_Object window;
586{ 573{
587 return decode_window (window)->redisplay_end_trigger; 574 return decode_window (window)->redisplay_end_trigger;
588} 575}
@@ -595,8 +582,7 @@ If it is a buffer position, then if redisplay in WINDOW reaches a position
595beyond VALUE, the functions in `redisplay-end-trigger-functions' are called 582beyond VALUE, the functions in `redisplay-end-trigger-functions' are called
596with two arguments: WINDOW, and the end trigger value. 583with two arguments: WINDOW, and the end trigger value.
597Afterwards the end-trigger value is reset to nil. */) 584Afterwards the end-trigger value is reset to nil. */)
598 (window, value) 585 (register Lisp_Object window, Lisp_Object value)
599 register Lisp_Object window, value;
600{ 586{
601 register struct window *w; 587 register struct window *w;
602 588
@@ -616,8 +602,7 @@ BOTTOM is one more than the bottommost row occupied by WINDOW.
616The edges include the space used by WINDOW's scroll bar, display 602The edges include the space used by WINDOW's scroll bar, display
617margins, fringes, header line, and/or mode line. For the edges of 603margins, fringes, header line, and/or mode line. For the edges of
618just the text area, use `window-inside-edges'. */) 604just the text area, use `window-inside-edges'. */)
619 (window) 605 (Lisp_Object window)
620 Lisp_Object window;
621{ 606{
622 register struct window *w = decode_any_window (window); 607 register struct window *w = decode_any_window (window);
623 608
@@ -638,8 +623,7 @@ BOTTOM is one more than the bottommost y position occupied by WINDOW.
638The pixel edges include the space used by WINDOW's scroll bar, display 623The pixel edges include the space used by WINDOW's scroll bar, display
639margins, fringes, header line, and/or mode line. For the pixel edges 624margins, fringes, header line, and/or mode line. For the pixel edges
640of just the text area, use `window-inside-pixel-edges'. */) 625of just the text area, use `window-inside-pixel-edges'. */)
641 (window) 626 (Lisp_Object window)
642 Lisp_Object window;
643{ 627{
644 register struct window *w = decode_any_window (window); 628 register struct window *w = decode_any_window (window);
645 629
@@ -678,8 +662,7 @@ BOTTOM is one more than the bottommost y position occupied by WINDOW.
678The pixel edges include the space used by WINDOW's scroll bar, display 662The pixel edges include the space used by WINDOW's scroll bar, display
679margins, fringes, header line, and/or mode line. For the pixel edges 663margins, fringes, header line, and/or mode line. For the pixel edges
680of just the text area, use `window-inside-absolute-pixel-edges'. */) 664of just the text area, use `window-inside-absolute-pixel-edges'. */)
681 (window) 665 (Lisp_Object window)
682 Lisp_Object window;
683{ 666{
684 register struct window *w = decode_any_window (window); 667 register struct window *w = decode_any_window (window);
685 int add_x, add_y; 668 int add_x, add_y;
@@ -702,8 +685,7 @@ RIGHT is one more than the rightmost column of WINDOW's text area.
702BOTTOM is one more than the bottommost row of WINDOW's text area. 685BOTTOM is one more than the bottommost row of WINDOW's text area.
703The inside edges do not include the space used by the WINDOW's scroll 686The inside edges do not include the space used by the WINDOW's scroll
704bar, display margins, fringes, header line, and/or mode line. */) 687bar, display margins, fringes, header line, and/or mode line. */)
705 (window) 688 (Lisp_Object window)
706 Lisp_Object window;
707{ 689{
708 register struct window *w = decode_any_window (window); 690 register struct window *w = decode_any_window (window);
709 691
@@ -728,8 +710,7 @@ RIGHT is one more than the rightmost x position of WINDOW's text area.
728BOTTOM is one more than the bottommost y position of WINDOW's text area. 710BOTTOM is one more than the bottommost y position of WINDOW's text area.
729The inside edges do not include the space used by WINDOW's scroll bar, 711The inside edges do not include the space used by WINDOW's scroll bar,
730display margins, fringes, header line, and/or mode line. */) 712display margins, fringes, header line, and/or mode line. */)
731 (window) 713 (Lisp_Object window)
732 Lisp_Object window;
733{ 714{
734 register struct window *w = decode_any_window (window); 715 register struct window *w = decode_any_window (window);
735 716
@@ -756,8 +737,7 @@ RIGHT is one more than the rightmost x position of WINDOW's text area.
756BOTTOM is one more than the bottommost y position of WINDOW's text area. 737BOTTOM is one more than the bottommost y position of WINDOW's text area.
757The inside edges do not include the space used by WINDOW's scroll bar, 738The inside edges do not include the space used by WINDOW's scroll bar,
758display margins, fringes, header line, and/or mode line. */) 739display margins, fringes, header line, and/or mode line. */)
759 (window) 740 (Lisp_Object window)
760 Lisp_Object window;
761{ 741{
762 register struct window *w = decode_any_window (window); 742 register struct window *w = decode_any_window (window);
763 int add_x, add_y; 743 int add_x, add_y;
@@ -1002,8 +982,7 @@ If they are on the border between WINDOW and its right sibling,
1002 `vertical-line' is returned. 982 `vertical-line' is returned.
1003If they are in the windows's left or right marginal areas, `left-margin'\n\ 983If they are in the windows's left or right marginal areas, `left-margin'\n\
1004 or `right-margin' is returned. */) 984 or `right-margin' is returned. */)
1005 (coordinates, window) 985 (register Lisp_Object coordinates, Lisp_Object window)
1006 register Lisp_Object coordinates, window;
1007{ 986{
1008 struct window *w; 987 struct window *w;
1009 struct frame *f; 988 struct frame *f;
@@ -1155,8 +1134,7 @@ DEFUN ("window-at", Fwindow_at, Swindow_at, 2, 3, 0,
1155If omitted, FRAME defaults to the currently selected frame. 1134If omitted, FRAME defaults to the currently selected frame.
1156The top left corner of the frame is considered to be row 0, 1135The top left corner of the frame is considered to be row 0,
1157column 0. */) 1136column 0. */)
1158 (x, y, frame) 1137 (Lisp_Object x, Lisp_Object y, Lisp_Object frame)
1159 Lisp_Object x, y, frame;
1160{ 1138{
1161 struct frame *f; 1139 struct frame *f;
1162 1140
@@ -1189,8 +1167,7 @@ is also currently selected, the value returned is the same as (point).
1189It would be more strictly correct to return the `top-level' value 1167It would be more strictly correct to return the `top-level' value
1190of point, outside of any save-excursion forms. 1168of point, outside of any save-excursion forms.
1191But that is hard to define. */) 1169But that is hard to define. */)
1192 (window) 1170 (Lisp_Object window)
1193 Lisp_Object window;
1194{ 1171{
1195 register struct window *w = decode_window (window); 1172 register struct window *w = decode_window (window);
1196 1173
@@ -1204,8 +1181,7 @@ DEFUN ("window-start", Fwindow_start, Swindow_start, 0, 1, 0,
1204 doc: /* Return position at which display currently starts in WINDOW. 1181 doc: /* Return position at which display currently starts in WINDOW.
1205WINDOW defaults to the selected window. 1182WINDOW defaults to the selected window.
1206This is updated by redisplay or by calling `set-window-start'. */) 1183This is updated by redisplay or by calling `set-window-start'. */)
1207 (window) 1184 (Lisp_Object window)
1208 Lisp_Object window;
1209{ 1185{
1210 return Fmarker_position (decode_window (window)->start); 1186 return Fmarker_position (decode_window (window)->start);
1211} 1187}
@@ -1231,8 +1207,7 @@ Return nil if there is no recorded value. \(This can happen if the
1231last redisplay of WINDOW was preempted, and did not finish.) 1207last redisplay of WINDOW was preempted, and did not finish.)
1232If UPDATE is non-nil, compute the up-to-date position 1208If UPDATE is non-nil, compute the up-to-date position
1233if it isn't already recorded. */) 1209if it isn't already recorded. */)
1234 (window, update) 1210 (Lisp_Object window, Lisp_Object update)
1235 Lisp_Object window, update;
1236{ 1211{
1237 Lisp_Object value; 1212 Lisp_Object value;
1238 struct window *w = decode_window (window); 1213 struct window *w = decode_window (window);
@@ -1300,8 +1275,7 @@ if it isn't already recorded. */)
1300DEFUN ("set-window-point", Fset_window_point, Sset_window_point, 2, 2, 0, 1275DEFUN ("set-window-point", Fset_window_point, Sset_window_point, 2, 2, 0,
1301 doc: /* Make point value in WINDOW be at position POS in WINDOW's buffer. 1276 doc: /* Make point value in WINDOW be at position POS in WINDOW's buffer.
1302Return POS. */) 1277Return POS. */)
1303 (window, pos) 1278 (Lisp_Object window, Lisp_Object pos)
1304 Lisp_Object window, pos;
1305{ 1279{
1306 register struct window *w = decode_window (window); 1280 register struct window *w = decode_window (window);
1307 1281
@@ -1325,8 +1299,7 @@ DEFUN ("set-window-start", Fset_window_start, Sset_window_start, 2, 3, 0,
1325WINDOW defaults to the selected window. Return POS. 1299WINDOW defaults to the selected window. Return POS.
1326Optional third arg NOFORCE non-nil inhibits next redisplay from 1300Optional third arg NOFORCE non-nil inhibits next redisplay from
1327overriding motion of point in order to display at this exact start. */) 1301overriding motion of point in order to display at this exact start. */)
1328 (window, pos, noforce) 1302 (Lisp_Object window, Lisp_Object pos, Lisp_Object noforce)
1329 Lisp_Object window, pos, noforce;
1330{ 1303{
1331 register struct window *w = decode_window (window); 1304 register struct window *w = decode_window (window);
1332 1305
@@ -1364,8 +1337,7 @@ from displaying another buffer in it. `get-lru-window' and
1364Functions like `set-window-buffer' may change the buffer displayed by a 1337Functions like `set-window-buffer' may change the buffer displayed by a
1365window, unless that window is "strongly" dedicated to its buffer, that 1338window, unless that window is "strongly" dedicated to its buffer, that
1366is the value returned by `window-dedicated-p' is t. */) 1339is the value returned by `window-dedicated-p' is t. */)
1367 (window) 1340 (Lisp_Object window)
1368 Lisp_Object window;
1369{ 1341{
1370 return decode_window (window)->dedicated; 1342 return decode_window (window)->dedicated;
1371} 1343}
@@ -1389,8 +1361,7 @@ its buffer. Functions like `set-window-buffer' may change the buffer
1389displayed by a window, unless that window is strongly dedicated to its 1361displayed by a window, unless that window is strongly dedicated to its
1390buffer. If and when `set-window-buffer' displays another buffer in a 1362buffer. If and when `set-window-buffer' displays another buffer in a
1391window, it also makes sure that the window is not marked as dedicated. */) 1363window, it also makes sure that the window is not marked as dedicated. */)
1392 (window, flag) 1364 (Lisp_Object window, Lisp_Object flag)
1393 Lisp_Object window, flag;
1394{ 1365{
1395 register struct window *w = decode_window (window); 1366 register struct window *w = decode_window (window);
1396 1367
@@ -1404,8 +1375,7 @@ DEFUN ("window-parameters", Fwindow_parameters, Swindow_parameters,
1404 doc: /* Return the parameters of WINDOW and their values. 1375 doc: /* Return the parameters of WINDOW and their values.
1405WINDOW defaults to the selected window. The return value is a list of 1376WINDOW defaults to the selected window. The return value is a list of
1406elements of the form (PARAMETER . VALUE). */) 1377elements of the form (PARAMETER . VALUE). */)
1407 (window) 1378 (Lisp_Object window)
1408 Lisp_Object window;
1409{ 1379{
1410 return Fcopy_alist (decode_window (window)->window_parameters); 1380 return Fcopy_alist (decode_window (window)->window_parameters);
1411} 1381}
@@ -1414,8 +1384,7 @@ DEFUN ("window-parameter", Fwindow_parameter, Swindow_parameter,
1414 2, 2, 0, 1384 2, 2, 0,
1415 doc: /* Return WINDOW's value for PARAMETER. 1385 doc: /* Return WINDOW's value for PARAMETER.
1416WINDOW defaults to the selected window. */) 1386WINDOW defaults to the selected window. */)
1417 (window, parameter) 1387 (Lisp_Object window, Lisp_Object parameter)
1418 Lisp_Object window, parameter;
1419{ 1388{
1420 Lisp_Object result; 1389 Lisp_Object result;
1421 1390
@@ -1427,8 +1396,7 @@ DEFUN ("set-window-parameter", Fset_window_parameter,
1427 Sset_window_parameter, 3, 3, 0, 1396 Sset_window_parameter, 3, 3, 0,
1428 doc: /* Set WINDOW's value of PARAMETER to VALUE. 1397 doc: /* Set WINDOW's value of PARAMETER to VALUE.
1429WINDOW defaults to the selected window. Return VALUE. */) 1398WINDOW defaults to the selected window. Return VALUE. */)
1430 (window, parameter, value) 1399 (Lisp_Object window, Lisp_Object parameter, Lisp_Object value)
1431 Lisp_Object window, parameter, value;
1432{ 1400{
1433 register struct window *w = decode_window (window); 1401 register struct window *w = decode_window (window);
1434 Lisp_Object old_alist_elt; 1402 Lisp_Object old_alist_elt;
@@ -1446,8 +1414,7 @@ DEFUN ("window-display-table", Fwindow_display_table, Swindow_display_table,
1446 0, 1, 0, 1414 0, 1, 0,
1447 doc: /* Return the display-table that WINDOW is using. 1415 doc: /* Return the display-table that WINDOW is using.
1448WINDOW defaults to the selected window. */) 1416WINDOW defaults to the selected window. */)
1449 (window) 1417 (Lisp_Object window)
1450 Lisp_Object window;
1451{ 1418{
1452 return decode_window (window)->display_table; 1419 return decode_window (window)->display_table;
1453} 1420}
@@ -1479,8 +1446,7 @@ window_display_table (struct window *w)
1479 1446
1480DEFUN ("set-window-display-table", Fset_window_display_table, Sset_window_display_table, 2, 2, 0, 1447DEFUN ("set-window-display-table", Fset_window_display_table, Sset_window_display_table, 2, 2, 0,
1481 doc: /* Set WINDOW's display-table to TABLE. */) 1448 doc: /* Set WINDOW's display-table to TABLE. */)
1482 (window, table) 1449 (register Lisp_Object window, Lisp_Object table)
1483 register Lisp_Object window, table;
1484{ 1450{
1485 register struct window *w; 1451 register struct window *w;
1486 1452
@@ -1596,8 +1562,7 @@ DEFUN ("delete-window", Fdelete_window, Sdelete_window, 0, 1, "",
1596 doc: /* Remove WINDOW from its frame. 1562 doc: /* Remove WINDOW from its frame.
1597WINDOW defaults to the selected window. Return nil. 1563WINDOW defaults to the selected window. Return nil.
1598Signal an error when WINDOW is the only window on its frame. */) 1564Signal an error when WINDOW is the only window on its frame. */)
1599 (window) 1565 (register Lisp_Object window)
1600 register Lisp_Object window;
1601{ 1566{
1602 struct frame *f; 1567 struct frame *f;
1603 if (NILP (window)) 1568 if (NILP (window))
@@ -2094,8 +2059,7 @@ If you use consistent values for MINIBUF and ALL-FRAMES, you can use
2094`next-window' to iterate through the entire cycle of acceptable 2059`next-window' to iterate through the entire cycle of acceptable
2095windows, eventually ending up back at the window you started with. 2060windows, eventually ending up back at the window you started with.
2096`previous-window' traverses the same cycle, in the reverse order. */) 2061`previous-window' traverses the same cycle, in the reverse order. */)
2097 (window, minibuf, all_frames) 2062 (Lisp_Object window, Lisp_Object minibuf, Lisp_Object all_frames)
2098 Lisp_Object window, minibuf, all_frames;
2099{ 2063{
2100 return next_window (window, minibuf, all_frames, 1); 2064 return next_window (window, minibuf, all_frames, 1);
2101} 2065}
@@ -2112,8 +2076,7 @@ use `previous-window' to iterate through the entire cycle of
2112acceptable windows, eventually ending up back at the window you 2076acceptable windows, eventually ending up back at the window you
2113started with. `next-window' traverses the same cycle, in the 2077started with. `next-window' traverses the same cycle, in the
2114reverse order. */) 2078reverse order. */)
2115 (window, minibuf, all_frames) 2079 (Lisp_Object window, Lisp_Object minibuf, Lisp_Object all_frames)
2116 Lisp_Object window, minibuf, all_frames;
2117{ 2080{
2118 return next_window (window, minibuf, all_frames, 0); 2081 return next_window (window, minibuf, all_frames, 0);
2119} 2082}
@@ -2132,8 +2095,7 @@ This function uses `next-window' for finding the window to select.
2132The argument ALL-FRAMES has the same meaning as in `next-window', 2095The argument ALL-FRAMES has the same meaning as in `next-window',
2133but the MINIBUF argument of `next-window' is always effectively 2096but the MINIBUF argument of `next-window' is always effectively
2134nil. */) 2097nil. */)
2135 (count, all_frames) 2098 (Lisp_Object count, Lisp_Object all_frames)
2136 Lisp_Object count, all_frames;
2137{ 2099{
2138 Lisp_Object window; 2100 Lisp_Object window;
2139 int i; 2101 int i;
@@ -2159,8 +2121,7 @@ MINIBUF t means include the minibuffer window, even if it isn't active.
2159MINIBUF nil or omitted means include the minibuffer window only 2121MINIBUF nil or omitted means include the minibuffer window only
2160if it's active. 2122if it's active.
2161MINIBUF neither nil nor t means never include the minibuffer window. */) 2123MINIBUF neither nil nor t means never include the minibuffer window. */)
2162 (frame, minibuf, window) 2124 (Lisp_Object frame, Lisp_Object minibuf, Lisp_Object window)
2163 Lisp_Object frame, minibuf, window;
2164{ 2125{
2165 if (NILP (window)) 2126 if (NILP (window))
2166 window = FRAMEP (frame) ? XFRAME (frame)->selected_window : selected_window; 2127 window = FRAMEP (frame) ? XFRAME (frame)->selected_window : selected_window;
@@ -2472,8 +2433,7 @@ If FRAME is 0, search all visible and iconified frames.
2472If FRAME is t, search all frames. 2433If FRAME is t, search all frames.
2473If FRAME is nil, search only the selected frame. 2434If FRAME is nil, search only the selected frame.
2474If FRAME is a frame, search only that frame. */) 2435If FRAME is a frame, search only that frame. */)
2475 (frame, dedicated) 2436 (Lisp_Object frame, Lisp_Object dedicated)
2476 Lisp_Object frame, dedicated;
2477{ 2437{
2478 register Lisp_Object w; 2438 register Lisp_Object w;
2479 /* First try for a window that is full-width */ 2439 /* First try for a window that is full-width */
@@ -2498,8 +2458,7 @@ If FRAME is 0, search all visible and iconified frames.
2498If FRAME is t, search all frames. 2458If FRAME is t, search all frames.
2499If FRAME is nil, search only the selected frame. 2459If FRAME is nil, search only the selected frame.
2500If FRAME is a frame, search only that frame. */) 2460If FRAME is a frame, search only that frame. */)
2501 (frame, dedicated) 2461 (Lisp_Object frame, Lisp_Object dedicated)
2502 Lisp_Object frame, dedicated;
2503{ 2462{
2504 return window_loop (GET_LARGEST_WINDOW, dedicated, 0, 2463 return window_loop (GET_LARGEST_WINDOW, dedicated, 0,
2505 frame); 2464 frame);
@@ -2514,8 +2473,7 @@ If optional argument FRAME is 0, search all visible and iconified frames.
2514If FRAME is t, search all frames. 2473If FRAME is t, search all frames.
2515If FRAME is nil, search only the selected frame. 2474If FRAME is nil, search only the selected frame.
2516If FRAME is a frame, search only that frame. */) 2475If FRAME is a frame, search only that frame. */)
2517 (buffer_or_name, frame) 2476 (Lisp_Object buffer_or_name, Lisp_Object frame)
2518 Lisp_Object buffer_or_name, frame;
2519{ 2477{
2520 Lisp_Object buffer; 2478 Lisp_Object buffer;
2521 2479
@@ -2539,8 +2497,7 @@ previously visible in WINDOW in the same place on the frame. Doing this
2539depends on the value of (window-start WINDOW), so if calling this 2497depends on the value of (window-start WINDOW), so if calling this
2540function in a program gives strange scrolling, make sure the 2498function in a program gives strange scrolling, make sure the
2541window-start value is reasonable when this function is called. */) 2499window-start value is reasonable when this function is called. */)
2542 (window) 2500 (Lisp_Object window)
2543 Lisp_Object window;
2544{ 2501{
2545 struct window *w; 2502 struct window *w;
2546 int startpos; 2503 int startpos;
@@ -2607,8 +2564,7 @@ If FRAME is t, search only the selected frame.
2607If FRAME is a frame, search only that frame. 2564If FRAME is a frame, search only that frame.
2608When a window showing BUFFER-OR-NAME is dedicated and the only window of 2565When a window showing BUFFER-OR-NAME is dedicated and the only window of
2609its frame, that frame is deleted when there are other frames left. */) 2566its frame, that frame is deleted when there are other frames left. */)
2610 (buffer_or_name, frame) 2567 (Lisp_Object buffer_or_name, Lisp_Object frame)
2611 Lisp_Object buffer_or_name, frame;
2612{ 2568{
2613 Lisp_Object buffer; 2569 Lisp_Object buffer;
2614 2570
@@ -2643,8 +2599,7 @@ When a window showing BUFFER-OR-NAME is dedicated that window is
2643deleted. If that window is the only window on its frame, that frame is 2599deleted. If that window is the only window on its frame, that frame is
2644deleted too when there are other frames left. If there are no other 2600deleted too when there are other frames left. If there are no other
2645frames left, some other buffer is displayed in that window. */) 2601frames left, some other buffer is displayed in that window. */)
2646 (buffer_or_name) 2602 (Lisp_Object buffer_or_name)
2647 Lisp_Object buffer_or_name;
2648{ 2603{
2649 Lisp_Object buffer; 2604 Lisp_Object buffer;
2650 2605
@@ -3570,8 +3525,7 @@ already display BUFFER-OR-NAME.
3570 3525
3571This function runs `window-scroll-functions' before running 3526This function runs `window-scroll-functions' before running
3572`window-configuration-change-hook'. */) 3527`window-configuration-change-hook'. */)
3573 (window, buffer_or_name, keep_margins) 3528 (register Lisp_Object window, Lisp_Object buffer_or_name, Lisp_Object keep_margins)
3574 register Lisp_Object window, buffer_or_name, keep_margins;
3575{ 3529{
3576 register Lisp_Object tem, buffer; 3530 register Lisp_Object tem, buffer;
3577 register struct window *w = decode_window (window); 3531 register struct window *w = decode_window (window);
@@ -3614,8 +3568,7 @@ make this window the most recently selected one.
3614 3568
3615Note that the main editor command loop selects the buffer of the 3569Note that the main editor command loop selects the buffer of the
3616selected window before each command. */) 3570selected window before each command. */)
3617 (window, norecord) 3571 (register Lisp_Object window, Lisp_Object norecord)
3618 register Lisp_Object window, norecord;
3619{ 3572{
3620 register struct window *w; 3573 register struct window *w;
3621 register struct window *ow; 3574 register struct window *ow;
@@ -3715,8 +3668,7 @@ DEFUN ("force-window-update", Fforce_window_update, Sforce_window_update,
3715If optional arg OBJECT is a window, force redisplay of that window only. 3668If optional arg OBJECT is a window, force redisplay of that window only.
3716If OBJECT is a buffer or buffer name, force redisplay of all windows 3669If OBJECT is a buffer or buffer name, force redisplay of all windows
3717displaying that buffer. */) 3670displaying that buffer. */)
3718 (object) 3671 (Lisp_Object object)
3719 Lisp_Object object;
3720{ 3672{
3721 if (NILP (object)) 3673 if (NILP (object))
3722 { 3674 {
@@ -3857,8 +3809,7 @@ The upper or leftmost window is the original one, and remains selected
3857if it was selected before. 3809if it was selected before.
3858 3810
3859See Info node `(elisp)Splitting Windows' for more details and examples. */) 3811See Info node `(elisp)Splitting Windows' for more details and examples. */)
3860 (window, size, horizontal) 3812 (Lisp_Object window, Lisp_Object size, Lisp_Object horizontal)
3861 Lisp_Object window, size, horizontal;
3862{ 3813{
3863 register Lisp_Object new; 3814 register Lisp_Object new;
3864 register struct window *o, *p; 3815 register struct window *o, *p;
@@ -3997,8 +3948,7 @@ window wider by SIZE columns. If SIZE is negative, shrink the window by
3997 3948
3998This function can delete windows if they get too small. The size of 3949This function can delete windows if they get too small. The size of
3999fixed size windows is not altered by this function. */) 3950fixed size windows is not altered by this function. */)
4000 (size, horizontal) 3951 (Lisp_Object size, Lisp_Object horizontal)
4001 Lisp_Object size, horizontal;
4002{ 3952{
4003 CHECK_NUMBER (size); 3953 CHECK_NUMBER (size);
4004 enlarge_window (selected_window, XINT (size), !NILP (horizontal)); 3954 enlarge_window (selected_window, XINT (size), !NILP (horizontal));
@@ -4017,8 +3967,7 @@ window by -SIZE lines or columns. Return nil.
4017 3967
4018This function can delete windows if they get too small. The size of 3968This function can delete windows if they get too small. The size of
4019fixed size windows is not altered by this function. */) 3969fixed size windows is not altered by this function. */)
4020 (size, horizontal) 3970 (Lisp_Object size, Lisp_Object horizontal)
4021 Lisp_Object size, horizontal;
4022{ 3971{
4023 CHECK_NUMBER (size); 3972 CHECK_NUMBER (size);
4024 enlarge_window (selected_window, -XINT (size), !NILP (horizontal)); 3973 enlarge_window (selected_window, -XINT (size), !NILP (horizontal));
@@ -4470,8 +4419,7 @@ Otherwise, adjust the height, moving the bottom edge.
4470Following siblings of the selected window are resized to fulfill 4419Following siblings of the selected window are resized to fulfill
4471the size request. If they become too small in the process, they 4420the size request. If they become too small in the process, they
4472are not deleted; instead, we signal an error. */) 4421are not deleted; instead, we signal an error. */)
4473 (window, delta, horizontal) 4422 (Lisp_Object window, Lisp_Object delta, Lisp_Object horizontal)
4474 Lisp_Object window, delta, horizontal;
4475{ 4423{
4476 CHECK_NUMBER (delta); 4424 CHECK_NUMBER (delta);
4477 if (NILP (window)) 4425 if (NILP (window))
@@ -5366,8 +5314,7 @@ A near full screen is `next-screen-context-lines' less than a full screen.
5366Negative ARG means scroll downward. 5314Negative ARG means scroll downward.
5367If ARG is the atom `-', scroll downward by nearly full screen. 5315If ARG is the atom `-', scroll downward by nearly full screen.
5368When calling from a program, supply as argument a number, nil, or `-'. */) 5316When calling from a program, supply as argument a number, nil, or `-'. */)
5369 (arg) 5317 (Lisp_Object arg)
5370 Lisp_Object arg;
5371{ 5318{
5372 scroll_command (arg, 1); 5319 scroll_command (arg, 1);
5373 return Qnil; 5320 return Qnil;
@@ -5380,8 +5327,7 @@ A near full screen is `next-screen-context-lines' less than a full screen.
5380Negative ARG means scroll upward. 5327Negative ARG means scroll upward.
5381If ARG is the atom `-', scroll upward by nearly full screen. 5328If ARG is the atom `-', scroll upward by nearly full screen.
5382When calling from a program, supply as argument a number, nil, or `-'. */) 5329When calling from a program, supply as argument a number, nil, or `-'. */)
5383 (arg) 5330 (Lisp_Object arg)
5384 Lisp_Object arg;
5385{ 5331{
5386 scroll_command (arg, -1); 5332 scroll_command (arg, -1);
5387 return Qnil; 5333 return Qnil;
@@ -5394,7 +5340,7 @@ showing that buffer is used.
5394If in the minibuffer, `minibuffer-scroll-window' if non-nil 5340If in the minibuffer, `minibuffer-scroll-window' if non-nil
5395specifies the window. This takes precedence over 5341specifies the window. This takes precedence over
5396`other-window-scroll-buffer'. */) 5342`other-window-scroll-buffer'. */)
5397 () 5343 (void)
5398{ 5344{
5399 Lisp_Object window; 5345 Lisp_Object window;
5400 5346
@@ -5444,8 +5390,7 @@ showing that buffer, popping the buffer up if necessary.
5444If in the minibuffer, `minibuffer-scroll-window' if non-nil 5390If in the minibuffer, `minibuffer-scroll-window' if non-nil
5445specifies the window to scroll. This takes precedence over 5391specifies the window to scroll. This takes precedence over
5446`other-window-scroll-buffer'. */) 5392`other-window-scroll-buffer'. */)
5447 (arg) 5393 (Lisp_Object arg)
5448 Lisp_Object arg;
5449{ 5394{
5450 Lisp_Object window; 5395 Lisp_Object window;
5451 struct window *w; 5396 struct window *w;
@@ -5488,8 +5433,7 @@ If SET-MINIMUM is non-nil, the new scroll amount becomes the
5488lower bound for automatic scrolling, i.e. automatic scrolling 5433lower bound for automatic scrolling, i.e. automatic scrolling
5489will not scroll a window to a column less than the value returned 5434will not scroll a window to a column less than the value returned
5490by this function. This happens in an interactive call. */) 5435by this function. This happens in an interactive call. */)
5491 (arg, set_minimum) 5436 (register Lisp_Object arg, Lisp_Object set_minimum)
5492 register Lisp_Object arg, set_minimum;
5493{ 5437{
5494 Lisp_Object result; 5438 Lisp_Object result;
5495 int hscroll; 5439 int hscroll;
@@ -5518,8 +5462,7 @@ If SET-MINIMUM is non-nil, the new scroll amount becomes the
5518lower bound for automatic scrolling, i.e. automatic scrolling 5462lower bound for automatic scrolling, i.e. automatic scrolling
5519will not scroll a window to a column less than the value returned 5463will not scroll a window to a column less than the value returned
5520by this function. This happens in an interactive call. */) 5464by this function. This happens in an interactive call. */)
5521 (arg, set_minimum) 5465 (register Lisp_Object arg, Lisp_Object set_minimum)
5522 register Lisp_Object arg, set_minimum;
5523{ 5466{
5524 Lisp_Object result; 5467 Lisp_Object result;
5525 int hscroll; 5468 int hscroll;
@@ -5542,7 +5485,7 @@ by this function. This happens in an interactive call. */)
5542DEFUN ("minibuffer-selected-window", Fminibuffer_selected_window, Sminibuffer_selected_window, 0, 0, 0, 5485DEFUN ("minibuffer-selected-window", Fminibuffer_selected_window, Sminibuffer_selected_window, 0, 0, 0,
5543 doc: /* Return the window which was selected when entering the minibuffer. 5486 doc: /* Return the window which was selected when entering the minibuffer.
5544Returns nil, if selected window is not a minibuffer window. */) 5487Returns nil, if selected window is not a minibuffer window. */)
5545 () 5488 (void)
5546{ 5489{
5547 if (minibuf_level > 0 5490 if (minibuf_level > 0
5548 && MINI_WINDOW_P (XWINDOW (selected_window)) 5491 && MINI_WINDOW_P (XWINDOW (selected_window))
@@ -5624,8 +5567,7 @@ then only tty frame are redrawn.
5624 5567
5625Just C-u as prefix means put point in the center of the window 5568Just C-u as prefix means put point in the center of the window
5626and redisplay normally--don't erase and redraw the frame. */) 5569and redisplay normally--don't erase and redraw the frame. */)
5627 (arg) 5570 (register Lisp_Object arg)
5628 register Lisp_Object arg;
5629{ 5571{
5630 struct window *w = XWINDOW (selected_window); 5572 struct window *w = XWINDOW (selected_window);
5631 struct buffer *buf = XBUFFER (w->buffer); 5573 struct buffer *buf = XBUFFER (w->buffer);
@@ -5809,8 +5751,7 @@ WINDOW defaults to the selected window.
5809 5751
5810The return value does not include the mode line, any header line, nor 5752The return value does not include the mode line, any header line, nor
5811any partial-height lines in the text display area. */) 5753any partial-height lines in the text display area. */)
5812 (window) 5754 (Lisp_Object window)
5813 Lisp_Object window;
5814{ 5755{
5815 struct window *w = decode_window (window); 5756 struct window *w = decode_window (window);
5816 int pixel_height = window_box_height (w); 5757 int pixel_height = window_box_height (w);
@@ -5826,8 +5767,7 @@ DEFUN ("move-to-window-line", Fmove_to_window_line, Smove_to_window_line,
5826With no argument, position point at center of window. 5767With no argument, position point at center of window.
5827An argument specifies vertical position within the window; 5768An argument specifies vertical position within the window;
5828zero means top of window, negative means relative to bottom of window. */) 5769zero means top of window, negative means relative to bottom of window. */)
5829 (arg) 5770 (Lisp_Object arg)
5830 Lisp_Object arg;
5831{ 5771{
5832 struct window *w = XWINDOW (selected_window); 5772 struct window *w = XWINDOW (selected_window);
5833 int lines, start; 5773 int lines, start;
@@ -5940,16 +5880,14 @@ struct saved_window
5940 5880
5941DEFUN ("window-configuration-p", Fwindow_configuration_p, Swindow_configuration_p, 1, 1, 0, 5881DEFUN ("window-configuration-p", Fwindow_configuration_p, Swindow_configuration_p, 1, 1, 0,
5942 doc: /* Return t if OBJECT is a window-configuration object. */) 5882 doc: /* Return t if OBJECT is a window-configuration object. */)
5943 (object) 5883 (Lisp_Object object)
5944 Lisp_Object object;
5945{ 5884{
5946 return WINDOW_CONFIGURATIONP (object) ? Qt : Qnil; 5885 return WINDOW_CONFIGURATIONP (object) ? Qt : Qnil;
5947} 5886}
5948 5887
5949DEFUN ("window-configuration-frame", Fwindow_configuration_frame, Swindow_configuration_frame, 1, 1, 0, 5888DEFUN ("window-configuration-frame", Fwindow_configuration_frame, Swindow_configuration_frame, 1, 1, 0,
5950 doc: /* Return the frame that CONFIG, a window-configuration object, is about. */) 5889 doc: /* Return the frame that CONFIG, a window-configuration object, is about. */)
5951 (config) 5890 (Lisp_Object config)
5952 Lisp_Object config;
5953{ 5891{
5954 register struct save_window_data *data; 5892 register struct save_window_data *data;
5955 struct Lisp_Vector *saved_windows; 5893 struct Lisp_Vector *saved_windows;
@@ -5969,8 +5907,7 @@ by `current-window-configuration' (which see).
5969If CONFIGURATION was made from a frame that is now deleted, 5907If CONFIGURATION was made from a frame that is now deleted,
5970only frame-independent values can be restored. In this case, 5908only frame-independent values can be restored. In this case,
5971the return value is nil. Otherwise the value is t. */) 5909the return value is nil. Otherwise the value is t. */)
5972 (configuration) 5910 (Lisp_Object configuration)
5973 Lisp_Object configuration;
5974{ 5911{
5975 register struct save_window_data *data; 5912 register struct save_window_data *data;
5976 struct Lisp_Vector *saved_windows; 5913 struct Lisp_Vector *saved_windows;
@@ -6476,8 +6413,7 @@ point and mark. An exception is made for point in the current buffer:
6476its value is -not- saved. 6413its value is -not- saved.
6477This also records the currently selected frame, and FRAME's focus 6414This also records the currently selected frame, and FRAME's focus
6478redirection (see `redirect-frame-focus'). */) 6415redirection (see `redirect-frame-focus'). */)
6479 (frame) 6416 (Lisp_Object frame)
6480 Lisp_Object frame;
6481{ 6417{
6482 register Lisp_Object tem; 6418 register Lisp_Object tem;
6483 register int n_windows; 6419 register int n_windows;
@@ -6525,8 +6461,7 @@ Also restore the choice of selected window.
6525Also restore which buffer is current. 6461Also restore which buffer is current.
6526Does not restore the value of point in current buffer. 6462Does not restore the value of point in current buffer.
6527usage: (save-window-excursion BODY...) */) 6463usage: (save-window-excursion BODY...) */)
6528 (args) 6464 (Lisp_Object args)
6529 Lisp_Object args;
6530{ 6465{
6531 register Lisp_Object val; 6466 register Lisp_Object val;
6532 register int count = SPECPDL_INDEX (); 6467 register int count = SPECPDL_INDEX ();
@@ -6597,8 +6532,7 @@ EDGES is a list \(LEFT TOP RIGHT BOTTOM) as returned by `window-edges'.
6597 6532
6598If FRAME is nil or omitted, return information on the currently 6533If FRAME is nil or omitted, return information on the currently
6599selected frame. */) 6534selected frame. */)
6600 (frame) 6535 (Lisp_Object frame)
6601 Lisp_Object frame;
6602{ 6536{
6603 FRAME_PTR f; 6537 FRAME_PTR f;
6604 6538
@@ -6627,8 +6561,7 @@ Second arg LEFT-WIDTH specifies the number of character cells to
6627reserve for the left marginal area. Optional third arg RIGHT-WIDTH 6561reserve for the left marginal area. Optional third arg RIGHT-WIDTH
6628does the same for the right marginal area. A nil width parameter 6562does the same for the right marginal area. A nil width parameter
6629means no margin. */) 6563means no margin. */)
6630 (window, left_width, right_width) 6564 (Lisp_Object window, Lisp_Object left_width, Lisp_Object right_width)
6631 Lisp_Object window, left_width, right_width;
6632{ 6565{
6633 struct window *w = decode_window (window); 6566 struct window *w = decode_window (window);
6634 6567
@@ -6672,8 +6605,7 @@ If WINDOW is omitted or nil, use the currently selected window.
6672Value is a cons of the form (LEFT-WIDTH . RIGHT-WIDTH). 6605Value is a cons of the form (LEFT-WIDTH . RIGHT-WIDTH).
6673If a marginal area does not exist, its width will be returned 6606If a marginal area does not exist, its width will be returned
6674as nil. */) 6607as nil. */)
6675 (window) 6608 (Lisp_Object window)
6676 Lisp_Object window;
6677{ 6609{
6678 struct window *w = decode_window (window); 6610 struct window *w = decode_window (window);
6679 return Fcons (w->left_margin_cols, w->right_margin_cols); 6611 return Fcons (w->left_margin_cols, w->right_margin_cols);
@@ -6698,8 +6630,7 @@ the command `set-fringe-style'.
6698If optional fourth arg OUTSIDE-MARGINS is non-nil, draw the fringes 6630If optional fourth arg OUTSIDE-MARGINS is non-nil, draw the fringes
6699outside of the display margins. By default, fringes are drawn between 6631outside of the display margins. By default, fringes are drawn between
6700display marginal areas and the text area. */) 6632display marginal areas and the text area. */)
6701 (window, left_width, right_width, outside_margins) 6633 (Lisp_Object window, Lisp_Object left_width, Lisp_Object right_width, Lisp_Object outside_margins)
6702 Lisp_Object window, left_width, right_width, outside_margins;
6703{ 6634{
6704 struct window *w = decode_window (window); 6635 struct window *w = decode_window (window);
6705 6636
@@ -6736,8 +6667,7 @@ DEFUN ("window-fringes", Fwindow_fringes, Swindow_fringes,
6736 doc: /* Get width of fringes of window WINDOW. 6667 doc: /* Get width of fringes of window WINDOW.
6737If WINDOW is omitted or nil, use the currently selected window. 6668If WINDOW is omitted or nil, use the currently selected window.
6738Value is a list of the form (LEFT-WIDTH RIGHT-WIDTH OUTSIDE-MARGINS). */) 6669Value is a list of the form (LEFT-WIDTH RIGHT-WIDTH OUTSIDE-MARGINS). */)
6739 (window) 6670 (Lisp_Object window)
6740 Lisp_Object window;
6741{ 6671{
6742 struct window *w = decode_window (window); 6672 struct window *w = decode_window (window);
6743 6673
@@ -6764,8 +6694,7 @@ bar: left, right, or nil.
6764If WIDTH is nil, use the frame's scroll-bar width. 6694If WIDTH is nil, use the frame's scroll-bar width.
6765If VERTICAL-TYPE is t, use the frame's scroll-bar type. 6695If VERTICAL-TYPE is t, use the frame's scroll-bar type.
6766Fourth parameter HORIZONTAL-TYPE is currently unused. */) 6696Fourth parameter HORIZONTAL-TYPE is currently unused. */)
6767 (window, width, vertical_type, horizontal_type) 6697 (Lisp_Object window, Lisp_Object width, Lisp_Object vertical_type, Lisp_Object horizontal_type)
6768 Lisp_Object window, width, vertical_type, horizontal_type;
6769{ 6698{
6770 struct window *w = decode_window (window); 6699 struct window *w = decode_window (window);
6771 6700
@@ -6809,8 +6738,7 @@ If WINDOW is omitted or nil, use the currently selected window.
6809Value is a list of the form (WIDTH COLS VERTICAL-TYPE HORIZONTAL-TYPE). 6738Value is a list of the form (WIDTH COLS VERTICAL-TYPE HORIZONTAL-TYPE).
6810If WIDTH is nil or TYPE is t, the window is using the frame's corresponding 6739If WIDTH is nil or TYPE is t, the window is using the frame's corresponding
6811value. */) 6740value. */)
6812 (window) 6741 (Lisp_Object window)
6813 Lisp_Object window;
6814{ 6742{
6815 struct window *w = decode_window (window); 6743 struct window *w = decode_window (window);
6816 return Fcons (make_number ((WINDOW_CONFIG_SCROLL_BAR_WIDTH (w) 6744 return Fcons (make_number ((WINDOW_CONFIG_SCROLL_BAR_WIDTH (w)
@@ -6832,8 +6760,7 @@ DEFUN ("window-vscroll", Fwindow_vscroll, Swindow_vscroll, 0, 2, 0,
6832Use the selected window if WINDOW is nil or omitted. 6760Use the selected window if WINDOW is nil or omitted.
6833Normally, value is a multiple of the canonical character height of WINDOW; 6761Normally, value is a multiple of the canonical character height of WINDOW;
6834optional second arg PIXELS-P means value is measured in pixels. */) 6762optional second arg PIXELS-P means value is measured in pixels. */)
6835 (window, pixels_p) 6763 (Lisp_Object window, Lisp_Object pixels_p)
6836 Lisp_Object window, pixels_p;
6837{ 6764{
6838 Lisp_Object result; 6765 Lisp_Object result;
6839 struct frame *f; 6766 struct frame *f;
@@ -6866,8 +6793,7 @@ If PIXELS-P is nil, VSCROLL may have to be rounded so that it
6866corresponds to an integral number of pixels. The return value is the 6793corresponds to an integral number of pixels. The return value is the
6867result of this rounding. 6794result of this rounding.
6868If PIXELS-P is non-nil, the return value is VSCROLL. */) 6795If PIXELS-P is non-nil, the return value is VSCROLL. */)
6869 (window, vscroll, pixels_p) 6796 (Lisp_Object window, Lisp_Object vscroll, Lisp_Object pixels_p)
6870 Lisp_Object window, vscroll, pixels_p;
6871{ 6797{
6872 struct window *w; 6798 struct window *w;
6873 struct frame *f; 6799 struct frame *f;
@@ -7101,8 +7027,7 @@ DEFUN ("compare-window-configurations", Fcompare_window_configurations,
7101 doc: /* Compare two window configurations as regards the structure of windows. 7027 doc: /* Compare two window configurations as regards the structure of windows.
7102This function ignores details such as the values of point and mark 7028This function ignores details such as the values of point and mark
7103and scrolling positions. */) 7029and scrolling positions. */)
7104 (x, y) 7030 (Lisp_Object x, Lisp_Object y)
7105 Lisp_Object x, y;
7106{ 7031{
7107 if (compare_window_configurations (x, y, 1)) 7032 if (compare_window_configurations (x, y, 1))
7108 return Qt; 7033 return Qt;