[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/hyperdrive d4bbc14823 05/20: Change: (h//history--format-r
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/hyperdrive d4bbc14823 05/20: Change: (h//history--format-range-entry) Faces for download state |
Date: |
Tue, 6 Aug 2024 01:00:34 -0400 (EDT) |
branch: elpa/hyperdrive
commit d4bbc14823717a04a24c7aabed950464cee8f49b
Author: Joseph Turner <joseph@ushin.org>
Commit: Joseph Turner <joseph@ushin.org>
Change: (h//history--format-range-entry) Faces for download state
---
hyperdrive-history.el | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/hyperdrive-history.el b/hyperdrive-history.el
index b6caaeeeff..0cb074ea79 100644
--- a/hyperdrive-history.el
+++ b/hyperdrive-history.el
@@ -61,7 +61,7 @@ value \\+`unknown', and whose cdr is a hyperdrive entry."
(pcase-let*
((`(,range . ,entry) range-entry)
(`(,range-start . ,(map :range-end :existsp)) range)
- ((cl-struct hyperdrive-entry size mtime) entry)
+ ((cl-struct hyperdrive-entry size mtime etc) entry)
(formatted-range (if (eq range-start range-end)
(format "%d" range-start)
(format "%d-%d" range-start range-end)))
@@ -72,7 +72,8 @@ value \\+`unknown', and whose cdr is a hyperdrive entry."
(size (and size (file-size-human-readable size)))
(timestamp (if mtime
(format-time-string h/timestamp-format mtime)
- (propertize " " 'display '(space :width
h/timestamp-width)))))
+ (propertize " " 'display '(space :width
h/timestamp-width))))
+ ((map block-length block-length-downloaded) etc))
;; FIXME: Use dynamic width of range column equal to 2N+1, where N
;; is the width of the hyperdrive's latest version
(format
@@ -91,7 +92,13 @@ value \\+`unknown', and whose cdr is a hyperdrive entry."
('unknown "Load history at version %s"))
range-start))
(propertize (or size "")
- 'face 'h/size)
+ 'face (and block-length-downloaded block-length
+ (pcase block-length-downloaded
+ (0 'h/size-not-downloaded)
+ ((pred (= block-length))
'h/size-fully-downloaded)
+ (_ 'h/size-partially-downloaded)))
+ 'help-echo (format "%s of %s blocks downloaded"
+ block-length-downloaded block-length))
(propertize (or timestamp "")
'face 'h/timestamp))))
- [nongnu] elpa/hyperdrive 1d719631f0 07/20: Fix: (he//fill) Don't set nil values, (continued)
- [nongnu] elpa/hyperdrive 1d719631f0 07/20: Fix: (he//fill) Don't set nil values, ELPA Syncer, 2024/08/06
- [nongnu] elpa/hyperdrive 14f0bd4aeb 08/20: Add: (he//invalidate) Move into separate function, ELPA Syncer, 2024/08/06
- [nongnu] elpa/hyperdrive af85d6a79b 01/20: Change: (h/entry) Note blocks, blocks-downloaded in etc slot, ELPA Syncer, 2024/08/06
- [nongnu] elpa/hyperdrive 8f44b09e9f 09/20: Change: (he//api-then) Fill entry metadata, ELPA Syncer, 2024/08/06
- [nongnu] elpa/hyperdrive b10d5da0e2 11/20: Change: (he//api-then) Invalidate entry after filling metadata, ELPA Syncer, 2024/08/06
- [nongnu] elpa/hyperdrive e9eb705e85 12/20: Meta: Bump hyper-gateway-ushin to 3.11.0: Block-Length{, -Downloaded}, ELPA Syncer, 2024/08/06
- [nongnu] elpa/hyperdrive 4768ce0640 18/20: Fix: (he//api-then) Only fill h/latest-version with latest version, ELPA Syncer, 2024/08/06
- [nongnu] elpa/hyperdrive d3c6d26dab 15/20: Docs: Add warning about forgetting files, ELPA Syncer, 2024/08/06
- [nongnu] elpa/hyperdrive 6cf8c74290 13/20: Comment: Remove TODO, ELPA Syncer, 2024/08/06
- [nongnu] elpa/hyperdrive 3fff771e5c 16/20: Meta: Update changelog, ELPA Syncer, 2024/08/06
- [nongnu] elpa/hyperdrive d4bbc14823 05/20: Change: (h//history--format-range-entry) Faces for download state,
ELPA Syncer <=
- [nongnu] elpa/hyperdrive a26e5e5b0a 14/20: Docs: Document meaning of directory view file size color, ELPA Syncer, 2024/08/06
- [nongnu] elpa/hyperdrive dbc2f2075c 19/20: Remove spurious NOTES.org file, ELPA Syncer, 2024/08/06
- [nongnu] elpa/hyperdrive e2803b2290 20/20: Docs: Typo, ELPA Syncer, 2024/08/06