[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/hyperdrive 4f297bfb6c 007/123: Change: (hyperdrive--format
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/hyperdrive 4f297bfb6c 007/123: Change: (hyperdrive--format-host) Allow FORMAT to be an atom |
Date: |
Fri, 6 Oct 2023 01:00:56 -0400 (EDT) |
branch: elpa/hyperdrive
commit 4f297bfb6ca907767d79f9b0fdfdf8c4b2a12464
Author: Adam Porter <adam@alphapapa.net>
Commit: Joseph Turner <joseph@ushin.org>
Change: (hyperdrive--format-host) Allow FORMAT to be an atom
---
hyperdrive-lib.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/hyperdrive-lib.el b/hyperdrive-lib.el
index cb90867ba9..d5b5092b66 100644
--- a/hyperdrive-lib.el
+++ b/hyperdrive-lib.el
@@ -990,11 +990,11 @@ Path and target fragment are URI-encoded."
(cl-defun hyperdrive--format-host (hyperdrive &key format with-label
(with-faces t))
"Return HYPERDRIVE's formatted hostname, or nil.
-FORMAT should be a list of symbols; see
+FORMAT should be one or a list of symbols; see
`hyperdrive-default-host-format' 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."
+label for the kind of format used (e.g. \"petname:\"). When
+WITH-FACES is nil, don't add face text properties."
(pcase-let* (((cl-struct hyperdrive petname public-key domains seed
(metadata (map name)))
hyperdrive))
@@ -1004,7 +1004,7 @@ When WITH-FACES is nil, don't add face text properties."
(if with-faces
(propertize string 'face face)
string))))
- (cl-loop for f in format
+ (cl-loop for f in (ensure-list format)
when (pcase f
((and 'petname (guard petname))
(fmt petname "petname:" 'hyperdrive-petname))
- [nongnu] elpa/hyperdrive updated (653bbf6706 -> b5dc019164), ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive 0e7e2cead8 003/123: WIP, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive 8cfee60894 009/123: Tidy, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive 3283761169 001/123: WIP, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive 3fb21b9fce 010/123: Tidy, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive 4f297bfb6c 007/123: Change: (hyperdrive--format-host) Allow FORMAT to be an atom,
ELPA Syncer <=
- [nongnu] elpa/hyperdrive 1c8a1b2446 021/123: WIP, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive 4146ecd501 039/123: Change: (hyperdrive-set-nickname) Don't say anything in callback, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive 8d40cdba48 036/123: WIP: hyperdrive-menu-up, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive 083056ca9b 029/123: Fix: (hyperdrive--context-entry) With prefix arg, always read entry, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive b1e51aa444 049/123: Comment: Add TODO, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive 46c56c7500 042/123: Tidy: Move require statements to top, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive 4e2280dad6 002/123: WIP, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive cebe60f4f3 004/123: Rename command, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive 017556c164 012/123: WIP, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive a0bf2d496b 013/123: WIP/Tidy, ELPA Syncer, 2023/10/06