From 65c2a3646ebf16051322b69a34732e28b62a39ed Mon Sep 17 00:00:00 2001 From: jao Date: Mon, 7 Jun 2021 04:56:36 +0100 Subject: minibuffer: window-selection-change-functions in lieu of advice --- lib/eos/jao-minibuffer.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/eos/jao-minibuffer.el b/lib/eos/jao-minibuffer.el index 549600d..3d98a71 100644 --- a/lib/eos/jao-minibuffer.el +++ b/lib/eos/jao-minibuffer.el @@ -154,7 +154,7 @@ :underline jao-minibuffer-inactive-buffer-line-color :extend t)) (advice-add 'force-mode-line-update :after #'jao-minibuffer-refresh) - (advice-add 'select-window :after #'jao-minibuffer-refresh) + (add-hook 'window-selection-change-functions #'jao-minibuffer-refresh) (jao-minibuffer-add-variable 'jao-minibuffer--mode-line-format order)) ;;;###autoload @@ -171,6 +171,7 @@ (when (and jao-minibuffer-enabled-p (not (bound-and-true-p current-minibuffer-command))) (let* ((jao-minibuffer-enabled-p nil) + (window-selection-change-functions nil) (msg (jao-minibuffer--format-info jao-minibuffer-msg-info)) (msg (jao-minibuffer--format-msg (or msg "")))) (jao-minibuffer--insert (or msg ""))))) -- cgit v1.2.3