[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/telephone-line 0762bae37a 079/195: Corrected indentation
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/telephone-line 0762bae37a 079/195: Corrected indentation |
Date: |
Wed, 5 Jan 2022 02:59:28 -0500 (EST) |
branch: elpa/telephone-line
commit 0762bae37a457ca36674bf86afbc63aab143cc6c
Author: Daniel Bordak <dbordak@fastmail.fm>
Commit: Daniel Bordak <dbordak@fastmail.fm>
Corrected indentation
Probably shouldn't build around having nameless-mode
---
telephone-line-utils.el | 22 +++++++++++++---------
1 file changed, 13 insertions(+), 9 deletions(-)
diff --git a/telephone-line-utils.el b/telephone-line-utils.el
index 9f0b51f6eb..6bb63bc397 100644
--- a/telephone-line-utils.el
+++ b/telephone-line-utils.el
@@ -91,7 +91,7 @@ color1 and color2."
(mapcar (lambda (n)
(+ (* ratio (nth n (color-name-to-rgb color1)))
(* (- 1 ratio) (nth n (color-name-to-rgb color2)))))
- '(0 1 2))))
+ '(0 1 2))))
(defun telephone-line-color-to-bytestring (color)
"Return an RGB bytestring for a given COLOR."
@@ -157,17 +157,20 @@ color1 and color2."
(or telephone-line-height (frame-char-height)))
(cl-defmethod telephone-line-separator-width ((obj telephone-line-separator))
- (or (oref obj forced-width) (ceiling (telephone-line-separator-height obj)
2)))
+ (or (oref obj forced-width)
+ (ceiling (telephone-line-separator-height obj) 2)))
(defclass telephone-line-subseparator (telephone-line-separator)
- ((pattern-func :initarg :pattern-func :initform
#'telephone-line-row-pattern-hollow)))
+ ((pattern-func :initarg :pattern-func
+ :initform #'telephone-line-row-pattern-hollow)))
(cl-defmethod telephone-line-separator-create-body ((obj
telephone-line-separator))
"Create a bytestring of a PBM image body of dimensions WIDTH and HEIGHT, and
shape created from AXIS-FUNC and PATTERN-FUNC."
(let* ((height (telephone-line-separator-height obj))
(width (telephone-line-separator-width obj))
(normalized-axis (telephone-line--normalize-axis
- (mapcar (oref obj axis-func)
(telephone-line-create-axis height))))
+ (mapcar (oref obj axis-func)
+ (telephone-line-create-axis height))))
(range (1+ (seq-max normalized-axis)))
(scaling-factor (/ width (float range))))
(mapcar (lambda (x)
@@ -187,9 +190,9 @@ color1 and color2."
(cl-defmethod telephone-line-separator-create-body ((obj
telephone-line-subseparator))
(telephone-line--pad-body (cl-call-next-method)
- (+ (ceiling (telephone-line-separator-width obj)
- (frame-char-width))
- telephone-line-separator-extra-padding)))
+ (+ (ceiling (telephone-line-separator-width obj)
+ (frame-char-width))
+ telephone-line-separator-extra-padding)))
(cl-defmethod telephone-line-separator--arg-handler (arg) :static
"Translate ARG into an appropriate color for a separator."
@@ -203,8 +206,9 @@ color1 and color2."
(or (gethash hash-key (oref obj image-cache))
(puthash hash-key
(telephone-line-propertize-image
- (telephone-line--create-pbm-image
(telephone-line-separator-create-body obj)
- background foreground))
+ (telephone-line--create-pbm-image
+ (telephone-line-separator-create-body obj)
+ background foreground))
(oref obj image-cache)))))
(cl-defmethod telephone-line-separator-render-unicode ((obj
telephone-line-separator) foreground background)
- [nongnu] elpa/telephone-line 64a1f079f5 090/195: Update copyrights, (continued)
- [nongnu] elpa/telephone-line 64a1f079f5 090/195: Update copyrights, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line c9aca6ce03 143/195: Add flycheck segment, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 6e1ecf51a2 147/195: Add doom/atom encoding segments, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line cbaf1b8134 138/195: Switch guards to boundp checks rather than eval-after-load, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line e8e2078b43 131/195: Less bad name for unicode separators, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 212b3df07a 166/195: Merge pull request #92 from sebasmonia/master, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 6521585c94 180/195: Merge pull request #112 from fishyfriend/evil-god, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 06cbfc8d49 179/195: Add face for evil-god-state, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line deda33317b 187/195: Fix formatting, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line c5e08d268d 007/195: Move screenshots into subdir, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 0762bae37a 079/195: Corrected indentation,
ELPA Syncer <=
- [nongnu] elpa/telephone-line 96030b4c98 026/195: Further clean up start of readme, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 2e7ba0bfc2 015/195: Make utf-8 separators a part of pbm separators, rather than separate entities altogether, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 3e66e72d9c 075/195: add telephone-line-workgroups2-segment, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 85d25085ef 106/195: Trig Separators!, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line d0428bbd5c 108/195: Lighter color images, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 7fd38cce0c 093/195: Clarify config again, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 01a2be2798 129/195: Fix right separators on console, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 2cfe86ee8e 155/195: Merge pull request #76 from ogdenwebb/master, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line a8cb383957 168/195: 2 new segments: show just the file's name & show path AND file name, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line cce570e581 178/195: Provide TUI fallback for all separators, ELPA Syncer, 2022/01/05