From 02a28ae4aa5b5d77e7d2ff4fdf6766ee566e773d Mon Sep 17 00:00:00 2001 From: jao Date: Wed, 30 Dec 2020 05:20:34 +0000 Subject: jao-minibuffer: ordering for displayed entries --- sys/jao-ednc.el | 4 ++-- sys/jao-minibuffer.el | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sys') 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) -- cgit v1.2.3