summaryrefslogtreecommitdiffhomepage
path: root/sys
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2020-12-30 05:20:34 +0000
committerjao <jao@gnu.org>2020-12-30 05:20:34 +0000
commit02a28ae4aa5b5d77e7d2ff4fdf6766ee566e773d (patch)
tree403c017157f42339a3f41079b026df63364e76d0 /sys
parent1fac59fb097af2bd6dc74f5000822fc0e5af3c13 (diff)
downloadelibs-02a28ae4aa5b5d77e7d2ff4fdf6766ee566e773d.tar.gz
elibs-02a28ae4aa5b5d77e7d2ff4fdf6766ee566e773d.tar.bz2
jao-minibuffer: ordering for displayed entries
Diffstat (limited to 'sys')
-rw-r--r--sys/jao-ednc.el4
-rw-r--r--sys/jao-minibuffer.el4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/jao-ednc.el b/sys/jao-ednc.el
index 0dc8e4e..03d4049 100644
--- a/sys/jao-ednc.el
+++ b/sys/jao-ednc.el
@@ -97,14 +97,14 @@
(when new (funcall (jao-ednc--handler new) new t)))
;;;###autoload
-(defun jao-ednc-setup ()
+(defun jao-ednc-setup (minibuffer-order)
(setq jao-notify-use-messages-p t)
(with-eval-after-load "tracking"
(when jao-ednc-use-tracking
(add-to-list 'tracking-faces-priorities 'jao-ednc-tracking)
(when (listp tracking-shorten-modes)
(add-to-list 'tracking-shorten-modes 'ednc-view-mode))))
- (jao-minibuffer-add-variable '(jao-ednc--count) t)
+ (jao-minibuffer-add-variable '(jao-ednc--count) minibuffer-order)
(add-hook 'ednc-notification-presentation-functions #'jao-ednc--on-notify)
(ednc-mode))
diff --git a/sys/jao-minibuffer.el b/sys/jao-minibuffer.el
index 4d3104c..b626151 100644
--- a/sys/jao-minibuffer.el
+++ b/sys/jao-minibuffer.el
@@ -91,8 +91,8 @@
(jao-minibuffer--insert (or (jao-minibuffer--aligned) ""))))
;;;###autoload
-(defun jao-minibuffer-add-variable (variable-name &optional append)
- (add-to-list 'jao-minibuffer-info `(:eval ,variable-name) append))
+(defun jao-minibuffer-add-variable (variable-name &optional order)
+ (add-to-ordered-list 'jao-minibuffer-info `(:eval ,variable-name) order))
(defvar jao-minibuffer--notification-timer nil)