nit(popup): mention post-command-select-window for 30.x+

Ref: emacs-mirror/emacs@6f75d0f36d
This commit is contained in:
Henrik Lissner 2024-02-07 18:25:04 -05:00 committed by Yann Esposito (Yogsototh)
parent f748b9778a
commit 3074e4648d
Signed by untrusted user who does not match committer: yogsototh
GPG key ID: 7B19A4C650D59646

View file

@ -139,6 +139,8 @@ the buffer is visible, then set another timer and try again later."
(defun +popup--maybe-select-window (window origin) (defun +popup--maybe-select-window (window origin)
"Select a window based on `+popup--inhibit-select' and this window's `select' parameter." "Select a window based on `+popup--inhibit-select' and this window's `select' parameter."
(unless +popup--inhibit-select (unless +popup--inhibit-select
;; REVIEW: Once our minimum version is bumped up to Emacs 30.x, replace this
;; with `post-command-select-window' window parameter.
(let ((select (+popup-parameter 'select window))) (let ((select (+popup-parameter 'select window)))
(if (functionp select) (if (functionp select)
(funcall select window origin) (funcall select window origin)