From 4ab5a4bb8d603b189a99cc4a4eea4c42e8f97cf0 Mon Sep 17 00:00:00 2001 From: mousebot Date: Fri, 13 May 2022 13:24:06 +0200 Subject: tl--more: message before and after appending more toots. this user feedback prevents hitting 'n' running tl--more again before toots have been appended, when what the user wanted was only to naviagate to the next too after they'd been appended. running tl--more before toots are appended causes a bug of appending the same set of toots twice. --- lisp/mastodon-tl.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lisp') diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el index 3c96ecc..05eaa63 100644 --- a/lisp/mastodon-tl.el +++ b/lisp/mastodon-tl.el @@ -1454,6 +1454,7 @@ For use after e.g. deleting a toot." (defun mastodon-tl--more () "Append older toots to timeline, asynchronously." (interactive) + (message "Loading older toots...") (mastodon-tl--more-json-async (mastodon-tl--get-endpoint) (mastodon-tl--oldest-id) 'mastodon-tl--more* (current-buffer) (point))) @@ -1466,7 +1467,8 @@ When done, places point at POINT-BEFORE." (let ((inhibit-read-only t)) (goto-char (point-max)) (funcall (mastodon-tl--get-update-function) json) - (goto-char point-before))))) + (goto-char point-before) + (message "Loading older toots... done."))))) (defun mastodon-tl--find-property-range (property start-point &optional search-backwards) "Return `nil` if no such range is found. -- cgit v1.2.3