diff options
| author | Dan Nicolaescu | 2010-07-08 14:25:08 -0700 |
|---|---|---|
| committer | Dan Nicolaescu | 2010-07-08 14:25:08 -0700 |
| commit | 5842a27bbfb7efa6872824e501bc7ec98b631553 (patch) | |
| tree | d173899af9cbed9d90d94cfc710e6ecc06dd1f6b /src/window.c | |
| parent | 71c44c04bb996abe77db8efd88255fde06532b10 (diff) | |
| download | emacs-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.c | 231 |
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 | ||
| 206 | DEFUN ("windowp", Fwindowp, Swindowp, 1, 1, 0, | 206 | DEFUN ("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 | ||
| 214 | DEFUN ("window-live-p", Fwindow_live_p, Swindow_live_p, 1, 1, 0, | 213 | DEFUN ("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 | ||
| 275 | DEFUN ("selected-window", Fselected_window, Sselected_window, 0, 0, 0, | 273 | DEFUN ("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. |
| 284 | If the optional argument FRAME is specified, return the minibuffer window | 282 | If the optional argument FRAME is specified, return the minibuffer window |
| 285 | used by that frame. */) | 283 | used 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. */) | |||
| 295 | DEFUN ("window-minibuffer-p", Fwindow_minibuffer_p, Swindow_minibuffer_p, 0, 1, 0, | 292 | DEFUN ("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. |
| 297 | WINDOW defaults to the selected window. */) | 294 | WINDOW 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 | |||
| 320 | POS is fully visible; otherwise, RTOP and RBOT are the number of pixels | 316 | POS is fully visible; otherwise, RTOP and RBOT are the number of pixels |
| 321 | off-window at the top and bottom of the row, ROWH is the height of the | 317 | off-window at the top and bottom of the row, ROWH is the height of the |
| 322 | display row, and VPOS is the row number (0-based) containing POS. */) | 318 | display 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 | ||
| 390 | Return nil if window display is not up-to-date. In that case, use | 385 | Return 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) | |||
| 505 | DEFUN ("window-buffer", Fwindow_buffer, Swindow_buffer, 0, 1, 0, | 499 | DEFUN ("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. |
| 507 | WINDOW defaults to the selected window. */) | 501 | WINDOW 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, | |||
| 516 | WINDOW defaults to the selected window. | 509 | WINDOW defaults to the selected window. |
| 517 | 510 | ||
| 518 | The return value includes WINDOW's mode line and header line, if any. */) | 511 | The 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. | |||
| 529 | Note: The return value is the number of columns available for text in | 521 | Note: The return value is the number of columns available for text in |
| 530 | WINDOW. If you want to find out how many columns WINDOW takes up, use | 522 | WINDOW. 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 | |||
| 538 | DEFUN ("window-full-width-p", Fwindow_full_width_p, Swindow_full_width_p, 0, 1, 0, | 529 | DEFUN ("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. |
| 540 | WINDOW defaults to the selected window. */) | 531 | WINDOW 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. */) | |||
| 547 | DEFUN ("window-hscroll", Fwindow_hscroll, Swindow_hscroll, 0, 1, 0, | 537 | DEFUN ("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. |
| 549 | WINDOW defaults to the selected window. */) | 539 | WINDOW 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 | ||
| 560 | Note that if `automatic-hscrolling' is non-nil, you cannot scroll the | 549 | Note that if `automatic-hscrolling' is non-nil, you cannot scroll the |
| 561 | window so that the location of point moves off-window. */) | 550 | window 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. |
| 582 | WINDOW defaults to the selected window. | 570 | WINDOW defaults to the selected window. |
| 583 | See `set-window-redisplay-end-trigger' for more information. */) | 571 | See `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 | |||
| 595 | beyond VALUE, the functions in `redisplay-end-trigger-functions' are called | 582 | beyond VALUE, the functions in `redisplay-end-trigger-functions' are called |
| 596 | with two arguments: WINDOW, and the end trigger value. | 583 | with two arguments: WINDOW, and the end trigger value. |
| 597 | Afterwards the end-trigger value is reset to nil. */) | 584 | Afterwards 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. | |||
| 616 | The edges include the space used by WINDOW's scroll bar, display | 602 | The edges include the space used by WINDOW's scroll bar, display |
| 617 | margins, fringes, header line, and/or mode line. For the edges of | 603 | margins, fringes, header line, and/or mode line. For the edges of |
| 618 | just the text area, use `window-inside-edges'. */) | 604 | just 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. | |||
| 638 | The pixel edges include the space used by WINDOW's scroll bar, display | 623 | The pixel edges include the space used by WINDOW's scroll bar, display |
| 639 | margins, fringes, header line, and/or mode line. For the pixel edges | 624 | margins, fringes, header line, and/or mode line. For the pixel edges |
| 640 | of just the text area, use `window-inside-pixel-edges'. */) | 625 | of 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. | |||
| 678 | The pixel edges include the space used by WINDOW's scroll bar, display | 662 | The pixel edges include the space used by WINDOW's scroll bar, display |
| 679 | margins, fringes, header line, and/or mode line. For the pixel edges | 663 | margins, fringes, header line, and/or mode line. For the pixel edges |
| 680 | of just the text area, use `window-inside-absolute-pixel-edges'. */) | 664 | of 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. | |||
| 702 | BOTTOM is one more than the bottommost row of WINDOW's text area. | 685 | BOTTOM is one more than the bottommost row of WINDOW's text area. |
| 703 | The inside edges do not include the space used by the WINDOW's scroll | 686 | The inside edges do not include the space used by the WINDOW's scroll |
| 704 | bar, display margins, fringes, header line, and/or mode line. */) | 687 | bar, 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. | |||
| 728 | BOTTOM is one more than the bottommost y position of WINDOW's text area. | 710 | BOTTOM is one more than the bottommost y position of WINDOW's text area. |
| 729 | The inside edges do not include the space used by WINDOW's scroll bar, | 711 | The inside edges do not include the space used by WINDOW's scroll bar, |
| 730 | display margins, fringes, header line, and/or mode line. */) | 712 | display 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. | |||
| 756 | BOTTOM is one more than the bottommost y position of WINDOW's text area. | 737 | BOTTOM is one more than the bottommost y position of WINDOW's text area. |
| 757 | The inside edges do not include the space used by WINDOW's scroll bar, | 738 | The inside edges do not include the space used by WINDOW's scroll bar, |
| 758 | display margins, fringes, header line, and/or mode line. */) | 739 | display 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. |
| 1003 | If they are in the windows's left or right marginal areas, `left-margin'\n\ | 983 | If 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, | |||
| 1155 | If omitted, FRAME defaults to the currently selected frame. | 1134 | If omitted, FRAME defaults to the currently selected frame. |
| 1156 | The top left corner of the frame is considered to be row 0, | 1135 | The top left corner of the frame is considered to be row 0, |
| 1157 | column 0. */) | 1136 | column 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). | |||
| 1189 | It would be more strictly correct to return the `top-level' value | 1167 | It would be more strictly correct to return the `top-level' value |
| 1190 | of point, outside of any save-excursion forms. | 1168 | of point, outside of any save-excursion forms. |
| 1191 | But that is hard to define. */) | 1169 | But 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. |
| 1205 | WINDOW defaults to the selected window. | 1182 | WINDOW defaults to the selected window. |
| 1206 | This is updated by redisplay or by calling `set-window-start'. */) | 1183 | This 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 | |||
| 1231 | last redisplay of WINDOW was preempted, and did not finish.) | 1207 | last redisplay of WINDOW was preempted, and did not finish.) |
| 1232 | If UPDATE is non-nil, compute the up-to-date position | 1208 | If UPDATE is non-nil, compute the up-to-date position |
| 1233 | if it isn't already recorded. */) | 1209 | if 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. */) | |||
| 1300 | DEFUN ("set-window-point", Fset_window_point, Sset_window_point, 2, 2, 0, | 1275 | DEFUN ("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. |
| 1302 | Return POS. */) | 1277 | Return 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, | |||
| 1325 | WINDOW defaults to the selected window. Return POS. | 1299 | WINDOW defaults to the selected window. Return POS. |
| 1326 | Optional third arg NOFORCE non-nil inhibits next redisplay from | 1300 | Optional third arg NOFORCE non-nil inhibits next redisplay from |
| 1327 | overriding motion of point in order to display at this exact start. */) | 1301 | overriding 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 | |||
| 1364 | Functions like `set-window-buffer' may change the buffer displayed by a | 1337 | Functions like `set-window-buffer' may change the buffer displayed by a |
| 1365 | window, unless that window is "strongly" dedicated to its buffer, that | 1338 | window, unless that window is "strongly" dedicated to its buffer, that |
| 1366 | is the value returned by `window-dedicated-p' is t. */) | 1339 | is 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 | |||
| 1389 | displayed by a window, unless that window is strongly dedicated to its | 1361 | displayed by a window, unless that window is strongly dedicated to its |
| 1390 | buffer. If and when `set-window-buffer' displays another buffer in a | 1362 | buffer. If and when `set-window-buffer' displays another buffer in a |
| 1391 | window, it also makes sure that the window is not marked as dedicated. */) | 1363 | window, 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. |
| 1405 | WINDOW defaults to the selected window. The return value is a list of | 1376 | WINDOW defaults to the selected window. The return value is a list of |
| 1406 | elements of the form (PARAMETER . VALUE). */) | 1377 | elements 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. |
| 1416 | WINDOW defaults to the selected window. */) | 1386 | WINDOW 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. |
| 1429 | WINDOW defaults to the selected window. Return VALUE. */) | 1398 | WINDOW 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. |
| 1448 | WINDOW defaults to the selected window. */) | 1416 | WINDOW 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 | ||
| 1480 | DEFUN ("set-window-display-table", Fset_window_display_table, Sset_window_display_table, 2, 2, 0, | 1447 | DEFUN ("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. |
| 1597 | WINDOW defaults to the selected window. Return nil. | 1563 | WINDOW defaults to the selected window. Return nil. |
| 1598 | Signal an error when WINDOW is the only window on its frame. */) | 1564 | Signal 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 |
| 2095 | windows, eventually ending up back at the window you started with. | 2060 | windows, 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 | |||
| 2112 | acceptable windows, eventually ending up back at the window you | 2076 | acceptable windows, eventually ending up back at the window you |
| 2113 | started with. `next-window' traverses the same cycle, in the | 2077 | started with. `next-window' traverses the same cycle, in the |
| 2114 | reverse order. */) | 2078 | reverse 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. | |||
| 2132 | The argument ALL-FRAMES has the same meaning as in `next-window', | 2095 | The argument ALL-FRAMES has the same meaning as in `next-window', |
| 2133 | but the MINIBUF argument of `next-window' is always effectively | 2096 | but the MINIBUF argument of `next-window' is always effectively |
| 2134 | nil. */) | 2097 | nil. */) |
| 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. | |||
| 2159 | MINIBUF nil or omitted means include the minibuffer window only | 2121 | MINIBUF nil or omitted means include the minibuffer window only |
| 2160 | if it's active. | 2122 | if it's active. |
| 2161 | MINIBUF neither nil nor t means never include the minibuffer window. */) | 2123 | MINIBUF 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. | |||
| 2472 | If FRAME is t, search all frames. | 2433 | If FRAME is t, search all frames. |
| 2473 | If FRAME is nil, search only the selected frame. | 2434 | If FRAME is nil, search only the selected frame. |
| 2474 | If FRAME is a frame, search only that frame. */) | 2435 | If 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. | |||
| 2498 | If FRAME is t, search all frames. | 2458 | If FRAME is t, search all frames. |
| 2499 | If FRAME is nil, search only the selected frame. | 2459 | If FRAME is nil, search only the selected frame. |
| 2500 | If FRAME is a frame, search only that frame. */) | 2460 | If 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. | |||
| 2514 | If FRAME is t, search all frames. | 2473 | If FRAME is t, search all frames. |
| 2515 | If FRAME is nil, search only the selected frame. | 2474 | If FRAME is nil, search only the selected frame. |
| 2516 | If FRAME is a frame, search only that frame. */) | 2475 | If 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 | |||
| 2539 | depends on the value of (window-start WINDOW), so if calling this | 2497 | depends on the value of (window-start WINDOW), so if calling this |
| 2540 | function in a program gives strange scrolling, make sure the | 2498 | function in a program gives strange scrolling, make sure the |
| 2541 | window-start value is reasonable when this function is called. */) | 2499 | window-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. | |||
| 2607 | If FRAME is a frame, search only that frame. | 2564 | If FRAME is a frame, search only that frame. |
| 2608 | When a window showing BUFFER-OR-NAME is dedicated and the only window of | 2565 | When a window showing BUFFER-OR-NAME is dedicated and the only window of |
| 2609 | its frame, that frame is deleted when there are other frames left. */) | 2566 | its 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 | |||
| 2643 | deleted. If that window is the only window on its frame, that frame is | 2599 | deleted. If that window is the only window on its frame, that frame is |
| 2644 | deleted too when there are other frames left. If there are no other | 2600 | deleted too when there are other frames left. If there are no other |
| 2645 | frames left, some other buffer is displayed in that window. */) | 2601 | frames 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 | ||
| 3571 | This function runs `window-scroll-functions' before running | 3526 | This 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 | ||
| 3615 | Note that the main editor command loop selects the buffer of the | 3569 | Note that the main editor command loop selects the buffer of the |
| 3616 | selected window before each command. */) | 3570 | selected 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, | |||
| 3715 | If optional arg OBJECT is a window, force redisplay of that window only. | 3668 | If optional arg OBJECT is a window, force redisplay of that window only. |
| 3716 | If OBJECT is a buffer or buffer name, force redisplay of all windows | 3669 | If OBJECT is a buffer or buffer name, force redisplay of all windows |
| 3717 | displaying that buffer. */) | 3670 | displaying 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 | |||
| 3857 | if it was selected before. | 3809 | if it was selected before. |
| 3858 | 3810 | ||
| 3859 | See Info node `(elisp)Splitting Windows' for more details and examples. */) | 3811 | See 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 | ||
| 3998 | This function can delete windows if they get too small. The size of | 3949 | This function can delete windows if they get too small. The size of |
| 3999 | fixed size windows is not altered by this function. */) | 3950 | fixed 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 | ||
| 4018 | This function can delete windows if they get too small. The size of | 3968 | This function can delete windows if they get too small. The size of |
| 4019 | fixed size windows is not altered by this function. */) | 3969 | fixed 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. | |||
| 4470 | Following siblings of the selected window are resized to fulfill | 4419 | Following siblings of the selected window are resized to fulfill |
| 4471 | the size request. If they become too small in the process, they | 4420 | the size request. If they become too small in the process, they |
| 4472 | are not deleted; instead, we signal an error. */) | 4421 | are 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. | |||
| 5366 | Negative ARG means scroll downward. | 5314 | Negative ARG means scroll downward. |
| 5367 | If ARG is the atom `-', scroll downward by nearly full screen. | 5315 | If ARG is the atom `-', scroll downward by nearly full screen. |
| 5368 | When calling from a program, supply as argument a number, nil, or `-'. */) | 5316 | When 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. | |||
| 5380 | Negative ARG means scroll upward. | 5327 | Negative ARG means scroll upward. |
| 5381 | If ARG is the atom `-', scroll upward by nearly full screen. | 5328 | If ARG is the atom `-', scroll upward by nearly full screen. |
| 5382 | When calling from a program, supply as argument a number, nil, or `-'. */) | 5329 | When 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. | |||
| 5394 | If in the minibuffer, `minibuffer-scroll-window' if non-nil | 5340 | If in the minibuffer, `minibuffer-scroll-window' if non-nil |
| 5395 | specifies the window. This takes precedence over | 5341 | specifies 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. | |||
| 5444 | If in the minibuffer, `minibuffer-scroll-window' if non-nil | 5390 | If in the minibuffer, `minibuffer-scroll-window' if non-nil |
| 5445 | specifies the window to scroll. This takes precedence over | 5391 | specifies 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 | |||
| 5488 | lower bound for automatic scrolling, i.e. automatic scrolling | 5433 | lower bound for automatic scrolling, i.e. automatic scrolling |
| 5489 | will not scroll a window to a column less than the value returned | 5434 | will not scroll a window to a column less than the value returned |
| 5490 | by this function. This happens in an interactive call. */) | 5435 | by 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 | |||
| 5518 | lower bound for automatic scrolling, i.e. automatic scrolling | 5462 | lower bound for automatic scrolling, i.e. automatic scrolling |
| 5519 | will not scroll a window to a column less than the value returned | 5463 | will not scroll a window to a column less than the value returned |
| 5520 | by this function. This happens in an interactive call. */) | 5464 | by 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. */) | |||
| 5542 | DEFUN ("minibuffer-selected-window", Fminibuffer_selected_window, Sminibuffer_selected_window, 0, 0, 0, | 5485 | DEFUN ("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. |
| 5544 | Returns nil, if selected window is not a minibuffer window. */) | 5487 | Returns 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 | ||
| 5625 | Just C-u as prefix means put point in the center of the window | 5568 | Just C-u as prefix means put point in the center of the window |
| 5626 | and redisplay normally--don't erase and redraw the frame. */) | 5569 | and 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 | ||
| 5810 | The return value does not include the mode line, any header line, nor | 5752 | The return value does not include the mode line, any header line, nor |
| 5811 | any partial-height lines in the text display area. */) | 5753 | any 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, | |||
| 5826 | With no argument, position point at center of window. | 5767 | With no argument, position point at center of window. |
| 5827 | An argument specifies vertical position within the window; | 5768 | An argument specifies vertical position within the window; |
| 5828 | zero means top of window, negative means relative to bottom of window. */) | 5769 | zero 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 | ||
| 5941 | DEFUN ("window-configuration-p", Fwindow_configuration_p, Swindow_configuration_p, 1, 1, 0, | 5881 | DEFUN ("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 | ||
| 5949 | DEFUN ("window-configuration-frame", Fwindow_configuration_frame, Swindow_configuration_frame, 1, 1, 0, | 5888 | DEFUN ("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). | |||
| 5969 | If CONFIGURATION was made from a frame that is now deleted, | 5907 | If CONFIGURATION was made from a frame that is now deleted, |
| 5970 | only frame-independent values can be restored. In this case, | 5908 | only frame-independent values can be restored. In this case, |
| 5971 | the return value is nil. Otherwise the value is t. */) | 5909 | the 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: | |||
| 6476 | its value is -not- saved. | 6413 | its value is -not- saved. |
| 6477 | This also records the currently selected frame, and FRAME's focus | 6414 | This also records the currently selected frame, and FRAME's focus |
| 6478 | redirection (see `redirect-frame-focus'). */) | 6415 | redirection (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. | |||
| 6525 | Also restore which buffer is current. | 6461 | Also restore which buffer is current. |
| 6526 | Does not restore the value of point in current buffer. | 6462 | Does not restore the value of point in current buffer. |
| 6527 | usage: (save-window-excursion BODY...) */) | 6463 | usage: (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 | ||
| 6598 | If FRAME is nil or omitted, return information on the currently | 6533 | If FRAME is nil or omitted, return information on the currently |
| 6599 | selected frame. */) | 6534 | selected 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 | |||
| 6627 | reserve for the left marginal area. Optional third arg RIGHT-WIDTH | 6561 | reserve for the left marginal area. Optional third arg RIGHT-WIDTH |
| 6628 | does the same for the right marginal area. A nil width parameter | 6562 | does the same for the right marginal area. A nil width parameter |
| 6629 | means no margin. */) | 6563 | means 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. | |||
| 6672 | Value is a cons of the form (LEFT-WIDTH . RIGHT-WIDTH). | 6605 | Value is a cons of the form (LEFT-WIDTH . RIGHT-WIDTH). |
| 6673 | If a marginal area does not exist, its width will be returned | 6606 | If a marginal area does not exist, its width will be returned |
| 6674 | as nil. */) | 6607 | as 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'. | |||
| 6698 | If optional fourth arg OUTSIDE-MARGINS is non-nil, draw the fringes | 6630 | If optional fourth arg OUTSIDE-MARGINS is non-nil, draw the fringes |
| 6699 | outside of the display margins. By default, fringes are drawn between | 6631 | outside of the display margins. By default, fringes are drawn between |
| 6700 | display marginal areas and the text area. */) | 6632 | display 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. |
| 6737 | If WINDOW is omitted or nil, use the currently selected window. | 6668 | If WINDOW is omitted or nil, use the currently selected window. |
| 6738 | Value is a list of the form (LEFT-WIDTH RIGHT-WIDTH OUTSIDE-MARGINS). */) | 6669 | Value 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. | |||
| 6764 | If WIDTH is nil, use the frame's scroll-bar width. | 6694 | If WIDTH is nil, use the frame's scroll-bar width. |
| 6765 | If VERTICAL-TYPE is t, use the frame's scroll-bar type. | 6695 | If VERTICAL-TYPE is t, use the frame's scroll-bar type. |
| 6766 | Fourth parameter HORIZONTAL-TYPE is currently unused. */) | 6696 | Fourth 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. | |||
| 6809 | Value is a list of the form (WIDTH COLS VERTICAL-TYPE HORIZONTAL-TYPE). | 6738 | Value is a list of the form (WIDTH COLS VERTICAL-TYPE HORIZONTAL-TYPE). |
| 6810 | If WIDTH is nil or TYPE is t, the window is using the frame's corresponding | 6739 | If WIDTH is nil or TYPE is t, the window is using the frame's corresponding |
| 6811 | value. */) | 6740 | value. */) |
| 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, | |||
| 6832 | Use the selected window if WINDOW is nil or omitted. | 6760 | Use the selected window if WINDOW is nil or omitted. |
| 6833 | Normally, value is a multiple of the canonical character height of WINDOW; | 6761 | Normally, value is a multiple of the canonical character height of WINDOW; |
| 6834 | optional second arg PIXELS-P means value is measured in pixels. */) | 6762 | optional 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 | |||
| 6866 | corresponds to an integral number of pixels. The return value is the | 6793 | corresponds to an integral number of pixels. The return value is the |
| 6867 | result of this rounding. | 6794 | result of this rounding. |
| 6868 | If PIXELS-P is non-nil, the return value is VSCROLL. */) | 6795 | If 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. |
| 7102 | This function ignores details such as the values of point and mark | 7028 | This function ignores details such as the values of point and mark |
| 7103 | and scrolling positions. */) | 7029 | and 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; |