[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/hyperdrive 732f9bde0b 03/31: Add: (-mirror-files-and-urls)
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/hyperdrive 732f9bde0b 03/31: Add: (-mirror-files-and-urls) Local var containing files and urls |
Date: |
Fri, 3 Nov 2023 22:00:46 -0400 (EDT) |
branch: elpa/hyperdrive
commit 732f9bde0bd5af7fc6e52882490f407a17596144
Author: Joseph Turner <joseph@ushin.org>
Commit: Adam Porter <adam@alphapapa.net>
Add: (-mirror-files-and-urls) Local var containing files and urls
---
hyperdrive-mirror.el | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/hyperdrive-mirror.el b/hyperdrive-mirror.el
index 2ab3afc6f3..d250174702 100644
--- a/hyperdrive-mirror.el
+++ b/hyperdrive-mirror.el
@@ -39,6 +39,10 @@
"Parent entry for `hyperdrive-mirror-mode' buffer.")
(put 'hyperdrive-mirror-parent-entry 'permanent-local t)
+(defvar-local hyperdrive-mirror-files-and-urls nil
+ "List of mappings between filenames and the URLs into which files
+will be uploaded in `hyperdrive-mirror-mode'.")
+
(defvar-local hyperdrive-mirror-query nil
"List of arguments passed to `hyperdrive-mirror', excluding
\\+`no-confirm'.")
@@ -91,8 +95,8 @@
(declare-function hyperdrive-upload-file "hyperdrive")
(defun hyperdrive--mirror (files-and-urls parent-entry)
"Upload each file to its corresponding URL in FILES-AND-URLs.
-FILES-AND-URLS is structured like `tabulated-list-entries'. After
-uploading files, open PARENT-ENTRY."
+FILES-AND-URLS is structured like `hyperdrive-mirror-files-and-urls'.
+After uploading files, open PARENT-ENTRY."
(let* ((count 0)
(upload-files-and-urls (cl-remove-if-not (pcase-lambda (`(,_id
[,_file ,status ,_url]))
(string-match-p (rx (or
"not in" "newer than")) status))
@@ -243,6 +247,7 @@ Callback for queue finalizer in `hyperdrive-mirror'."
(section-ident (when (magit-current-section)
(magit-section-ident (magit-current-section))))
(window-start 0) (window-point 0))
+ (setq-local hyperdrive-mirror-files-and-urls files-and-urls)
(when-let ((window (get-buffer-window (current-buffer))))
(setf window-point (window-point window)
window-start (window-start window)))
@@ -325,8 +330,8 @@ KEYS should be a list of grouping keys, as in
;; command twice in a mirror buffer, it would start another queue to
;; upload the same files, which would unnecessarily increment the
;; hyperdrive version by potentially a lot).
- (if (and tabulated-list-entries hyperdrive-mirror-parent-entry)
- (hyperdrive--mirror tabulated-list-entries
hyperdrive-mirror-parent-entry)
+ (if (and hyperdrive-mirror-files-and-urls hyperdrive-mirror-parent-entry)
+ (hyperdrive--mirror hyperdrive-mirror-files-and-urls
hyperdrive-mirror-parent-entry)
(hyperdrive-user-error "Missing information about files to upload. Are
you in a \"*hyperdrive-mirror*\" buffer?")))
(defun hyperdrive-mirror--cache-visibility ()
- [nongnu] elpa/hyperdrive updated (ae754870a2 -> de24c7fffe), ELPA Syncer, 2023/11/03
- [nongnu] elpa/hyperdrive 732f9bde0b 03/31: Add: (-mirror-files-and-urls) Local var containing files and urls,
ELPA Syncer <=
- [nongnu] elpa/hyperdrive 967d0e2f96 02/31: Change: (hyperdrive-mirror--insert-taxy) Indentation, ELPA Syncer, 2023/11/03
- [nongnu] elpa/hyperdrive db6d7995f2 09/31: Change: (hyperdrive-mirror) Change column names, ELPA Syncer, 2023/11/03
- [nongnu] elpa/hyperdrive f0db6b58c7 11/31: Change: (hyperdrive-mirror--insert-taxy) Abbreviate display filename, ELPA Syncer, 2023/11/03
- [nongnu] elpa/hyperdrive a21138bc87 13/31: Docs: Document that only new and newer files are uploaded w/ mirror, ELPA Syncer, 2023/11/03
- [nongnu] elpa/hyperdrive e9e4630f54 14/31: Meta: Update CHANGELOG, ELPA Syncer, 2023/11/03
- [nongnu] elpa/hyperdrive 1120cb6e29 16/31: Change: (hyperdrive-mirror) Show uploadable/non-uploadable separately, ELPA Syncer, 2023/11/03
- [nongnu] elpa/hyperdrive 6321fdc675 01/31: Change: (hyperdrive-mirror) Use taxy-magit-section, ELPA Syncer, 2023/11/03
- [nongnu] elpa/hyperdrive f201aedb5e 08/31: Change: (hyperdrive-mirror-files-and-urls) Use symbols, not strings, ELPA Syncer, 2023/11/03
- [nongnu] elpa/hyperdrive 471517e574 17/31: Add names, ELPA Syncer, 2023/11/03
- [nongnu] elpa/hyperdrive e9614f01c3 22/31: Tidy: Remove commented code, ELPA Syncer, 2023/11/03