summaryrefslogtreecommitdiffhomepage
path: root/lib/eos/jao-ednc.el
diff options
context:
space:
mode:
Diffstat (limited to 'lib/eos/jao-ednc.el')
-rw-r--r--lib/eos/jao-ednc.el16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/eos/jao-ednc.el b/lib/eos/jao-ednc.el
index 5750ea7..92ee21f 100644
--- a/lib/eos/jao-ednc.el
+++ b/lib/eos/jao-ednc.el
@@ -1,6 +1,6 @@
;;; jao-ednc.el --- Minibuffer notifications using EDNC -*- lexical-binding: t; -*-
-;; Copyright (C) 2020, 2021 jao
+;; Copyright (C) 2020, 2021, 2024 jao
;; Author: jao <mail@jao.io>
;; Keywords: tools, abbrev
@@ -91,9 +91,8 @@
(when old (funcall (jao-ednc--handler old) old nil))
(when new (funcall (jao-ednc--handler new) new t)))
-;;;###autoload
(defun jao-ednc-setup (minibuffer-order)
- (setq jao-notify-use-messages-p t)
+ (setq jao-notify-use-messages t)
(with-eval-after-load "tracking"
(when jao-ednc-use-tracking
(add-to-list 'tracking-faces-priorities 'jao-ednc-tracking)
@@ -104,19 +103,16 @@
(add-hook 'ednc-notification-presentation-functions #'jao-ednc--on-notify)
(ednc-mode))
-;;;###autoload
(defun jao-ednc-pop ()
(interactive)
(pop-to-buffer-same-window ednc-log-name))
-;;;###autoload
(defun jao-ednc-show ()
(interactive)
(if (not (jao-ednc--last-notification))
(jao-ednc-pop)
(jao-ednc--show-last)))
-;;;###autoload
(defun jao-ednc-invoke-last-action ()
(interactive)
(if (jao-ednc--last-notification)
@@ -124,7 +120,6 @@
(message "No active notifications"))
(jao-ednc--clean))
-;;;###autoload
(defun jao-ednc-dismiss ()
(interactive)
(when (jao-ednc--last-notification)
@@ -133,7 +128,12 @@
(ednc-dismiss-notification (jao-ednc--last-notification)))))
(jao-ednc--clean))
-;;;###autoload
+(defun jao-ednc-dismiss-and-show ()
+ (interactive)
+ (let ((m (jao-ednc--format-last)))
+ (jao-ednc-dismiss)
+ (when m (message m))))
+
(defun jao-ednc-dismiss-all ()
(interactive)
(while (jao-ednc--last-notification)