aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-tl.el
diff options
context:
space:
mode:
authormousebot <mousebot@riseup.net>2022-02-15 17:06:03 +0100
committermousebot <mousebot@riseup.net>2022-02-15 19:38:19 +0100
commit7058db5848987df4c089bd0c0e34813f830d372c (patch)
tree19f167e86a402eaccc8d2f9752a9a0a9f90f8f47 /lisp/mastodon-tl.el
parentb2302027969ec305969c4024296b05f50e4f1846 (diff)
add generic goto-next/prev-item funs for filters/foll reqs
fix remnant call to goto-next-filter
Diffstat (limited to 'lisp/mastodon-tl.el')
-rw-r--r--lisp/mastodon-tl.el14
1 files changed, 7 insertions, 7 deletions
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index deaa196..34b2881 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -174,8 +174,8 @@ types of mastodon links and not just shr.el-generated ones.")
(let ((map (make-sparse-keymap)))
(define-key map (kbd "d") 'mastodon-tl--delete-filter)
(define-key map (kbd "c") 'mastodon-tl--create-filter)
- (define-key map (kbd "n") 'mastodon-tl--goto-next-filter)
- (define-key map (kbd "p") 'mastodon-tl--goto-prev-filter)
+ (define-key map (kbd "n") 'mastodon-tl--goto-next-item)
+ (define-key map (kbd "p") 'mastodon-tl--goto-prev-item)
(define-key map (kbd "TAB") 'mastodon-tl--goto-next-filter)
(define-key map (kbd "g") 'mastodon-tl--view-filters)
(define-key map (kbd "t") 'mastodon-toot)
@@ -1155,7 +1155,7 @@ Prompt for a context, must be a list containting at least one of \"home\",
"filters"
'mastodon-tl--insert-filters)
(use-local-map mastodon-tl--view-filters-keymap)
- (mastodon-tl--goto-next-filter))
+ (mastodon-tl--goto-next-item))
(defun mastodon-tl--insert-filters (json)
"Insert the user's current filters.
@@ -1210,14 +1210,14 @@ JSON is what is returned by by the server."
(mastodon-tl--view-filters)
(message "Filter for \"%s\" deleted!" phrase)))))))
-(defun mastodon-tl--goto-next-filter ()
- "Jump to next filter."
+(defun mastodon-tl--goto-next-item ()
+ "Jump to next item, e.g. filter or follow request."
(interactive)
(mastodon-tl--goto-toot-pos 'next-single-property-change
'next-line))
-(defun mastodon-tl--goto-prev-filter ()
- "Jump to previous filter."
+(defun mastodon-tl--goto-prev-item ()
+ "Jump to previous item, e.g. filter or follow request."
(interactive)
(mastodon-tl--goto-toot-pos 'previous-single-property-change
'previous-line))