aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorKarl Heuer1994-03-25 00:41:05 +0000
committerKarl Heuer1994-03-25 00:41:05 +0000
commit12cae7c04d60bd4eaa0d65afd1271ab4f1f93c4d (patch)
tree469f363cc4bf46a05189254faed6add2ed2d1ab2 /src/window.c
parent3814ccf5ee2b859d7752cd74fc261444e5fb030e (diff)
downloademacs-12cae7c04d60bd4eaa0d65afd1271ab4f1f93c4d.tar.gz
emacs-12cae7c04d60bd4eaa0d65afd1271ab4f1f93c4d.zip
(unshow_buffer, window_loop, Fdisplay_buffer): Use assignment, not
initialization.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/window.c b/src/window.c
index 98a5cbfc0b4..12cdca006cd 100644
--- a/src/window.c
+++ b/src/window.c
@@ -615,8 +615,9 @@ static
615unshow_buffer (w) 615unshow_buffer (w)
616 register struct window *w; 616 register struct window *w;
617{ 617{
618 Lisp_Object buf = w->buffer; 618 Lisp_Object buf;
619 619
620 buf = w->buffer;
620 if (XBUFFER (buf) != XMARKER (w->pointm)->buffer) 621 if (XBUFFER (buf) != XMARKER (w->pointm)->buffer)
621 abort (); 622 abort ();
622 623
@@ -1219,7 +1220,8 @@ window_loop (type, obj, mini, frames)
1219 on the frame, find a new buffer to display there. */ 1220 on the frame, find a new buffer to display there. */
1220 if (NILP (XWINDOW (w)->parent)) 1221 if (NILP (XWINDOW (w)->parent))
1221 { 1222 {
1222 Lisp_Object new_buffer = Fother_buffer (obj, Qnil); 1223 Lisp_Object new_buffer;
1224 new_buffer = Fother_buffer (obj, Qnil);
1223 if (NILP (new_buffer)) 1225 if (NILP (new_buffer))
1224 new_buffer 1226 new_buffer
1225 = Fget_buffer_create (build_string ("*scratch*")); 1227 = Fget_buffer_create (build_string ("*scratch*"));
@@ -1252,7 +1254,8 @@ window_loop (type, obj, mini, frames)
1252 if (EQ (XWINDOW (w)->buffer, obj)) 1254 if (EQ (XWINDOW (w)->buffer, obj))
1253 { 1255 {
1254 /* Find another buffer to show in this window. */ 1256 /* Find another buffer to show in this window. */
1255 Lisp_Object another_buffer = Fother_buffer (obj, Qnil); 1257 Lisp_Object another_buffer;
1258 another_buffer = Fother_buffer (obj, Qnil);
1256 if (NILP (another_buffer)) 1259 if (NILP (another_buffer))
1257 another_buffer 1260 another_buffer
1258 = Fget_buffer_create (build_string ("*scratch*")); 1261 = Fget_buffer_create (build_string ("*scratch*"));
@@ -1735,8 +1738,9 @@ Returns the window displaying BUFFER.")
1735#endif 1738#endif
1736 ) 1739 )
1737 { 1740 {
1738 Lisp_Object frames = Qnil; 1741 Lisp_Object frames;
1739 1742
1743 frames = Qnil;
1740#ifdef MULTI_FRAME 1744#ifdef MULTI_FRAME
1741 if (FRAME_MINIBUF_ONLY_P (selected_frame)) 1745 if (FRAME_MINIBUF_ONLY_P (selected_frame))
1742 XSET (frames, Lisp_Frame, last_nonminibuf_frame); 1746 XSET (frames, Lisp_Frame, last_nonminibuf_frame);