diff options
| author | Karoly Lorentey | 2004-12-08 22:20:27 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2004-12-08 22:20:27 +0000 |
| commit | fad2f6858075f49c4c8fd16f0535c287e3f14ac3 (patch) | |
| tree | 843a2ffe6caea6201877e3d2f1b6b954f47344b5 /src/window.c | |
| parent | 856dd47583918edd7987c13334703d3e7492d8f4 (diff) | |
| parent | b11e88237593ff7556d8535305e8f342e6b61d66 (diff) | |
| download | emacs-fad2f6858075f49c4c8fd16f0535c287e3f14ac3.tar.gz emacs-fad2f6858075f49c4c8fd16f0535c287e3f14ac3.zip | |
Merged in changes from CVS trunk.
Patches applied:
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-714
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-271
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/src/window.c b/src/window.c index b202031878b..e3beb4b10a5 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -1613,7 +1613,7 @@ decode_next_window_args (window, minibuf, all_frames) | |||
| 1613 | : Qnil); | 1613 | : Qnil); |
| 1614 | else if (EQ (*all_frames, Qvisible)) | 1614 | else if (EQ (*all_frames, Qvisible)) |
| 1615 | ; | 1615 | ; |
| 1616 | else if (XFASTINT (*all_frames) == 0) | 1616 | else if (EQ (*all_frames, make_number (0))) |
| 1617 | ; | 1617 | ; |
| 1618 | else if (FRAMEP (*all_frames)) | 1618 | else if (FRAMEP (*all_frames)) |
| 1619 | ; | 1619 | ; |
| @@ -1887,7 +1887,7 @@ window_loop (type, obj, mini, frames) | |||
| 1887 | 1887 | ||
| 1888 | if (f) | 1888 | if (f) |
| 1889 | frame_arg = Qlambda; | 1889 | frame_arg = Qlambda; |
| 1890 | else if (XFASTINT (frames) == 0) | 1890 | else if (EQ (frames, make_number (0))) |
| 1891 | frame_arg = frames; | 1891 | frame_arg = frames; |
| 1892 | else if (EQ (frames, Qvisible)) | 1892 | else if (EQ (frames, Qvisible)) |
| 1893 | frame_arg = frames; | 1893 | frame_arg = frames; |
| @@ -2099,6 +2099,8 @@ DEFUN ("get-lru-window", Fget_lru_window, Sget_lru_window, 0, 1, 0, | |||
| 2099 | doc: /* Return the window least recently selected or used for display. | 2099 | doc: /* Return the window least recently selected or used for display. |
| 2100 | Return a full-width window if possible. | 2100 | Return a full-width window if possible. |
| 2101 | A minibuffer window is never a candidate. | 2101 | A minibuffer window is never a candidate. |
| 2102 | A dedicated window is never a candidate, so if all windows are dedicated, | ||
| 2103 | the value is nil. | ||
| 2102 | If optional argument FRAME is `visible', search all visible frames. | 2104 | If optional argument FRAME is `visible', search all visible frames. |
| 2103 | If FRAME is 0, search all visible and iconified frames. | 2105 | If FRAME is 0, search all visible and iconified frames. |
| 2104 | If FRAME is t, search all frames. | 2106 | If FRAME is t, search all frames. |
| @@ -2119,6 +2121,8 @@ If FRAME is a frame, search only that frame. */) | |||
| 2119 | DEFUN ("get-largest-window", Fget_largest_window, Sget_largest_window, 0, 1, 0, | 2121 | DEFUN ("get-largest-window", Fget_largest_window, Sget_largest_window, 0, 1, 0, |
| 2120 | doc: /* Return the largest window in area. | 2122 | doc: /* Return the largest window in area. |
| 2121 | A minibuffer window is never a candidate. | 2123 | A minibuffer window is never a candidate. |
| 2124 | A dedicated window is never a candidate, so if all windows are dedicated, | ||
| 2125 | the value is nil. | ||
| 2122 | If optional argument FRAME is `visible', search all visible frames. | 2126 | If optional argument FRAME is `visible', search all visible frames. |
| 2123 | If FRAME is 0, search all visible and iconified frames. | 2127 | If FRAME is 0, search all visible and iconified frames. |
| 2124 | If FRAME is t, search all frames. | 2128 | If FRAME is t, search all frames. |
| @@ -2696,7 +2700,7 @@ shrink_windows (total, size, nchildren, shrinkable, | |||
| 2696 | ++nonzero_sizes; | 2700 | ++nonzero_sizes; |
| 2697 | nonzero_idx = i; | 2701 | nonzero_idx = i; |
| 2698 | } | 2702 | } |
| 2699 | 2703 | ||
| 2700 | for (i = 0; i < nchildren; ++i) | 2704 | for (i = 0; i < nchildren; ++i) |
| 2701 | if (new_sizes[i] > min_size) | 2705 | if (new_sizes[i] > min_size) |
| 2702 | { | 2706 | { |
| @@ -3014,6 +3018,9 @@ set_window_buffer (window, buffer, run_hooks_p, keep_margins_p) | |||
| 3014 | if (EQ (window, selected_window)) | 3018 | if (EQ (window, selected_window)) |
| 3015 | b->last_selected_window = window; | 3019 | b->last_selected_window = window; |
| 3016 | 3020 | ||
| 3021 | /* Let redisplay errors through. */ | ||
| 3022 | b->display_error_modiff = 0; | ||
| 3023 | |||
| 3017 | /* Update time stamps of buffer display. */ | 3024 | /* Update time stamps of buffer display. */ |
| 3018 | if (INTEGERP (b->display_count)) | 3025 | if (INTEGERP (b->display_count)) |
| 3019 | XSETINT (b->display_count, XINT (b->display_count) + 1); | 3026 | XSETINT (b->display_count, XINT (b->display_count) + 1); |
| @@ -6180,10 +6187,12 @@ If TYPE is t, use the frame's scroll-bar type. */) | |||
| 6180 | struct window *w = decode_window (window); | 6187 | struct window *w = decode_window (window); |
| 6181 | 6188 | ||
| 6182 | if (!NILP (width)) | 6189 | if (!NILP (width)) |
| 6183 | CHECK_NATNUM (width); | 6190 | { |
| 6191 | CHECK_NATNUM (width); | ||
| 6184 | 6192 | ||
| 6185 | if (XINT (width) == 0) | 6193 | if (XINT (width) == 0) |
| 6186 | vertical_type = Qnil; | 6194 | vertical_type = Qnil; |
| 6195 | } | ||
| 6187 | 6196 | ||
| 6188 | if (!(EQ (vertical_type, Qnil) | 6197 | if (!(EQ (vertical_type, Qnil) |
| 6189 | || EQ (vertical_type, Qleft) | 6198 | || EQ (vertical_type, Qleft) |