[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/hyperdrive 8187adc021 07/26: Change: Distinguish URL-encod
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/hyperdrive 8187adc021 07/26: Change: Distinguish URL-encoding from text-encoding in docstrings |
Date: |
Fri, 30 Aug 2024 16:00:08 -0400 (EDT) |
branch: elpa/hyperdrive
commit 8187adc0215bb0c028563671bb609f4310819138
Author: Joseph Turner <joseph@ushin.org>
Commit: Joseph Turner <joseph@ushin.org>
Change: Distinguish URL-encoding from text-encoding in docstrings
---
hyperdrive-lib.el | 4 ++--
tests/org links.org | 4 ++--
tests/test-hyperdrive.el | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/hyperdrive-lib.el b/hyperdrive-lib.el
index d8eb5ec799..7d3657470e 100644
--- a/hyperdrive-lib.el
+++ b/hyperdrive-lib.el
@@ -64,8 +64,8 @@ Passes ARGS to `format-message'."
;; the name, we store the name as-is because, for one thing, the name
;; could theoretically contain a slash, and `file-name-nondirectory'
;; would return the wrong value in that case.
- (name nil :documentation "Decoded filename of entry (excluding leading
slash).")
- (path nil :documentation "Decoded path (including leading slash).")
+ (name nil :documentation "URL-decoded filename of entry without leading
slash.")
+ (path nil :documentation "URL-decoded path with leading slash.")
(headers nil :documentation "HTTP headers from request.")
(mtime nil :documentation "Last modified time.")
(size nil :documentation "Size of file.")
diff --git a/tests/org links.org b/tests/org links.org
index ce606a60e9..10d8bddb41 100644
--- a/tests/org links.org
+++ b/tests/org links.org
@@ -9,7 +9,7 @@
+ *Notes*
+ This file should be loaded from a hyperdrive in order to verify that these
links work correctly for an Org file loaded from a hyperdrive.
- + To decode these links with Org, use ~(org-element-context)~ with point on
the link. The resulting element/plist is used in function
~hyperdrive--org-open-at-point~.
+ + To URL-decode these links with Org, use ~(org-element-context)~ with point
on the link. The resulting element/plist is used in function
~hyperdrive--org-open-at-point~.
** Link types
@@ -54,7 +54,7 @@ Here are various link types which we want to test.
+ *Notes:*
- + Spaces and such are required to NOT be encoded :: Spaces in bracketed,
Org-style links must /not/ have spaces, etc. URL-encoded.
+ + Spaces and such are required to NOT be URL-encoded :: Spaces in bracketed,
Org-style links must /not/ have spaces, etc. URL-encoded.
+ We do this so that existing repositories of Org files can be mirrored to
a hyperdrive as-is and the relative links between them will still work.
**** Links without targets
diff --git a/tests/test-hyperdrive.el b/tests/test-hyperdrive.el
index 77e1d96c79..c055683f12 100644
--- a/tests/test-hyperdrive.el
+++ b/tests/test-hyperdrive.el
@@ -25,7 +25,7 @@
;; TODO: Consider having a "round-trip" test that makes a new
;; hyperdrive, writes files of various names, then reads the
;; hyperdrive back and ensures that the entries names and paths are
-;; correctly encoded/decoded.
+;; correctly URL-encoded/URL-decoded.
;;; Code:
- [nongnu] elpa/hyperdrive updated (56c201e497 -> c05904f585), ELPA Syncer, 2024/08/30
- [nongnu] elpa/hyperdrive e4fecbf3ea 05/26: Meta: Update changelog, ELPA Syncer, 2024/08/30
- [nongnu] elpa/hyperdrive be372fcd82 09/26: Fix: (h/write-buffer) More accurately calculate file size, ELPA Syncer, 2024/08/30
- [nongnu] elpa/hyperdrive 9dfcc25a0a 18/26: Add: (h/dir--yank-media-image-handler) String multibyte assertion, ELPA Syncer, 2024/08/30
- [nongnu] elpa/hyperdrive 23cb37756b 04/26: Fix: (hyperdrive-write-buffer) Encode buffer contents when writing, ELPA Syncer, 2024/08/30
- [nongnu] elpa/hyperdrive e103791cbc 20/26: Merge: Fix text encoding issues, ELPA Syncer, 2024/08/30
- [nongnu] elpa/hyperdrive 6a582d3cff 24/26: Docs: Note about non-UTF-8 encoded text, ELPA Syncer, 2024/08/30
- [nongnu] elpa/hyperdrive bccee74f7a 02/26: Meta: Update changelog, ELPA Syncer, 2024/08/30
- [nongnu] elpa/hyperdrive 740c21afdb 01/26: Change: (hyperdrive-write-buffer) Don't allocate unnecessary string, ELPA Syncer, 2024/08/30
- [nongnu] elpa/hyperdrive 8187adc021 07/26: Change: Distinguish URL-encoding from text-encoding in docstrings,
ELPA Syncer <=
- [nongnu] elpa/hyperdrive 7a1d35cfb4 10/26: Fix: (h/upload-file) Calculate file size, ELPA Syncer, 2024/08/30
- [nongnu] elpa/hyperdrive 7db0f02d6e 08/26: Fix: (he//api-then) Decode response bodies, ELPA Syncer, 2024/08/30
- [nongnu] elpa/hyperdrive c4fe98415b 13/26: Meta: Acknowledge Eli Zaretskii, ELPA Syncer, 2024/08/30
- [nongnu] elpa/hyperdrive 0ee751c591 14/26: Fix: (h/write-buffer) Fix charset in entry type, ELPA Syncer, 2024/08/30
- [nongnu] elpa/hyperdrive 4ef6496965 11/26: Fix: (h/dir--yank-media-image-handler) Calculate file size, ELPA Syncer, 2024/08/30
- [nongnu] elpa/hyperdrive 6874248ed5 16/26: Fix: (hyperdrive-write-buffer) Clean up encoded buffer, ELPA Syncer, 2024/08/30
- [nongnu] elpa/hyperdrive 0043faa8c7 17/26: Fix: (hyperdrive-write-buffer) Get file size from encoded buffer, ELPA Syncer, 2024/08/30
- [nongnu] elpa/hyperdrive 0702f40645 19/26: Comment: Add TODO, ELPA Syncer, 2024/08/30
- [nongnu] elpa/hyperdrive ab77599b03 23/26: Tidy: (CHANGELOG), ELPA Syncer, 2024/08/30
- [nongnu] elpa/hyperdrive 417c43a429 21/26: Change: (h//gateway-stop-default) Make longer timeout, ELPA Syncer, 2024/08/30