From 74219ab7d937926d3430e8d479c786c9a558cef1 Mon Sep 17 00:00:00 2001 From: jao Date: Thu, 13 May 2021 22:26:45 +0100 Subject: jao-minibuffer ad-hoc notifications gone --- lib/eos/jao-ednc.el | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'lib/eos/jao-ednc.el') diff --git a/lib/eos/jao-ednc.el b/lib/eos/jao-ednc.el index 71f1ce4..0c52286 100644 --- a/lib/eos/jao-ednc.el +++ b/lib/eos/jao-ednc.el @@ -35,7 +35,6 @@ (defvar jao-ednc--notifications ()) (defvar jao-ednc--handlers ()) -(defvar jao-ednc-use-minibuffer-notifications nil) (defvar jao-ednc-use-tracking nil) (defface jao-ednc-tracking '((t :inherit warning)) @@ -61,22 +60,15 @@ (defun jao-ednc-ignore-app (app) (jao-ednc-add-handler app (lambda (not _) (ednc-dismiss-notification not)))) -(defun jao-ednc--pop-minibuffer () - (if jao-ednc-use-minibuffer-notifications - (jao-minibuffer-pop-notification) - (jao-minibuffer-refresh))) - (defun jao-ednc--clean (&optional notification) (tracking-remove-buffer (get-buffer ednc-log-name)) (if notification (remove notification jao-ednc--notifications) (pop jao-ednc--notifications)) - (jao-ednc--pop-minibuffer)) + (jao-minibuffer-refresh)) (defun jao-ednc--show-last () - (if jao-ednc-use-minibuffer-notifications - (jao-minibuffer-push-notification '(:eval (jao-ednc--format-last))) - (message "%s" (jao-ednc--format-last)))) + (jao-minibuffer-push-notification '(:eval (jao-ednc--format-last)))) (defun jao-ednc--default-handler (notification newp) (if (not newp) -- cgit v1.2.3