aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorMiles Bader2004-12-08 05:02:30 +0000
committerMiles Bader2004-12-08 05:02:30 +0000
commit000fc2b1fad05ccd9e6cdb5810febb091f4b5738 (patch)
tree808f1473847c7c44bc8b28d8edfa086ec25035d1 /src/window.c
parent5bc63b073c3c75dbfab1f14423f01cc615e26eeb (diff)
parentad136a7c3b310fa7240dd2adf62f23b454782bd0 (diff)
downloademacs-000fc2b1fad05ccd9e6cdb5810febb091f4b5738.tar.gz
emacs-000fc2b1fad05ccd9e6cdb5810febb091f4b5738.zip
Revision: miles@gnu.org--gnu-2004/emacs--unicode--0--patch-74
Merge from emacs--cvs-trunk--0 Patches applied: * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-709 Update from CVS: src/indent.c (Fvertical_motion): Fix last change. * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-710 - miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-715 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-716 Merge from gnus--rel--5.10 * miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-74 Update from CVS
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c21
1 files changed, 15 insertions, 6 deletions
diff --git a/src/window.c b/src/window.c
index 3f8fa513619..a07bd437faa 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1611,7 +1611,7 @@ decode_next_window_args (window, minibuf, all_frames)
1611 : Qnil); 1611 : Qnil);
1612 else if (EQ (*all_frames, Qvisible)) 1612 else if (EQ (*all_frames, Qvisible))
1613 ; 1613 ;
1614 else if (XFASTINT (*all_frames) == 0) 1614 else if (EQ (*all_frames, make_number (0)))
1615 ; 1615 ;
1616 else if (FRAMEP (*all_frames)) 1616 else if (FRAMEP (*all_frames))
1617 ; 1617 ;
@@ -1885,7 +1885,7 @@ window_loop (type, obj, mini, frames)
1885 1885
1886 if (f) 1886 if (f)
1887 frame_arg = Qlambda; 1887 frame_arg = Qlambda;
1888 else if (XFASTINT (frames) == 0) 1888 else if (EQ (frames, make_number (0)))
1889 frame_arg = frames; 1889 frame_arg = frames;
1890 else if (EQ (frames, Qvisible)) 1890 else if (EQ (frames, Qvisible))
1891 frame_arg = frames; 1891 frame_arg = frames;
@@ -2097,6 +2097,8 @@ DEFUN ("get-lru-window", Fget_lru_window, Sget_lru_window, 0, 1, 0,
2097 doc: /* Return the window least recently selected or used for display. 2097 doc: /* Return the window least recently selected or used for display.
2098Return a full-width window if possible. 2098Return a full-width window if possible.
2099A minibuffer window is never a candidate. 2099A minibuffer window is never a candidate.
2100A dedicated window is never a candidate, so if all windows are dedicated,
2101the value is nil.
2100If optional argument FRAME is `visible', search all visible frames. 2102If optional argument FRAME is `visible', search all visible frames.
2101If FRAME is 0, search all visible and iconified frames. 2103If FRAME is 0, search all visible and iconified frames.
2102If FRAME is t, search all frames. 2104If FRAME is t, search all frames.
@@ -2117,6 +2119,8 @@ If FRAME is a frame, search only that frame. */)
2117DEFUN ("get-largest-window", Fget_largest_window, Sget_largest_window, 0, 1, 0, 2119DEFUN ("get-largest-window", Fget_largest_window, Sget_largest_window, 0, 1, 0,
2118 doc: /* Return the largest window in area. 2120 doc: /* Return the largest window in area.
2119A minibuffer window is never a candidate. 2121A minibuffer window is never a candidate.
2122A dedicated window is never a candidate, so if all windows are dedicated,
2123the value is nil.
2120If optional argument FRAME is `visible', search all visible frames. 2124If optional argument FRAME is `visible', search all visible frames.
2121If FRAME is 0, search all visible and iconified frames. 2125If FRAME is 0, search all visible and iconified frames.
2122If FRAME is t, search all frames. 2126If FRAME is t, search all frames.
@@ -2694,7 +2698,7 @@ shrink_windows (total, size, nchildren, shrinkable,
2694 ++nonzero_sizes; 2698 ++nonzero_sizes;
2695 nonzero_idx = i; 2699 nonzero_idx = i;
2696 } 2700 }
2697 2701
2698 for (i = 0; i < nchildren; ++i) 2702 for (i = 0; i < nchildren; ++i)
2699 if (new_sizes[i] > min_size) 2703 if (new_sizes[i] > min_size)
2700 { 2704 {
@@ -3012,6 +3016,9 @@ set_window_buffer (window, buffer, run_hooks_p, keep_margins_p)
3012 if (EQ (window, selected_window)) 3016 if (EQ (window, selected_window))
3013 b->last_selected_window = window; 3017 b->last_selected_window = window;
3014 3018
3019 /* Let redisplay errors through. */
3020 b->display_error_modiff = 0;
3021
3015 /* Update time stamps of buffer display. */ 3022 /* Update time stamps of buffer display. */
3016 if (INTEGERP (b->display_count)) 3023 if (INTEGERP (b->display_count))
3017 XSETINT (b->display_count, XINT (b->display_count) + 1); 3024 XSETINT (b->display_count, XINT (b->display_count) + 1);
@@ -6178,10 +6185,12 @@ If TYPE is t, use the frame's scroll-bar type. */)
6178 struct window *w = decode_window (window); 6185 struct window *w = decode_window (window);
6179 6186
6180 if (!NILP (width)) 6187 if (!NILP (width))
6181 CHECK_NATNUM (width); 6188 {
6189 CHECK_NATNUM (width);
6182 6190
6183 if (XINT (width) == 0) 6191 if (XINT (width) == 0)
6184 vertical_type = Qnil; 6192 vertical_type = Qnil;
6193 }
6185 6194
6186 if (!(EQ (vertical_type, Qnil) 6195 if (!(EQ (vertical_type, Qnil)
6187 || EQ (vertical_type, Qleft) 6196 || EQ (vertical_type, Qleft)