[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/hyperdrive 6bd2ae7036 07/31: Chore: Begin format-spec's FO
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/hyperdrive 6bd2ae7036 07/31: Chore: Begin format-spec's FORMAT and SPECIFICATION on new lines |
Date: |
Fri, 1 Dec 2023 01:00:38 -0500 (EST) |
branch: elpa/hyperdrive
commit 6bd2ae70364534c4dbe7c77fd6699697b304df20
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Joseph Turner <joseph@ushin.org>
Chore: Begin format-spec's FORMAT and SPECIFICATION on new lines
Often this is enough to shorten long lines inside the arguments, and
tends to look much cleaner than having to split long lines within the
arguments or having to live with long lines.
---
hyperdrive-lib.el | 54 ++++++++++++++++++++++++++++--------------------------
1 file changed, 28 insertions(+), 26 deletions(-)
diff --git a/hyperdrive-lib.el b/hyperdrive-lib.el
index d72d41d629..72d27cfa9a 100644
--- a/hyperdrive-lib.el
+++ b/hyperdrive-lib.el
@@ -983,32 +983,34 @@ according to FORMATS, by default `hyperdrive-formats',
which see."
(format (alist-get format formats)
(propertize value 'face face))
"")))
- (format-spec format
- ;; TODO(deprecate-28): Use lambdas in each specifier.
- `((?H . ,(and (string-match-p (rx "%"
- ;; Flags
- (optional (1+ (or " " "0"
"-" "<" ">" "^" "_")))
- (0+ digit) ;; Width
- (0+ digit) ;; Precision
- "H")
- format)
- ;; HACK: Once using lambdas in this specifier,
- ;; remove the `string-match-p' check.
- (h//preferred-format hyperdrive)))
- (?P . ,(fmt 'petname petname 'h/petname))
- (?N . ,(fmt 'nickname nickname 'h/nickname))
- (?k . ,(fmt 'short-key public-key 'h/public-key))
- (?K . ,(fmt 'public-key public-key 'h/public-key))
- (?S . ,(fmt 'seed seed 'h/seed))
- (?D . ,(if (car domains)
- (format (alist-get 'domains formats)
- (string-join
- (mapcar (lambda (domain)
- (propertize domain
- 'face
'h/domain))
- domains)
- ","))
- "")))))))
+ (format-spec
+ format
+ ;; TODO(deprecate-28): Use lambdas in each specifier.
+ `((?H . ,(and (string-match-p (rx "%"
+ ;; Flags
+ (optional
+ (1+ (or " " "0" "-" "<" ">" "^"
"_")))
+ (0+ digit) ;; Width
+ (0+ digit) ;; Precision
+ "H")
+ format)
+ ;; HACK: Once using lambdas in this specifier,
+ ;; remove the `string-match-p' check.
+ (h//preferred-format hyperdrive)))
+ (?P . ,(fmt 'petname petname 'h/petname))
+ (?N . ,(fmt 'nickname nickname 'h/nickname))
+ (?k . ,(fmt 'short-key public-key 'h/public-key))
+ (?K . ,(fmt 'public-key public-key 'h/public-key))
+ (?S . ,(fmt 'seed seed 'h/seed))
+ (?D . ,(if (car domains)
+ (format (alist-get 'domains formats)
+ (string-join
+ (mapcar (lambda (domain)
+ (propertize domain
+ 'face 'h/domain))
+ domains)
+ ","))
+ "")))))))
(defun h//preferred-format (hyperdrive &optional format formats)
"Return HYPERDRIVE's formatted hostname, or nil.
- [nongnu] elpa/hyperdrive updated (ab3cc72ed2 -> cc4f2caddc), ELPA Syncer, 2023/12/01
- [nongnu] elpa/hyperdrive 2a72072183 02/31: Chore: Dissolve outer format into inner h//format, ELPA Syncer, 2023/12/01
- [nongnu] elpa/hyperdrive fac9e009c5 04/31: Chore: Use defun-style line-wrapping in cl-{macrolet, labels}, ELPA Syncer, 2023/12/01
- [nongnu] elpa/hyperdrive f79591ae3b 03/31: Chore: Use \n instead of newline character in format strings, ELPA Syncer, 2023/12/01
- [nongnu] elpa/hyperdrive c19696aaf6 01/31: Chore: Favor format over concat when constructing URLs, ELPA Syncer, 2023/12/01
- [nongnu] elpa/hyperdrive cc4e9c2507 06/31: Chore: Begin cl-labels' BINDINGS on a new line, ELPA Syncer, 2023/12/01
- [nongnu] elpa/hyperdrive 6bd2ae7036 07/31: Chore: Begin format-spec's FORMAT and SPECIFICATION on new lines,
ELPA Syncer <=
- [nongnu] elpa/hyperdrive 9c11d63570 25/31: Merge branch 'cleanup', ELPA Syncer, 2023/12/01
- [nongnu] elpa/hyperdrive 3c537e9b78 23/31: Chore: Minor whitespace cleanup, ELPA Syncer, 2023/12/01
- [nongnu] elpa/hyperdrive 1e8c2f0973 24/31: Chore: Use semantically correct contitionals, ELPA Syncer, 2023/12/01
- [nongnu] elpa/hyperdrive 6b9bc701e5 14/31: Chore: Shorten long lines in hd/dir-handler, ELPA Syncer, 2023/12/01
- [nongnu] elpa/hyperdrive 8131f9afbf 16/31: Chore: Shorten long lines in h/history--format-range-entry, ELPA Syncer, 2023/12/01
- [nongnu] elpa/hyperdrive 772cea7acf 15/31: Chore: Shorten long lines in h/diff-file-entries, ELPA Syncer, 2023/12/01
- [nongnu] elpa/hyperdrive cc4f2caddc 31/31: Change: (h/org--link) Return plist, not alist, ELPA Syncer, 2023/12/01
- [nongnu] elpa/hyperdrive 3b6d5eb3d3 28/31: Docs: Document hyperdrive-gateway-process-type, ELPA Syncer, 2023/12/01
- [nongnu] elpa/hyperdrive aaf7581df2 10/31: Chore: Spread nested conditions across multiple lines, ELPA Syncer, 2023/12/01
- [nongnu] elpa/hyperdrive 42bd06b68c 29/31: Fix: (h/{start, stop}) Docstrings, ELPA Syncer, 2023/12/01