feature/popup: split +popup-p into two functions

Better to be explicit about what we want, especially when using one or
the other with no arguments.
This commit is contained in:
Henrik Lissner
2018-01-07 21:52:54 -05:00
parent f9ab0cf767
commit 7ca2e1593e
3 changed files with 29 additions and 22 deletions

View File

@@ -39,7 +39,7 @@
;; a term buffer to run it in, but where it spawns it is the problem...
(defun +popup*eshell-undedicate-popup (orig-fn &rest args)
"Force spawned term buffer to share with the eshell popup (if necessary)."
(when (+popup-p)
(when (+popup-window-p)
(set-window-dedicated-p nil nil)
(add-transient-hook! #'eshell-query-kill-processes :after
(set-window-dedicated-p nil t)))