Fixed +popup--kill-buffer visibility check

Now it checks all frames instead of only the current one.
This commit is contained in:
Elijah Malaby 2018-12-02 13:24:02 -05:00
parent abc7ca84d8
commit d063fff8a1

View file

@ -14,7 +14,7 @@ the buffer is visible, then set another timer and try again later."
(when (buffer-live-p buffer) (when (buffer-live-p buffer)
(let ((inhibit-quit t) (let ((inhibit-quit t)
(kill-buffer-hook (remq '+popup|kill-buffer-hook kill-buffer-hook))) (kill-buffer-hook (remq '+popup|kill-buffer-hook kill-buffer-hook)))
(cond ((get-buffer-window buffer) (cond ((get-buffer-window buffer t)
(with-current-buffer buffer (with-current-buffer buffer
(setq +popup--timer (setq +popup--timer
(run-at-time ttl nil #'+popup--kill-buffer buffer ttl)))) (run-at-time ttl nil #'+popup--kill-buffer buffer ttl))))