aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorDmitry Antipov <[email protected]>2012-12-07 12:13:49 +0400
committerDmitry Antipov <[email protected]>2012-12-07 12:13:49 +0400
commit822995f8b9776a3bcd3794eb7c362bed0f21c4a1 (patch)
treec23294c683b04fee27566eeb78537da3ba3b3b52 /src/window.c
parented08365b9e2756208b0cd2724715b47df6bf5320 (diff)
* frame.c (make_frame): Do not set window's buffer to t.
* window.c (Fsplit_window_internal): Likewise. Previously it was used to indicate that the window is being set up. Now we use set_window_buffer for all new windows, so the condition in ... (Fset_window_buffer): ... is always true and can be removed.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/window.c b/src/window.c
index 9f3474fcd5..d7c2e8b236 100644
--- a/src/window.c
+++ b/src/window.c
@@ -3250,8 +3250,7 @@ This function runs `window-scroll-functions' before running
tem = w->buffer;
if (NILP (tem))
error ("Window is deleted");
- else if (!EQ (tem, Qt))
- /* w->buffer is t when the window is first being set up. */
+ else
{
if (!EQ (tem, buffer))
{
@@ -3914,7 +3913,6 @@ set correctly. See the code of `split-window' for how this is done. */)
wset_next (o, new);
}
- wset_buffer (n, Qt);
wset_window_end_valid (n, Qnil);
memset (&n->last_cursor, 0, sizeof n->last_cursor);