From 567b116357143488980e0294caf900624b48468a Mon Sep 17 00:00:00 2001 From: marty hiatt Date: Fri, 4 Oct 2024 11:46:56 +0200 Subject: notifs: don't require mastodon! require subr-x, autoloads --- lisp/mastodon-notifications.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lisp/mastodon-notifications.el b/lisp/mastodon-notifications.el index 1a1c4ed..bab2e13 100644 --- a/lisp/mastodon-notifications.el +++ b/lisp/mastodon-notifications.el @@ -30,7 +30,7 @@ ;;; Code: -(require 'mastodon) +(eval-when-compile (require 'subr-x)) (autoload 'mastodon-http--api "mastodon-http") (autoload 'mastodon-http--get-params-async-json "mastodon-http") @@ -52,6 +52,10 @@ (autoload 'mastodon-tl--item-id "mastodon-tl") (autoload 'mastodon-tl--update "mastodon-tl") (autoload 'mastodon-views--view-follow-requests "mastodon-views") +(autoload 'mastodon-tl--current-filters "mastodon-views") +(autoload 'mastodon-tl--render-text "mastodon-tl") +(autoload 'mastodon-notifications-get "mastodon") + (defgroup mastodon-tl nil "Nofications in mastodon.el." @@ -76,6 +80,7 @@ make them unweildy." (defvar mastodon-tl--buffer-spec) (defvar mastodon-tl--display-media-p) +(defvar mastodon-mode-map) (defvar mastodon-notifications--types-alist '(("follow" . mastodon-notifications--follow) -- cgit v1.2.3