diff options
| author | Roland McGrath | 1996-02-10 07:33:29 +0000 |
|---|---|---|
| committer | Roland McGrath | 1996-02-10 07:33:29 +0000 |
| commit | 37962e6044a290c03c3510f75e9bf322a213c969 (patch) | |
| tree | 76fc87b79ca0d86da1fbb6e5673fa42026dd9bea /src | |
| parent | 60117126b51f85001e442fa61dbe9343cbb3bb56 (diff) | |
| download | emacs-37962e6044a290c03c3510f75e9bf322a213c969.tar.gz emacs-37962e6044a290c03c3510f75e9bf322a213c969.zip | |
(display_buffer_1): Fix typo in last change.
Diffstat (limited to 'src')
| -rw-r--r-- | src/window.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/window.c b/src/window.c index b380f932009..532c58c9220 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Window creation, deletion and examination for GNU Emacs. | 1 | /* Window creation, deletion and examination for GNU Emacs. |
| 2 | Does not include redisplay. | 2 | Does not include redisplay. |
| 3 | Copyright (C) 1985, 86, 87, 93, 94, 95 Free Software Foundation, Inc. | 3 | Copyright (C) 1985, 86, 87, 93, 94, 95, 96 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| 6 | 6 | ||
| @@ -98,7 +98,7 @@ Lisp_Object Vsame_window_regexps; | |||
| 98 | /* Hook run at end of temp_output_buffer_show. */ | 98 | /* Hook run at end of temp_output_buffer_show. */ |
| 99 | Lisp_Object Qtemp_buffer_show_hook; | 99 | Lisp_Object Qtemp_buffer_show_hook; |
| 100 | 100 | ||
| 101 | /* Fdisplay_buffer always splits the largest window | 101 | /* Fdisplay_buffer always splits the largest window |
| 102 | if that window is more than this high. */ | 102 | if that window is more than this high. */ |
| 103 | int split_height_threshold; | 103 | int split_height_threshold; |
| 104 | 104 | ||
| @@ -393,7 +393,7 @@ coordinates_in_window (w, x, y) | |||
| 393 | if (*y == top + window_height - 1 | 393 | if (*y == top + window_height - 1 |
| 394 | && ! MINI_WINDOW_P (w)) | 394 | && ! MINI_WINDOW_P (w)) |
| 395 | return 2; | 395 | return 2; |
| 396 | 396 | ||
| 397 | /* Is the character in the right border? */ | 397 | /* Is the character in the right border? */ |
| 398 | if (*x == left + width - 1 | 398 | if (*x == left + width - 1 |
| 399 | && left + width != FRAME_WIDTH (XFRAME (w->frame))) | 399 | && left + width != FRAME_WIDTH (XFRAME (w->frame))) |
| @@ -436,7 +436,7 @@ If they are on the border between WINDOW and its right sibling,\n\ | |||
| 436 | 436 | ||
| 437 | case 2: /* In mode line of window. */ | 437 | case 2: /* In mode line of window. */ |
| 438 | return Qmode_line; | 438 | return Qmode_line; |
| 439 | 439 | ||
| 440 | case 3: /* On right border of window. */ | 440 | case 3: /* On right border of window. */ |
| 441 | return Qvertical_line; | 441 | return Qvertical_line; |
| 442 | 442 | ||
| @@ -473,7 +473,7 @@ window_from_coordinates (frame, x, y, part) | |||
| 473 | tem = Fnext_window (tem, Qt, Qlambda); | 473 | tem = Fnext_window (tem, Qt, Qlambda); |
| 474 | } | 474 | } |
| 475 | while (! EQ (tem, first)); | 475 | while (! EQ (tem, first)); |
| 476 | 476 | ||
| 477 | return Qnil; | 477 | return Qnil; |
| 478 | } | 478 | } |
| 479 | 479 | ||
| @@ -1474,7 +1474,7 @@ window_loop (type, obj, mini, frames) | |||
| 1474 | } | 1474 | } |
| 1475 | 1475 | ||
| 1476 | return best_window; | 1476 | return best_window; |
| 1477 | } | 1477 | } |
| 1478 | 1478 | ||
| 1479 | DEFUN ("get-lru-window", Fget_lru_window, Sget_lru_window, 0, 1, 0, | 1479 | DEFUN ("get-lru-window", Fget_lru_window, Sget_lru_window, 0, 1, 0, |
| 1480 | "Return the window least recently selected or used for display.\n\ | 1480 | "Return the window least recently selected or used for display.\n\ |
| @@ -1679,7 +1679,7 @@ check_frame_size (frame, rows, cols) | |||
| 1679 | int *rows, *cols; | 1679 | int *rows, *cols; |
| 1680 | { | 1680 | { |
| 1681 | /* For height, we have to see: | 1681 | /* For height, we have to see: |
| 1682 | whether the frame has a minibuffer, | 1682 | whether the frame has a minibuffer, |
| 1683 | whether it wants a mode line, and | 1683 | whether it wants a mode line, and |
| 1684 | whether it has a menu bar. */ | 1684 | whether it has a menu bar. */ |
| 1685 | int min_height = | 1685 | int min_height = |
| @@ -1984,7 +1984,7 @@ display_buffer_1 (window) | |||
| 1984 | { | 1984 | { |
| 1985 | if (FRAME_ICONIFIED_P (f)) | 1985 | if (FRAME_ICONIFIED_P (f)) |
| 1986 | Fmake_frame_visible (WINDOW_FRAME (XWINDOW (window))); | 1986 | Fmake_frame_visible (WINDOW_FRAME (XWINDOW (window))); |
| 1987 | else (FRAME_VISIBLE_P (f)) | 1987 | else if (FRAME_VISIBLE_P (f)) |
| 1988 | Fraise_frame (WINDOW_FRAME (XWINDOW (window))); | 1988 | Fraise_frame (WINDOW_FRAME (XWINDOW (window))); |
| 1989 | } | 1989 | } |
| 1990 | #endif | 1990 | #endif |
| @@ -2079,7 +2079,7 @@ Returns the window displaying BUFFER.") | |||
| 2079 | tem = Fassoc (XBUFFER (buffer)->name, Vspecial_display_buffer_names); | 2079 | tem = Fassoc (XBUFFER (buffer)->name, Vspecial_display_buffer_names); |
| 2080 | if (!NILP (tem)) | 2080 | if (!NILP (tem)) |
| 2081 | return call2 (Vspecial_display_function, buffer, XCONS (tem)->cdr); | 2081 | return call2 (Vspecial_display_function, buffer, XCONS (tem)->cdr); |
| 2082 | 2082 | ||
| 2083 | for (tem = Vspecial_display_regexps; CONSP (tem); tem = XCONS (tem)->cdr) | 2083 | for (tem = Vspecial_display_regexps; CONSP (tem); tem = XCONS (tem)->cdr) |
| 2084 | { | 2084 | { |
| 2085 | Lisp_Object car = XCONS (tem)->car; | 2085 | Lisp_Object car = XCONS (tem)->car; |
| @@ -2118,7 +2118,7 @@ Returns the window displaying BUFFER.") | |||
| 2118 | { | 2118 | { |
| 2119 | Lisp_Object frames; | 2119 | Lisp_Object frames; |
| 2120 | 2120 | ||
| 2121 | frames = Qnil; | 2121 | frames = Qnil; |
| 2122 | #ifdef MULTI_FRAME | 2122 | #ifdef MULTI_FRAME |
| 2123 | if (FRAME_MINIBUF_ONLY_P (selected_frame)) | 2123 | if (FRAME_MINIBUF_ONLY_P (selected_frame)) |
| 2124 | XSETFRAME (frames, last_nonminibuf_frame); | 2124 | XSETFRAME (frames, last_nonminibuf_frame); |
| @@ -2250,7 +2250,7 @@ temp_output_buffer_show (buf) | |||
| 2250 | set_marker_restricted (w->start, make_number (1), buf); | 2250 | set_marker_restricted (w->start, make_number (1), buf); |
| 2251 | set_marker_restricted (w->pointm, make_number (1), buf); | 2251 | set_marker_restricted (w->pointm, make_number (1), buf); |
| 2252 | 2252 | ||
| 2253 | /* Run temp-buffer-show-hook, with the chosen window selected. */ | 2253 | /* Run temp-buffer-show-hook, with the chosen window selected. */ |
| 2254 | if (!NILP (Vrun_hooks)) | 2254 | if (!NILP (Vrun_hooks)) |
| 2255 | { | 2255 | { |
| 2256 | Lisp_Object tem; | 2256 | Lisp_Object tem; |
| @@ -2361,7 +2361,7 @@ and put SIZE columns in the first of the pair.") | |||
| 2361 | if (size_int < window_min_height) | 2361 | if (size_int < window_min_height) |
| 2362 | error ("Window height %d too small (after splitting)", size_int); | 2362 | error ("Window height %d too small (after splitting)", size_int); |
| 2363 | if (size_int + window_min_height > XFASTINT (o->height)) | 2363 | if (size_int + window_min_height > XFASTINT (o->height)) |
| 2364 | error ("Window height %d too small (after splitting)", | 2364 | error ("Window height %d too small (after splitting)", |
| 2365 | XFASTINT (o->height) - size_int); | 2365 | XFASTINT (o->height) - size_int); |
| 2366 | if (NILP (o->parent) | 2366 | if (NILP (o->parent) |
| 2367 | || NILP (XWINDOW (o->parent)->vchild)) | 2367 | || NILP (XWINDOW (o->parent)->vchild)) |
| @@ -2376,7 +2376,7 @@ and put SIZE columns in the first of the pair.") | |||
| 2376 | if (size_int < window_min_width) | 2376 | if (size_int < window_min_width) |
| 2377 | error ("Window width %d too small (after splitting)", size_int); | 2377 | error ("Window width %d too small (after splitting)", size_int); |
| 2378 | if (internal_width - size_int - separator_width < window_min_width) | 2378 | if (internal_width - size_int - separator_width < window_min_width) |
| 2379 | error ("Window width %d too small (after splitting)", | 2379 | error ("Window width %d too small (after splitting)", |
| 2380 | internal_width - size_int - separator_width); | 2380 | internal_width - size_int - separator_width); |
| 2381 | if (NILP (o->parent) | 2381 | if (NILP (o->parent) |
| 2382 | || NILP (XWINDOW (o->parent)->hchild)) | 2382 | || NILP (XWINDOW (o->parent)->hchild)) |
| @@ -3099,7 +3099,7 @@ by `current-window-configuration' (which see).") | |||
| 3099 | /* Kludge Alert! | 3099 | /* Kludge Alert! |
| 3100 | Mark all windows now on frame as "deleted". | 3100 | Mark all windows now on frame as "deleted". |
| 3101 | Restoring the new configuration "undeletes" any that are in it. | 3101 | Restoring the new configuration "undeletes" any that are in it. |
| 3102 | 3102 | ||
| 3103 | Save their current buffers in their height fields, since we may | 3103 | Save their current buffers in their height fields, since we may |
| 3104 | need it later, if a buffer saved in the configuration is now | 3104 | need it later, if a buffer saved in the configuration is now |
| 3105 | dead. */ | 3105 | dead. */ |