From 9e551f916cf0f357b43e6be79f55a7173a0ffe2c Mon Sep 17 00:00:00 2001 From: jao Date: Thu, 11 Apr 2024 17:53:15 +0100 Subject: ednc: show message on dismiss --- lib/eos/jao-ednc.el | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'lib/eos/jao-ednc.el') diff --git a/lib/eos/jao-ednc.el b/lib/eos/jao-ednc.el index 3f7638d..ccd098e 100644 --- a/lib/eos/jao-ednc.el +++ b/lib/eos/jao-ednc.el @@ -127,11 +127,13 @@ ;;;###autoload (defun jao-ednc-dismiss () (interactive) - (when (jao-ednc--last-notification) - (ignore-errors - (with-current-buffer ednc-log-name - (ednc-dismiss-notification (jao-ednc--last-notification))))) - (jao-ednc--clean)) + (let ((m (jao-ednc--format-last))) + (when (jao-ednc--last-notification) + (ignore-errors + (with-current-buffer ednc-log-name + (ednc-dismiss-notification (jao-ednc--last-notification))))) + (jao-ednc--clean) + (when m (message m)))) ;;;###autoload (defun jao-ednc-dismiss-all () -- cgit v1.2.3