Add {buffer,window}-live-p checks to doom-popup-p

This commit is contained in:
Henrik Lissner 2017-09-28 18:10:14 +02:00
parent f78fd0d91a
commit 5128033320
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -8,9 +8,11 @@
omitted."
(when-let (target (or target (selected-window)))
(cond ((bufferp target)
(buffer-local-value 'doom-popup-mode target))
(and (buffer-live-p target)
(buffer-local-value 'doom-popup-mode target)))
((windowp target)
(window-parameter target 'popup)))))
(and (window-live-p target)
(window-parameter target 'popup))))))
;;;###autoload
(defun doom-popup-buffer (buffer &optional plist extend-p)