summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2024-04-11 17:53:15 +0100
committerjao <jao@gnu.org>2024-04-11 17:53:15 +0100
commit9e551f916cf0f357b43e6be79f55a7173a0ffe2c (patch)
tree9ae0eb3226ee367b754a28e34a3bcbf752302814
parent6f9a2f88da45c9cd252db698fbc7962bd4618a58 (diff)
downloadelibs-9e551f916cf0f357b43e6be79f55a7173a0ffe2c.tar.gz
elibs-9e551f916cf0f357b43e6be79f55a7173a0ffe2c.tar.bz2
ednc: show message on dismiss
-rw-r--r--init.el1
-rw-r--r--lib/eos/jao-ednc.el12
2 files changed, 8 insertions, 5 deletions
diff --git a/init.el b/init.el
index e4f886f..dd4adab 100644
--- a/init.el
+++ b/init.el
@@ -584,6 +584,7 @@
("s" "show last" jao-ednc-show)
("S" "show all" jao-ednc-pop)
("d" "dismiss last" jao-ednc-dismiss)
+ ("n" "dismiss and show" jao-ednc-dismiss :transient t)
("D" "dismiss all" jao-ednc-dismiss-all)
("i" "invoke last action" jao-ednc-invoke-last-action)])
(global-set-key (kbd "s-n") #'jao-transient-ednc))
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 ()