aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorStefan Monnier2008-10-26 04:13:46 +0000
committerStefan Monnier2008-10-26 04:13:46 +0000
commitf5385255de06994bfc8217a9e8612af9cc45d795 (patch)
treef8b663d94773b16a109046cc16f3b59ffc466b09 /src/window.c
parentb6576049821dc2adeb8c5c25ca6a059101443563 (diff)
downloademacs-f5385255de06994bfc8217a9e8612af9cc45d795.tar.gz
emacs-f5385255de06994bfc8217a9e8612af9cc45d795.zip
(Fset_window_buffer): Undo 2008-10-18 change to re-instate
the distinction between non-nil and non-t value of `dedicated'.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/window.c b/src/window.c
index 5931955fd66..737eeed3f35 100644
--- a/src/window.c
+++ b/src/window.c
@@ -3522,8 +3522,11 @@ This function runs the hook `window-scroll-functions'. */)
3522 else if (!EQ (tem, Qt)) 3522 else if (!EQ (tem, Qt))
3523 /* w->buffer is t when the window is first being set up. */ 3523 /* w->buffer is t when the window is first being set up. */
3524 { 3524 {
3525 if (!NILP (w->dedicated) && !EQ (tem, buffer)) 3525 if (!EQ (tem, buffer))
3526 error ("Window is dedicated to `%s'", SDATA (XBUFFER (tem)->name)); 3526 if (EQ (w->dedicated, Qt))
3527 error ("Window is dedicated to `%s'", SDATA (XBUFFER (tem)->name));
3528 else
3529 w->dedicated = Qnil;
3527 3530
3528 unshow_buffer (w); 3531 unshow_buffer (w);
3529 } 3532 }