branch: elpa/mastodon
commit 8f51ccd28ff37f83bf4dfd1bcbfd75a6c226d72c
Author: marty hiatt <[email protected]>
Commit: marty hiatt <[email protected]>
don't require alert.el, def the vars that we use though.
---
lisp/mastodon.el | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/lisp/mastodon.el b/lisp/mastodon.el
index 7e6f52c5f1..7e59a86a04 100644
--- a/lisp/mastodon.el
+++ b/lisp/mastodon.el
@@ -40,7 +40,6 @@
(eval-when-compile (require 'subr-x))
(require 'url)
(require 'thingatpt)
-(require 'alert)
(require 'shr)
(require 'mastodon-http)
@@ -112,6 +111,9 @@
(defvar mastodon-notifications--map)
(defvar mastodon-client--token-file)
+(defvar alert-default-style)
+(defvar alert-styles)
+
(defvar mastodon-notifications-grouped-types
'("reblog" "favourite") ;; TODO: implement follow!
"List of notification types for which grouping is implemented.
@@ -216,7 +218,9 @@ Alerts are only checked for when at least 1 mastodon.el
buffer is open."
"The type of alert.el style to use for mastodon.el notification alerts.
Currently, if you customize this variable, you need to restart Emacs for
it to take effect, or if you don't have any other alert.el rules set up,
-you can nil `alert-internal-configuration' and reload mastodon.el"
+you can nil `alert-internal-configuration' and reload mastodon.el. This
+only applies to alert.el alerts, if you don't use alert.el, mastodon.el
+will message for notification alerts."
:type
`(choice
,@(append