emacs-elpa-diffs
[Top][All Lists]
Advanced

[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:
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]