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 "If popups are open, close them. If they aren't, restore the last one or open
the message buffer in a popup window." the message buffer in a popup window."
(interactive) (interactive)
(condition-case _ (cond ((+popup-windows)
(window-toggle-side-windows) (+popup/close-all t))
('error (display-buffer (get-buffer "*Messages*"))))) ((ignore-errors (+popup/restore)))
((display-buffer (get-buffer "*Messages*")))))
;;;###autoload ;;;###autoload
(defun +popup/restore () (defun +popup/restore ()