aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Monnier2004-11-23 05:05:34 +0000
committerStefan Monnier2004-11-23 05:05:34 +0000
commit0f8fe9a26f2f11b85b3577f47372a860c9a0d53a (patch)
tree52c8eaa762824d1222a0a2972a6990d548107b27 /src
parente6fb381c3eff96271ffe829074ce92465c791b50 (diff)
downloademacs-0f8fe9a26f2f11b85b3577f47372a860c9a0d53a.tar.gz
emacs-0f8fe9a26f2f11b85b3577f47372a860c9a0d53a.zip
(Fset_window_scroll_bars): Don't use XINT if it isn't int.
(decode_next_window_args, window_loop): Don't use XFASTINT blindly.
Diffstat (limited to 'src')
-rw-r--r--src/window.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/window.c b/src/window.c
index 39fa03c2879..f7a7a4c438c 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;
@@ -6181,10 +6181,12 @@ If TYPE is t, use the frame's scroll-bar type. */)
6181 struct window *w = decode_window (window); 6181 struct window *w = decode_window (window);
6182 6182
6183 if (!NILP (width)) 6183 if (!NILP (width))
6184 CHECK_NATNUM (width); 6184 {
6185 CHECK_NATNUM (width);
6185 6186
6186 if (XINT (width) == 0) 6187 if (XINT (width) == 0)
6187 vertical_type = Qnil; 6188 vertical_type = Qnil;
6189 }
6188 6190
6189 if (!(EQ (vertical_type, Qnil) 6191 if (!(EQ (vertical_type, Qnil)
6190 || EQ (vertical_type, Qleft) 6192 || EQ (vertical_type, Qleft)