Prevent occasional errors when windows are deleted #357

Merged
merged 1 commit into from Feb 4, 2014

Projects

None yet

2 participants

@sabof
Contributor
sabof commented Feb 3, 2014

This test is more accurate

@djcb
Owner
djcb commented Feb 4, 2014

Why the
(when (eq t (window-deletable-p win))
instead of simply
(when (window-deletable ...
?

@sabof
Contributor
sabof commented Feb 4, 2014

window-deletable-p may also return 'frame. At least on my setup, trying to delete such a window throws an error.

@sabof
Contributor
sabof commented Feb 4, 2014

Ex, I get 'frame, when there is only one window.

@djcb djcb merged commit 75bee1f into djcb:master Feb 4, 2014
@djcb
Owner
djcb commented Feb 4, 2014

Oh, that makes sense -- thanks, merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment