[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/hyperdrive 948b2f181f 13/49: Tidy: (hyperdrive-fill-versio
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/hyperdrive 948b2f181f 13/49: Tidy: (hyperdrive-fill-version-ranges) Reduce nesting |
Date: |
Wed, 20 Sep 2023 19:01:32 -0400 (EDT) |
branch: elpa/hyperdrive
commit 948b2f181fd924e23b9f35ce917d1d85fe95f58e
Author: Joseph Turner <joseph@ushin.org>
Commit: Joseph Turner <joseph@ushin.org>
Tidy: (hyperdrive-fill-version-ranges) Reduce nesting
---
hyperdrive-lib.el | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/hyperdrive-lib.el b/hyperdrive-lib.el
index 66a943b5cf..5ab024e1af 100644
--- a/hyperdrive-lib.el
+++ b/hyperdrive-lib.el
@@ -818,15 +818,15 @@ with no arguments."
:finally finally)))
(cl-labels ((fill-existent (entry limit)
;; For existent entries, send requests in series.
- (when (cl-plusp limit)
- ;; Don't use `hyperdrive-entry-previous' here, since it
makes a sync request
- (pcase-let ((`(,range-start . ,_plist)
(hyperdrive-entry-version-range entry)))
- (setf (hyperdrive-entry-version entry) (1- range-start))
- (when (eq 'unknown (hyperdrive-entry-exists-p entry))
- ;; Recurse backward through history.
- (fill-entry entry :limit limit)
- ;; Return non-nil to indicate that a request was made.
- t))))
+ (setf (hyperdrive-entry-version entry)
+ ;; Fill end of previous range.
+ (1- (car (hyperdrive-entry-version-range entry))))
+ (when (and (cl-plusp limit)
+ (eq 'unknown (hyperdrive-entry-exists-p entry)))
+ ;; Recurse backward through history.
+ (fill-entry entry :limit limit)
+ ;; Return non-nil to indicate that a request was made.
+ t))
(fill-nonexistent (entry limit)
(let ((nonexistent-queue (make-plz-queue
:limit hyperdrive-queue-size
- [nongnu] elpa/hyperdrive updated (081513c89a -> 9e34eb28d1), ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive c97589207e 04/49: Change: (-history-mode-map) Bind + to -history-fill-version-ranges, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive 6021d99388 05/49: Docs: Document keybinding for hyperdrive-history-fill-version-ranges, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive 049b18656c 10/49: WIP: (hyperdrive-fill-version-ranges) Ensure FINALLY runs, etc., ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive d48a0109e0 11/49: WIP: Fixes, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive 948b2f181f 13/49: Tidy: (hyperdrive-fill-version-ranges) Reduce nesting,
ELPA Syncer <=
- [nongnu] elpa/hyperdrive 41081584ef 14/49: Tidy: (-fill-version-ranges) Call finally, not plz-queue-finally, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive 1cfdeaea1f 15/49: Change: (hyperdrive-fill-version-ranges) let-bind limit at the top, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive 15a9b0ff56 17/49: Tidy: Remove message statements, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive 8f9887407f 18/49: Tidy: (hyperdrive-fill-version-ranges) Use ignore, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive 3ea4e934db 24/49: Change: (hyperdrive-open) Use hyperdrive-message, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive 395d1dd5e0 25/49: Fix: (-fill-version-ranges) Stop filling when loop returns early, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive 8dc8f09a82 30/49: Comment: Add TODO, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive 77186465d7 33/49: WIP: Fixes, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive 1844b57f51 39/49: Fix: (-update-nonexistent-version-range) Add default finally, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive 44413406c9 40/49: Change: (-history-fill-version-ranges) Add loading indicator, ELPA Syncer, 2023/09/20