branch: elpa/telephone-line
commit ff5fcb2181cf1d52bfc5fb8d76ac37f9cad22ce2
Merge: aebac4658e c077184452
Author: Daniel Bordak <[email protected]>
Commit: GitHub <[email protected]>
Merge pull request #120 from gagbo/patch-3
Adapt flymake-segment to upstream changes
---
telephone-line-segments.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/telephone-line-segments.el b/telephone-line-segments.el
index 3da5a248e1..87c8ba09c4 100644
--- a/telephone-line-segments.el
+++ b/telephone-line-segments.el
@@ -267,7 +267,10 @@ Configure the face group telephone-line-evil to change the
colors per-mode."
(telephone-line-defsegment telephone-line-flymake-segment ()
"Wraps `flymake-mode' mode-line information in a telephone-line segment."
(when (bound-and-true-p flymake-mode)
- (telephone-line-raw flymake--mode-line-format t)))
+ (telephone-line-raw
+ (if (boundp flymake--mode-line-format)
+ flymake--mode-line-format
+ flymake-mode-line-format) t)))
(telephone-line-defsegment telephone-line-flycheck-segment ()
"Displays current checker state."