mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Add {buffer,window}-live-p checks to doom-popup-p
This commit is contained in:
@ -8,9 +8,11 @@
|
|||||||
omitted."
|
omitted."
|
||||||
(when-let (target (or target (selected-window)))
|
(when-let (target (or target (selected-window)))
|
||||||
(cond ((bufferp target)
|
(cond ((bufferp target)
|
||||||
(buffer-local-value 'doom-popup-mode target))
|
(and (buffer-live-p target)
|
||||||
|
(buffer-local-value 'doom-popup-mode target)))
|
||||||
((windowp target)
|
((windowp target)
|
||||||
(window-parameter target 'popup)))))
|
(and (window-live-p target)
|
||||||
|
(window-parameter target 'popup))))))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun doom-popup-buffer (buffer &optional plist extend-p)
|
(defun doom-popup-buffer (buffer &optional plist extend-p)
|
||||||
|
Reference in New Issue
Block a user