feature/popup: add hacks for wgrep, org, persp-mode & balance-windows

Plus +popup*close and +popup*save advice functions.
This commit is contained in:
Henrik Lissner 2018-01-06 04:56:39 -05:00
parent a9a731c1eb
commit eedd86135e
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 68 additions and 1 deletions

View file

@ -324,3 +324,18 @@ prevent the popup(s) from messing up the UI (or vice versa)."
(unless in-popup-p
(select-window origin)))))))
;;
;; Advice
;;
;;;###autoload
(defun +popup*close (&rest _)
"TODO"
(+popup/close))
;;;###autoload
(defun +popup*save (orig-fn &rest args)
"Sets aside all popups before executing the original function, usually to
prevent the popup(s) from messing up the UI (or vice versa)."
(save-popups! (apply orig-fn args)))