aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Rudalics2012-08-17 08:01:17 +0200
committerMartin Rudalics2012-08-17 08:01:17 +0200
commit998c4a6a187db3cfc36914fc8d54c43005f7be25 (patch)
tree94583c70d08f027edbfc479c428007274d54165c
parent44386687ef56cf67b8eaf34c3365fdcb6ff0aa3d (diff)
downloademacs-998c4a6a187db3cfc36914fc8d54c43005f7be25.tar.gz
emacs-998c4a6a187db3cfc36914fc8d54c43005f7be25.zip
Fix latest fix of delete-window.
* window.el (delete-window): Fix last fix.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/window.el4
2 files changed, 5 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index c91c40eb52d..2bc154b1610 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12012-08-17 Martin Rudalics <rudalics@gmx.at>
2
3 * window.el (delete-window): Fix last fix.
4
12012-08-16 Martin Rudalics <rudalics@gmx.at> 52012-08-16 Martin Rudalics <rudalics@gmx.at>
2 6
3 * window.el (window-valid-p): Move to window.c. 7 * window.el (window-valid-p): Move to window.c.
diff --git a/lisp/window.el b/lisp/window.el
index d505b7dbbac..142e80e1666 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -2459,9 +2459,7 @@ that is its frame's root window."
2459 (not (eq (window-parameter parent 'window-side) 'none)))) 2459 (not (eq (window-parameter parent 'window-side) 'none))))
2460 (error "Attempt to delete last non-side window")) 2460 (error "Attempt to delete last non-side window"))
2461 ((not parent) 2461 ((not parent)
2462 (error "Attempt to delete minibuffer or sole ordinary window")) 2462 (error "Attempt to delete minibuffer or sole ordinary window")))
2463 ((eq window (window--major-non-side-window frame))
2464 (error "Attempt to delete last non-side window")))
2465 2463
2466 (let* ((horizontal (window-left-child parent)) 2464 (let* ((horizontal (window-left-child parent))
2467 (size (window-total-size window horizontal)) 2465 (size (window-total-size window horizontal))