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:
parent
af58e321dd
commit
29e25f5ea8
1 changed files with 3 additions and 4 deletions
|
@ -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 ()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue