diff options
author | Dmitry Antipov <dmantipov@yandex.ru> | 2012-12-07 12:13:49 +0400 |
---|---|---|
committer | Dmitry Antipov <dmantipov@yandex.ru> | 2012-12-07 12:13:49 +0400 |
commit | 822995f8b9776a3bcd3794eb7c362bed0f21c4a1 (patch) | |
tree | c23294c683b04fee27566eeb78537da3ba3b3b52 /src/window.c | |
parent | ed08365b9e2756208b0cd2724715b47df6bf5320 (diff) | |
download | emacs-822995f8b9776a3bcd3794eb7c362bed0f21c4a1.tar.gz emacs-822995f8b9776a3bcd3794eb7c362bed0f21c4a1.tar.bz2 emacs-822995f8b9776a3bcd3794eb7c362bed0f21c4a1.zip |
* 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.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/window.c b/src/window.c index 9f3474fcd53..d7c2e8b236e 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); |