Commit 998c4a6a authored by Martin Rudalics's avatar Martin Rudalics
Browse files

Fix latest fix of delete-window.

* window.el (delete-window): Fix last fix.
parent 44386687
2012-08-17 Martin Rudalics <>
* window.el (delete-window): Fix last fix.
2012-08-16 Martin Rudalics <>
* window.el (window-valid-p): Move to window.c.
......@@ -2459,9 +2459,7 @@ that is its frame's root window."
(not (eq (window-parameter parent 'window-side) 'none))))
(error "Attempt to delete last non-side window"))
((not parent)
(error "Attempt to delete minibuffer or sole ordinary window"))
((eq window (window--major-non-side-window frame))
(error "Attempt to delete last non-side window")))
(error "Attempt to delete minibuffer or sole ordinary window")))
(let* ((horizontal (window-left-child parent))
(size (window-total-size window horizontal))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment