summaryrefslogtreecommitdiffhomepage
path: root/lib/eos
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-06-10 15:56:36 +0100
committerjao <jao@gnu.org>2021-06-10 15:56:36 +0100
commit60d38f88e13321cc02f7db2cd437b768c3a3dd41 (patch)
tree911afb10ccc65b63fc2952e18571dafce66204e4 /lib/eos
parent41b97ccaf55f8b57e9c8a4b188987ae91543862b (diff)
downloadelibs-60d38f88e13321cc02f7db2cd437b768c3a3dd41.tar.gz
elibs-60d38f88e13321cc02f7db2cd437b768c3a3dd41.tar.bz2
tracking and minibuffer: watch tracking-mode-line-buffers
Diffstat (limited to 'lib/eos')
-rw-r--r--lib/eos/jao-tracking.el6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/eos/jao-tracking.el b/lib/eos/jao-tracking.el
index 1397791..85c78db 100644
--- a/lib/eos/jao-tracking.el
+++ b/lib/eos/jao-tracking.el
@@ -107,17 +107,13 @@
(setq jao-tracking-string (jao-tracking-build-str (tracking-status)))
(jao-minibuffer-refresh))
-(advice-add 'force-mode-line-update :after #'jao-tracking-update-minibuffer)
-
(defun jao-tracking-echo (_sym new-val _op _where)
(setq jao-tracking-string (jao-tracking-build-str new-val))
(jao-minibuffer-refresh))
(jao-minibuffer-add-variable 'jao-tracking-string -10)
-
-;; (add-variable-watcher 'tracking-mode-line-buffers #'jao-tracking-echo)
+(add-variable-watcher 'tracking-mode-line-buffers #'jao-tracking-echo)
;; since we're using the minibuffer, forget the mode line
-
(advice-add #'tracking-mode :override (lambda (&optional _) (interactive)))
(provide 'jao-tracking)