feature/popup: add +popup--inhibit-select letvar
This commit is contained in:
parent
fbfba93775
commit
4b5e7c1128
1 changed files with 6 additions and 4 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
(defvar +popup--populate-wparams (not EMACS26+))
|
||||
(defvar +popup--inhibit-transient nil)
|
||||
(defvar +popup--inhibit-select nil)
|
||||
(defvar +popup--display-buffer-alist nil)
|
||||
(defvar +popup--old-display-buffer-alist nil)
|
||||
(defvar +popup--remember-last t)
|
||||
|
@ -146,10 +147,11 @@ and enables `+popup-buffer-mode'."
|
|||
(when-let* ((new-window (run-hook-with-args-until-success
|
||||
'+popup-display-buffer-actions buffer alist)))
|
||||
(+popup--init new-window alist)
|
||||
(unless +popup--inhibit-select
|
||||
(let ((select (+popup-parameter 'select new-window)))
|
||||
(if (functionp select)
|
||||
(funcall select new-window old-window)
|
||||
(select-window (if select new-window old-window))))
|
||||
(select-window (if select new-window old-window)))))
|
||||
new-window)))
|
||||
|
||||
;;;###autoload
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue