From 8404082b696b730b3ee625474ece49f4011e02f2 Mon Sep 17 00:00:00 2001 From: marty hiatt Date: Sat, 14 Oct 2023 15:39:02 +0200 Subject: move scroll up cmd --- lisp/mastodon-tl.el | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el index 68147d9..62d3d67 100644 --- a/lisp/mastodon-tl.el +++ b/lisp/mastodon-tl.el @@ -311,6 +311,15 @@ than `switch-to-buffer'." ;;; NAV +(defun mastodon-tl--scroll-up-command () + "Call `scroll-up-command', loading more toots if necessary. +If we hit `point-max', call `mastodon-tl--more' then `scroll-up-command'." + (interactive) + (if (not (equal (point) (point-max))) + (scroll-up-command) + (mastodon-tl--more) + (scroll-up-command))) + (defun mastodon-tl--next-tab-item (&optional previous) "Move to the next interesting item. This could be the next toot, link, or image; whichever comes first. @@ -359,15 +368,6 @@ Optionally start from POS." (mastodon-tl--message-help-echo)) (funcall refresh)))) -(defun mastodon-tl--scroll-up-command () - "Call `scroll-up-command', loading more toots if necessary. -If we hit `point-max', call `mastodon-tl--more' then `scroll-up-command'." - (interactive) - (if (not (equal (point) (point-max))) - (scroll-up-command) - (mastodon-tl--more) - (scroll-up-command))) - (defun mastodon-tl--goto-next-toot () "Jump to next toot header." (interactive) -- cgit v1.2.3