Revert "feature/popup: use window-toggle-side-window" #298

This reverts commit 29e25f5ea8.

window-toggle-side-window isn't as robust as I had hoped.
This commit is contained in:
Henrik Lissner 2018-01-07 06:24:56 -05:00
parent 8520c12434
commit 51084852a6
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -302,9 +302,10 @@ This window parameter is ignored if FORCE-P is non-nil."
"If popups are open, close them. If they aren't, restore the last one or open
the message buffer in a popup window."
(interactive)
(condition-case _
(window-toggle-side-windows)
('error (display-buffer (get-buffer "*Messages*")))))
(cond ((+popup-windows)
(+popup/close-all t))
((ignore-errors (+popup/restore)))
((display-buffer (get-buffer "*Messages*")))))
;;;###autoload
(defun +popup/restore ()