aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon.el
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus [a t] riseup [d o t] net>2023-04-05 13:03:59 +0200
committermarty hiatt <martianhiatus [a t] riseup [d o t] net>2023-04-05 13:03:59 +0200
commit81a6973878c16251bbc70ee0e98c153e5b30e720 (patch)
tree3ea0db7708f01b16d0eb8d0fef78ed448b8e62e8 /lisp/mastodon.el
parentf53847ef151bf841a2cbdaad556b334f3bba2986 (diff)
parentc6acfe694d3c2e0468c98478775442f8710de7e1 (diff)
Merge branch 'develop'
Diffstat (limited to 'lisp/mastodon.el')
-rw-r--r--lisp/mastodon.el11
1 files changed, 8 insertions, 3 deletions
diff --git a/lisp/mastodon.el b/lisp/mastodon.el
index fa822a0..81a0092 100644
--- a/lisp/mastodon.el
+++ b/lisp/mastodon.el
@@ -64,6 +64,7 @@
(autoload 'mastodon-profile--view-favourites "mastodon-profile")
(autoload 'mastodon-tl--block-user "mastodon-tl")
(autoload 'mastodon-tl--follow-user "mastodon-tl")
+(autoload 'mastodon-tl--followed-tags-timeline "mastodon-tl")
(autoload 'mastodon-tl--get-buffer-type "mastodon-tl")
(autoload 'mastodon-tl--get-federated-timeline "mastodon-tl")
(autoload 'mastodon-tl--get-home-timeline "mastodon-tl")
@@ -152,6 +153,7 @@ Use. e.g. \"%c\" for your locale's date and time format."
;; navigation between timelines
(define-key map (kbd "#") #'mastodon-tl--get-tag-timeline)
(define-key map (kbd ":") #'mastodon-tl--list-followed-tags)
+ (define-key map (kbd "C-:") #'mastodon-tl--followed-tags-timeline)
(define-key map (kbd "A") #'mastodon-profile--get-toot-author)
(define-key map (kbd "F") #'mastodon-tl--get-federated-timeline)
(define-key map (kbd "H") #'mastodon-tl--get-home-timeline)
@@ -273,15 +275,18 @@ If REPLY-JSON is the json of the toot being replied to."
(mastodon-toot--compose-buffer user reply-to-id reply-json))
;;;###autoload
-(defun mastodon-notifications-get (&optional type buffer-name)
+(defun mastodon-notifications-get (&optional type buffer-name force)
"Display NOTIFICATIONS in buffer.
Optionally only print notifications of type TYPE, a string.
-BUFFER-NAME is added to \"*mastodon-\" to create the buffer name."
+BUFFER-NAME is added to \"*mastodon-\" to create the buffer name.
+FORCE means do not try to update an existing buffer, but fetch
+from the server and load anew."
(interactive)
(let ((buffer (if buffer-name
(concat "*mastodon-" buffer-name "*")
"*mastodon-notifications*")))
- (if (get-buffer buffer)
+ (if (and (not force)
+ (get-buffer buffer))
(progn (switch-to-buffer buffer)
(mastodon-tl--update))
(message "Loading your notifications...")