1
0
mirror of https://github.com/djcb/mu.git synced 2024-06-21 06:56:48 +02:00

Use window-deletable-p

This commit is contained in:
sabof 2014-02-03 04:52:06 +00:00
parent 9b9571a9b5
commit d4bcf629c2

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)