[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/hyperdrive 9ffaac3025 1/4: Change: Bump persist.el version
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/hyperdrive 9ffaac3025 1/4: Change: Bump persist.el version, remove hash table bug workaround |
Date: |
Sat, 20 Jan 2024 01:00:07 -0500 (EST) |
branch: elpa/hyperdrive
commit 9ffaac302549df2af70af4d9f096610adeedc2da
Author: Joseph Turner <joseph@ushin.org>
Commit: Joseph Turner <joseph@ushin.org>
Change: Bump persist.el version, remove hash table bug workaround
---
CHANGELOG.org | 4 +++-
hyperdrive-vars.el | 14 ++------------
hyperdrive.el | 2 +-
3 files changed, 6 insertions(+), 14 deletions(-)
diff --git a/CHANGELOG.org b/CHANGELOG.org
index 294a2b78ec..22a3db0d65 100644
--- a/CHANGELOG.org
+++ b/CHANGELOG.org
@@ -6,7 +6,9 @@ This project adheres to
[[https://semver.org/spec/v2.0.0.html][Semantic Versioni
* 0.4-pre
-Nothing yet...
+** Internal
+
+- Bumped ~persist.el~ dependency to version ~0.6~
* 0.3 [2023-12-02 Sat]
diff --git a/hyperdrive-vars.el b/hyperdrive-vars.el
index 74d2977e30..a3c4db5071 100644
--- a/hyperdrive-vars.el
+++ b/hyperdrive-vars.el
@@ -346,26 +346,16 @@ Capture group matches version number.")
;;;;; Persisted variables
-;; NOTE: `persist' currently does not work correctly with hash tables
-;; if the default value of a persisted variable is one; it considers
-;; them equal at save time and so deletes the persisted variable file.
-;; To work around this, we set the default value to nil and initialize
-;; it to a hash table "manually".
-;; TODO: See persist.el patch:
<https://debbugs.gnu.org/cgi/bugreport.cgi?bug=63513>
-(persist-defvar h/hyperdrives nil
+(persist-defvar h/hyperdrives (make-hash-table :test #'equal)
"List of known hyperdrives."
h/persist-location)
-(unless h/hyperdrives
- (setf h/hyperdrives (make-hash-table :test #'equal)))
-(persist-defvar h/version-ranges nil
+(persist-defvar h/version-ranges (make-hash-table :test #'equal)
"Hash table of hyperdrive version ranges.
Keys are generated by `hyperdrive--entry-version-range-key', and
values are alists mapping version range starts to plists with
`:existsp' and `:range-end' keys."
h/persist-location)
-(unless h/version-ranges
- (setf h/version-ranges (make-hash-table :test #'equal)))
;; TODO: Flesh out the persist hook.
;; (defvar hyperdrive-persist-hook nil
diff --git a/hyperdrive.el b/hyperdrive.el
index ca2d102480..26fa2990f0 100644
--- a/hyperdrive.el
+++ b/hyperdrive.el
@@ -7,7 +7,7 @@
;; Maintainer: Joseph Turner <~ushin/ushin@lists.sr.ht>
;; Created: 2022
;; Version: 0.4-pre
-;; Package-Requires: ((emacs "28.1") (map "3.0") (compat "29.1.4.0") (plz
"0.7") (persist "0.5") (taxy-magit-section "0.12.1") (transient "0.5.2"))
+;; Package-Requires: ((emacs "28.1") (map "3.0") (compat "29.1.4.0") (plz
"0.7") (persist "0.6") (taxy-magit-section "0.12.1") (transient "0.5.2"))
;; Homepage: https://git.sr.ht/~ushin/hyperdrive.el
;; This program is free software; you can redistribute it and/or