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