[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/hyperdrive cfb434e0d0 34/49: Change: (-entry-version-range
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/hyperdrive cfb434e0d0 34/49: Change: (-entry-version-range) Accept keyed argument version |
Date: |
Wed, 20 Sep 2023 19:01:34 -0400 (EDT) |
branch: elpa/hyperdrive
commit cfb434e0d0c4eb4214f082da355a73c4ba992f7b
Author: Joseph Turner <joseph@ushin.org>
Commit: Joseph Turner <joseph@ushin.org>
Change: (-entry-version-range) Accept keyed argument version
---
hyperdrive-lib.el | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/hyperdrive-lib.el b/hyperdrive-lib.el
index 3f0b4f160c..936fa3bda8 100644
--- a/hyperdrive-lib.el
+++ b/hyperdrive-lib.el
@@ -323,11 +323,13 @@ Intended to be used as hash table key in
`hyperdrive-version-ranges'."
hyperdrive-version-ranges)
(persist-save 'hyperdrive-version-ranges))
-(defun hyperdrive-entry-version-range (entry)
+(cl-defun hyperdrive-entry-version-range (entry &key version)
"Return the version range containing ENTRY.
-Returns nil when ENTRY is not known to exist at its version."
+Returns nil when ENTRY is not known to exist at its version.
+
+With non-nil VERSION, use it instead of ENTRY's version."
(pcase-let* (((cl-struct hyperdrive-entry hyperdrive (version
entry-version)) entry)
- (version (or entry-version (hyperdrive-latest-version
hyperdrive)))
+ (version (or version entry-version (hyperdrive-latest-version
hyperdrive)))
(ranges (hyperdrive-entry-version-ranges entry)))
(when ranges
(cl-find-if (pcase-lambda (`(,range-start . ,(map (:range-end
range-end))))
- [nongnu] elpa/hyperdrive 2c8a76234d 20/49: Tidy: (-fill-version-ranges) Rename queue to fill-entry-queue, (continued)
- [nongnu] elpa/hyperdrive 2c8a76234d 20/49: Tidy: (-fill-version-ranges) Rename queue to fill-entry-queue, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive 830904c5cf 22/49: Comment: Remove TODO, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive 92a54cb93c 23/49: Fix: (hyperdrive-update-nonexistent-version-range) Docstring, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive 53b48e337e 27/49: Tidy: (hyperdrive-fill-version-ranges) Don't let-bind finally, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive 46490c55a2 26/49: Tidy: (-fill-version-ranges) Return nil from cl-dotimes for clarity, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive 758486bcdd 28/49: Change: Rename hyperdrive-queue-size to hyperdrive-queue-limit, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive a61c660ee6 29/49: Change: (-fill-version-ranges) Rename limit to total-requests-limit, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive 11cf863344 31/49: Comment: Add TODO, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive cb7d11be63 38/49: Tidy: Remove message statements, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive 381ffe4a59 42/49: Comment: Add TODO, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive cfb434e0d0 34/49: Change: (-entry-version-range) Accept keyed argument version,
ELPA Syncer <=
- [nongnu] elpa/hyperdrive bbbf1ff7e8 32/49: WIP:, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive 21fe5af744 43/49: Tidy: (hyperdrive-entry-version-range) Declare indent defun, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive 8363c8d2c7 44/49: Change: (-entry-version-ranges-no-gaps) Add cache-only option, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive bd3e8c90ef 48/49: Merge branch 'wip/history-fill-version-ranges-2', ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive b777ee2722 37/49: Change: (-fill-version-ranges) Rename labeled functions to -at, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive 76ef2b3552 19/49: Comment: Remove NOTE, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive a01287cb8b 21/49: Comment: Explanation, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive afaa1e675b 35/49: Change: (-entry-exists-p) Accept keyed argument version, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive c08046fa04 36/49: Change: (-fill-version-ranges) Pass versions instead of entries, ELPA Syncer, 2023/09/20
- [nongnu] elpa/hyperdrive 8d06964e22 47/49: Comment: Remove TODO, ELPA Syncer, 2023/09/20