[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/hyperdrive 807b1fd0df 051/102: Change: (hyperdrive--format
|
From: |
ELPA Syncer |
|
Subject: |
[nongnu] elpa/hyperdrive 807b1fd0df 051/102: Change: (hyperdrive--format-host) Remove :with-faces keyword argument |
|
Date: |
Wed, 29 Nov 2023 04:00:52 -0500 (EST) |
branch: elpa/hyperdrive
commit 807b1fd0df95129fe1a34223ab7df7f8fdbff421
Author: Joseph Turner <joseph@ushin.org>
Commit: Joseph Turner <joseph@ushin.org>
Change: (hyperdrive--format-host) Remove :with-faces keyword argument
---
hyperdrive-lib.el | 25 ++++++++++---------------
1 file changed, 10 insertions(+), 15 deletions(-)
diff --git a/hyperdrive-lib.el b/hyperdrive-lib.el
index 52aa061380..185790b721 100644
--- a/hyperdrive-lib.el
+++ b/hyperdrive-lib.el
@@ -305,8 +305,9 @@ before making the entry struct."
Intended to be used as hash table key in `hyperdrive-version-ranges'."
(pcase-let* (((cl-struct hyperdrive-entry hyperdrive path) entry)
(version-less (hyperdrive-entry-create :hyperdrive hyperdrive
:path path)))
- (hyperdrive--format-entry-url version-less :host-format '(public-key)
:with-protocol nil
- :with-help-echo nil :with-target nil
:with-faces nil)))
+ (substring-no-properties
+ (hyperdrive--format-entry-url version-less :host-format '(public-key)
:with-protocol nil
+ :with-help-echo nil :with-target nil))))
;; TODO: Add tests for version range functions
(defun hyperdrive-entry-version-ranges (entry)
@@ -919,8 +920,7 @@ Call ELSE if request fails."
(cl-defun hyperdrive--format-entry-url
(entry &key (host-format '(public-key domain))
- (with-path t) (with-protocol t) (with-help-echo t)
- (with-target t) (with-faces t))
+ (with-path t) (with-protocol t) (with-help-echo t) (with-target t))
"Return ENTRY's URL.
Returns URL formatted like:
@@ -929,8 +929,7 @@ Returns URL formatted like:
HOST-FORMAT is passed to `hyperdrive--format-host', which see.
If WITH-PROTOCOL, \"hyper://\" is prepended. If WITH-HELP-ECHO,
propertize string with `help-echo' property showing the entry's
-full URL. When WITH-FACES is nil, don't add face text
-properties. If WITH-TARGET, append the ENTRY's target, stored in
+full URL. If WITH-TARGET, append the ENTRY's target, stored in
its :etc slot. If WITH-PATH, include the path portion. When
ENTRY has non-nil `version' slot, include version number in URL.
@@ -949,7 +948,7 @@ Path and target fragment are URI-encoded."
(host (when host-format
;; FIXME: Update docstring to say that host-format can
be nil to omit it.
(hyperdrive--format-host (hyperdrive-entry-hyperdrive
entry)
- :format host-format
:with-faces with-faces)))
+ :format host-format)))
(version-part (and version (format "/$/version/%s" version)))
((map target) etc)
(target-part (when (and with-target target)
@@ -963,27 +962,23 @@ Path and target fragment are URI-encoded."
(propertize url
'help-echo (hyperdrive--format-entry-url
entry :with-protocol t :host-format
'(public-key domain)
- :with-path with-path :with-help-echo nil
:with-target with-target
- :with-faces with-faces))
+ :with-path with-path :with-help-echo nil
:with-target with-target))
url)))
(cl-defun hyperdrive--format-host
- (hyperdrive &key with-label (format hyperdrive-preferred-naming)
(with-faces t))
+ (hyperdrive &key with-label (format hyperdrive-preferred-naming))
"Return HYPERDRIVE's formatted hostname, or nil.
FORMAT should be one or a list of symbols, by default
`hyperdrive-preferred-naming', which see for choices. If the
specified FORMAT is not available, returns nil. If WITH-LABEL,
-prepend a label for the kind of format used (e.g. \"petname:\").
-When WITH-FACES is nil, don't add face text properties."
+prepend a label for the kind of format used (e.g. \"petname:\")."
(pcase-let* (((cl-struct hyperdrive petname public-key domains seed
(metadata (map name)))
hyperdrive))
(cl-flet ((fmt (string label face)
(concat (when with-label
label)
- (if with-faces
- (propertize string 'face face)
- string))))
+ (propertize string 'face face))))
(cl-loop for f in (ensure-list format)
when (pcase f
((and 'petname (guard petname))
- [nongnu] elpa/hyperdrive 4a91fe1ac9 010/102: Change: (-menu-hyperdrive) Place trivial lambdas on single lines, (continued)
- [nongnu] elpa/hyperdrive 4a91fe1ac9 010/102: Change: (-menu-hyperdrive) Place trivial lambdas on single lines, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive f5a90f3fb2 031/102: Fix: (hyperdrive-menu) Require hyperdrive, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive 4277b29b50 023/102: Comment: Remove TODO, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive 227a839bf7 058/102: Comment: Remove TODO, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive 2678c1d7ca 064/102: Change: Replace hyperdrive--org- prefix with hyperdrive-org--, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive 0b5102ac9c 036/102: Meta: Update CHANGELOG, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive d1b68b1a66 048/102: Add: (hyperdrive-entry-format-alist) Consolidate entry formats, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive cc0e3cdfdf 059/102: Tidy: Indentation, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive fa48b80132 060/102: Improve defcustom, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive 98761ce57f 007/102: Change: (-menu-hyperdrive) Move definitions of suffix descriptions, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive 807b1fd0df 051/102: Change: (hyperdrive--format-host) Remove :with-faces keyword argument,
ELPA Syncer <=
- [nongnu] elpa/hyperdrive d19558893e 035/102: Fix: Require 'rx, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive 22c95b82a4 068/102: Fix: Complete rename of org link functions, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive 5883d33fca 099/102: Meta: Update changelog, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive e944a86276 077/102: Docs: Say "file" not "entry", ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive 514d771d5b 070/102: Use shorthands he//, he/, h// and h/, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive ace50018fa 084/102: Tidy: Remove Imenu compiler warning workaround, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive c433a8ea07 085/102: Tidy: Indentation, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive 4144f5530d 090/102: Meta: Update changelog, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive 1b17526619 076/102: Docs: Improve wording of acknowledgment, ELPA Syncer, 2023/11/29
- [nongnu] elpa/hyperdrive 281d686f15 083/102: Chore: Remove 27.2 build script, ELPA Syncer, 2023/11/29