feature/popup: use window-toggle-side-window

Neat. `window-toggle-side-window` exists and essentially does what
I wanted +popup/toggle to do.
This commit is contained in:
Henrik Lissner 2018-01-07 01:51:42 -05:00
parent af58e321dd
commit 29e25f5ea8
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -267,10 +267,9 @@ 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)
(cond ((+popup-windows) (condition-case _
(+popup/close-all t)) (window-toggle-side-windows)
((ignore-errors (+popup/restore))) ('error (display-buffer (get-buffer "*Messages*")))))
((display-buffer (get-buffer "*Messages*")))))
;;;###autoload ;;;###autoload
(defun +popup/restore () (defun +popup/restore ()