summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-06-07 04:56:36 +0100
committerjao <jao@gnu.org>2021-06-07 04:56:36 +0100
commit65c2a3646ebf16051322b69a34732e28b62a39ed (patch)
tree1ba499a103813f093265a80c6e9e694e673b9c0a
parentc67a7d152e14960283d65b6ca457ca25a86b0f10 (diff)
downloadelibs-65c2a3646ebf16051322b69a34732e28b62a39ed.tar.gz
elibs-65c2a3646ebf16051322b69a34732e28b62a39ed.tar.bz2
minibuffer: window-selection-change-functions in lieu of advice
-rw-r--r--lib/eos/jao-minibuffer.el3
1 files changed, 2 insertions, 1 deletions
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 "")))))