[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/mastodon b01797b702 37/47: work on tl--more*: msg if no mo
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/mastodon b01797b702 37/47: work on tl--more*: msg if no more results, or if load full thread |
Date: |
Fri, 13 Oct 2023 19:00:57 -0400 (EDT) |
branch: elpa/mastodon
commit b01797b70227c01d63a593abda281fae720a56c9
Author: marty hiatt <martianhiatus [a t] riseup [d o t] net>
Commit: marty hiatt <martianhiatus [a t] riseup [d o t] net>
work on tl--more*: msg if no more results, or if load full thread
---
lisp/mastodon-tl.el | 26 +++++++++++++++-----------
1 file changed, 15 insertions(+), 11 deletions(-)
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index 9209026ff1..7814a696e4 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -2403,17 +2403,21 @@ HEADERS is the http headers returned in the response,
if any."
;; if thread view, call --thread with parent ID
(progn (goto-char (point-min))
(mastodon-tl--goto-next-toot)
- (funcall (mastodon-tl--update-function)))
- (funcall (mastodon-tl--update-function) json))
- (goto-char point-before)
- ;; update buffer spec to new link-header:
- ;; (other values should just remain as they were)
- (when headers
- (mastodon-tl--set-buffer-spec (mastodon-tl--buffer-name)
- (mastodon-tl--endpoint)
- (mastodon-tl--update-function)
- link-header))
- (message "Loading older toots... done.")))))
+ (funcall (mastodon-tl--update-function))
+ (goto-char point-before)
+ (message "Loaded full thread."))
+ (if (not json)
+ (message "No more results.")
+ (funcall (mastodon-tl--update-function) json)
+ (goto-char point-before)
+ ;; update buffer spec to new link-header:
+ ;; (other values should just remain as they were)
+ (when headers
+ (mastodon-tl--set-buffer-spec (mastodon-tl--buffer-name)
+ (mastodon-tl--endpoint)
+ (mastodon-tl--update-function)
+ link-header))
+ (message "Loading older toots... done.")))))))
(defun mastodon-tl--find-property-range (property start-point
&optional search-backwards)
- [nongnu] elpa/mastodon e0b2f1a5eb 18/47: mastodon-http--api-search fun (search uses api v2), (continued)
- [nongnu] elpa/mastodon e0b2f1a5eb 18/47: mastodon-http--api-search fun (search uses api v2), ELPA Syncer, 2023/10/13
- [nongnu] elpa/mastodon beb877d523 19/47: add basic limit/offset search params, ELPA Syncer, 2023/10/13
- [nongnu] elpa/mastodon c67d1f80f6 24/47: unfuck non-search pagination fucked by search pagination, ELPA Syncer, 2023/10/13
- [nongnu] elpa/mastodon b75760867b 32/47: docstrings autoloads, ELPA Syncer, 2023/10/13
- [nongnu] elpa/mastodon 51352ce53d 27/47: set buffer spec explicitly for acct search, ELPA Syncer, 2023/10/13
- [nongnu] elpa/mastodon ff05cd29dd 29/47: header-line-format no comment face, ELPA Syncer, 2023/10/13
- [nongnu] elpa/mastodon 2cb0a5012a 47/47: bump, ELPA Syncer, 2023/10/13
- [nongnu] elpa/mastodon fedba9ed92 38/47: autoload, ELPA Syncer, 2023/10/13
- [nongnu] elpa/mastodon a623a6dc66 36/47: fix reporting rules tests, ELPA Syncer, 2023/10/13
- [nongnu] elpa/mastodon 90bcebbd17 40/47: tl autoload for search pagination, ELPA Syncer, 2023/10/13
- [nongnu] elpa/mastodon b01797b702 37/47: work on tl--more*: msg if no more results, or if load full thread,
ELPA Syncer <=
- [nongnu] elpa/mastodon b591685760 44/47: update: thread-id only if thread, ELPA Syncer, 2023/10/13
- [nongnu] elpa/mastodon b78e91483a 46/47: fix search statuses from profile, ELPA Syncer, 2023/10/13