Merge pull request #357 from sabof/more-accurate-deletion-test

* prevent occasional errors when windows are deleted
This commit is contained in:
Dirk-Jan C. Binnema 2014-02-03 23:28:51 -08:00
commit 75bee1f082
1 changed files with 2 additions and 2 deletions

View File

@ -1035,8 +1035,8 @@ displaying it). Do _not_ bury the current buffer, though."
(with-current-buffer (window-buffer win)
(unless (eq curbuf (current-buffer))
(when (member major-mode '(mu4e-headers-mode mu4e-view-mode))
(unless (one-window-p t)
(delete-window win))))))) nil t))
(when (eq t (window-deletable-p win))
(delete-window win))))))) t))
(defun mu4e-get-time-date (prompt)