[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/telephone-line 6789e79806 124/195: Define nil separator in
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/telephone-line 6789e79806 124/195: Define nil separator in terms of a pattern func; fixes height support. |
Date: |
Wed, 5 Jan 2022 02:59:37 -0500 (EST) |
branch: elpa/telephone-line
commit 6789e79806a188e278af8fb27dc65a28dbaf7505
Author: Daniel Bordak <dbordak@fastmail.fm>
Commit: Daniel Bordak <dbordak@fastmail.fm>
Define nil separator in terms of a pattern func; fixes height support.
---
telephone-line-separators.el | 12 ++++++++++--
telephone-line-utils.el | 5 -----
2 files changed, 10 insertions(+), 7 deletions(-)
diff --git a/telephone-line-separators.el b/telephone-line-separators.el
index be0fce2b74..65a21bbecf 100644
--- a/telephone-line-separators.el
+++ b/telephone-line-separators.el
@@ -25,6 +25,16 @@
(require 'color)
(require 'telephone-line-utils)
+(defun telephone-line-row-pattern-nil (_ width)
+ "Create a block of 1s of WIDTH. _ is disregarded."
+ (make-list width 1))
+
+(defvar telephone-line-nil
+ (make-instance 'telephone-line-separator
+ :axis-func #'identity
+ :forced-width 1
+ :pattern-func #'telephone-line-row-pattern-nil))
+
(defun telephone-line-row-pattern-fixed-gradient (_ width)
"Create a gradient bytestring of WIDTH. _ is disregarded."
(mapcar (lambda (num)
@@ -120,8 +130,6 @@
(defvar telephone-line-identity-hollow-left
(make-instance 'telephone-line-subseparator :axis-func #'-))
-(defvar telephone-line-nil
- (make-instance 'telephone-line-nil-separator))
(provide 'telephone-line-separators)
;;; telephone-line-separators.el ends here
diff --git a/telephone-line-utils.el b/telephone-line-utils.el
index ca57b807b0..7301879c81 100644
--- a/telephone-line-utils.el
+++ b/telephone-line-utils.el
@@ -160,8 +160,6 @@ color1 and color2."
((pattern-func :initarg :pattern-func
:initform #'telephone-line-row-pattern-hollow)))
-(defclass telephone-line-nil-separator (telephone-line-separator) ())
-
(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))
@@ -227,9 +225,6 @@ If it doesn't exist, create and cache it."
(telephone-line-separator-render-image obj fg-color bg-color)
(telephone-line-separator-render-unicode obj fg-color bg-color))))
-(cl-defmethod telephone-line-separator-render ((obj
telephone-line-nil-separator) foreground background)
- nil)
-
(cl-defmethod telephone-line-separator-clear-cache ((obj
telephone-line-separator))
(clrhash (oref obj image-cache)))
- [nongnu] elpa/telephone-line a8cb383957 168/195: 2 new segments: show just the file's name & show path AND file name, (continued)
- [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
- [nongnu] elpa/telephone-line bfe7b189d7 177/195: Merge branch 'master' of github.com:dbordak/telephone-line, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 110c578ccf 184/195: Merge pull request #113 from gagbo/patch-2, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line eb178dda26 188/195: Merge pull request #116 from fdeitylink/patch-1, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line aebac4658e 190/195: Fix for Emacs 27.1 scaling, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 408e05e105 172/195: Merge branch 'master' of github.com:dbordak/telephone-line, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 67a28e8267 182/195: Add telephone-line-flymake-segment, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 44f296e6a1 076/195: Merge pull request #24 from myTerminal/master, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 3ede7e6ff3 122/195: Merge branch 'master' of github.com:dbordak/telephone-line, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 6789e79806 124/195: Define nil separator in terms of a pattern func; fixes height support.,
ELPA Syncer <=
- [nongnu] elpa/telephone-line 41f84d47cd 087/195: Add headings to examples, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 59005be15b 114/195: Add arg list to defsegment, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line c1f3a4dcc4 086/195: Add example configurations, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line ce5d99afd7 101/195: Oops., ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 762344f5e5 123/195: Subclass telephone-line-nil-separator, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 80b09f3357 113/195: Add :inactive modifier, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 46c0fd2617 120/195: Temp fix for :active/:inactive, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line de2e4d5c86 153/195: Fix telephone-line-warning docstring., ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line c4cab5a5dc 150/195: Merge branch 'master' of github.com:dbordak/telephone-line, ELPA Syncer, 2022/01/05
- [nongnu] elpa/telephone-line 17bc3be4bf 145/195: Merge branch 'master' of github.com:dbordak/telephone-line, ELPA Syncer, 2022/01/05