fix(popup): +popup/raise: recursive popup

Without this, raising a popup might result in simply opening a popup
with the same rules.
This commit is contained in:
Henrik Lissner 2023-09-11 23:53:59 +02:00
parent f427c8a30e
commit d8372b6e2d
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -437,9 +437,10 @@ window and return that window."
(+popup--inhibit-transient t) (+popup--inhibit-transient t)
+popup--remember-last) +popup--remember-last)
(+popup/close window 'force) (+popup/close window 'force)
(if arg (let (display-buffer-alist)
(pop-to-buffer buffer) (if arg
(switch-to-buffer buffer)) (pop-to-buffer buffer)
(switch-to-buffer buffer)))
(selected-window))) (selected-window)))
;;;###autoload ;;;###autoload