[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/hyperdrive 0712c733c5 04/10: Change: (h/by-slot) Use cl-st
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/hyperdrive 0712c733c5 04/10: Change: (h/by-slot) Use cl-struct-slot-value |
Date: |
Sat, 2 Dec 2023 22:00:07 -0500 (EST) |
branch: elpa/hyperdrive
commit 0712c733c5e8f6a137ae07dfa3df02ab3452b4a4
Author: Adam Porter <adam@alphapapa.net>
Commit: Adam Porter <adam@alphapapa.net>
Change: (h/by-slot) Use cl-struct-slot-value
---
hyperdrive-lib.el | 16 ++++++----------
1 file changed, 6 insertions(+), 10 deletions(-)
diff --git a/hyperdrive-lib.el b/hyperdrive-lib.el
index af57d317da..3064e7881a 100644
--- a/hyperdrive-lib.el
+++ b/hyperdrive-lib.el
@@ -1271,16 +1271,12 @@ Otherwise, return nil. SLOT may be one of
- seed
- petname
- public-key"
- (let ((accessor-function (pcase-exhaustive slot
- ('seed #'h/seed)
- ('petname #'h/petname)
- ('public-key #'h/public-key))))
- (catch 'get-first-hash
- (maphash (lambda (_key val)
- (when (equal (funcall accessor-function val) value)
- (throw 'get-first-hash val)))
- h/hyperdrives)
- nil)))
+ (catch 'get-first-hash
+ (maphash (lambda (_key val)
+ (when (equal (cl-struct-slot-value 'hyperdrive slot val) value)
+ (throw 'get-first-hash val)))
+ h/hyperdrives)
+ nil))
;;;; Handlers
- [nongnu] elpa/hyperdrive updated (eb60592117 -> a5eda010db), ELPA Syncer, 2023/12/02
- [nongnu] elpa/hyperdrive 145a790d2d 02/10: Change/Fix: (h/mirror) Refactor to make NO-CONFIRM work, ELPA Syncer, 2023/12/02
- [nongnu] elpa/hyperdrive 5e160f24d7 05/10: Meta: Update changelog re: hyperdrive-mirror fix, ELPA Syncer, 2023/12/02
- [nongnu] elpa/hyperdrive 8a08ad4300 07/10: Docs: Fix default value of hyperdrive-fill-version-ranges-limit, ELPA Syncer, 2023/12/02
- [nongnu] elpa/hyperdrive 8ea79f9aee 09/10: Docs: Comment out package-vc-installation instructions, ELPA Syncer, 2023/12/02
- [nongnu] elpa/hyperdrive a5eda010db 10/10: Docs: Move hyper-gateway usage instructions, ELPA Syncer, 2023/12/02
- [nongnu] elpa/hyperdrive 6cbeedc7ef 01/10: Comment: Add TODO, ELPA Syncer, 2023/12/02
- [nongnu] elpa/hyperdrive 0712c733c5 04/10: Change: (h/by-slot) Use cl-struct-slot-value,
ELPA Syncer <=
- [nongnu] elpa/hyperdrive e2962bf55d 03/10: Merge branch 'fix-mirror-no-confirm', ELPA Syncer, 2023/12/02
- [nongnu] elpa/hyperdrive a73edf837e 06/10: Docs: Improve Versioning section, ELPA Syncer, 2023/12/02
- [nongnu] elpa/hyperdrive 69b5edf851 08/10: Docs: Correct Partial Version Data section, ELPA Syncer, 2023/12/02