[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/hyperdrive 8131f9afbf 16/31: Chore: Shorten long lines in
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/hyperdrive 8131f9afbf 16/31: Chore: Shorten long lines in h/history--format-range-entry |
Date: |
Fri, 1 Dec 2023 01:00:39 -0500 (EST) |
branch: elpa/hyperdrive
commit 8131f9afbf175b7aceef46fd0cbc445fbcc461b2
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Joseph Turner <joseph@ushin.org>
Chore: Shorten long lines in h/history--format-range-entry
By aggressively indenting the arguments to `pcase-let*' and `format',
we reduce the risk of long-lines, without having to add odd looking
line-breaks in random places within these forms.
---
hyperdrive-history.el | 37 +++++++++++++++++++------------------
1 file changed, 19 insertions(+), 18 deletions(-)
diff --git a/hyperdrive-history.el b/hyperdrive-history.el
index 37db1206c8..2ceac01bd3 100644
--- a/hyperdrive-history.el
+++ b/hyperdrive-history.el
@@ -68,24 +68,25 @@ value \\+`unknown', and whose cdr is a hyperdrive entry."
(propertize " " 'display '(space :width
h/timestamp-width)))))
;; FIXME: Use dynamic width of range column equal to 2N+1, where N
;; is the width of the hyperdrive's latest version
- (format "%7s %19s %6s %s"
- (propertize exists-marker
- 'face (pcase-exhaustive existsp
- ('t 'h/history-existent)
- ('nil 'h/history-nonexistent)
- ('unknown 'h/history-unknown)))
- (propertize formatted-range
- 'face 'h/history-range
- 'mouse-face 'highlight
- 'help-echo (format (pcase-exhaustive existsp
- ('t "Open version %s")
- ('nil "Nonexistent at version %s")
- ('unknown "Load history at
version %s"))
- range-start))
- (propertize (or size "")
- 'face 'h/size)
- (propertize (or timestamp "")
- 'face 'h/timestamp))))
+ (format
+ "%7s %19s %6s %s"
+ (propertize exists-marker
+ 'face (pcase-exhaustive existsp
+ ('t 'h/history-existent)
+ ('nil 'h/history-nonexistent)
+ ('unknown 'h/history-unknown)))
+ (propertize formatted-range
+ 'face 'h/history-range
+ 'mouse-face 'highlight
+ 'help-echo (format (pcase-exhaustive existsp
+ ('t "Open version %s")
+ ('nil "Nonexistent at version %s")
+ ('unknown "Load history at version %s"))
+ range-start))
+ (propertize (or size "")
+ 'face 'h/size)
+ (propertize (or timestamp "")
+ 'face 'h/timestamp))))
(defun h/history-range-entry-at-point ()
"Return range-entry at version at point.
- [nongnu] elpa/hyperdrive 2a72072183 02/31: Chore: Dissolve outer format into inner h//format, (continued)
- [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, 2023/12/01
- [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 <=
- [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
- [nongnu] elpa/hyperdrive 43ddaf6cd4 30/31: Tidy: (h/gateway-process-type) Improve docstring, ELPA Syncer, 2023/12/01
- [nongnu] elpa/hyperdrive 063e94607c 20/31: Chore: Begin multi-line values of defvar on a new line, ELPA Syncer, 2023/12/01
- [nongnu] elpa/hyperdrive 7db9cc3785 21/31: Chore: Shorten assorted long lines, ELPA Syncer, 2023/12/01
- [nongnu] elpa/hyperdrive 3edc7cc2ea 05/31: Chore: Begin pcase-let*'s BINDINGS on a new line, ELPA Syncer, 2023/12/01
- [nongnu] elpa/hyperdrive c4c9471144 09/31: Chore: Set one variable per setf and setq-local form, ELPA Syncer, 2023/12/01