emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/telephone-line 797f257642 183/195: Wrap the segment in bou


From: ELPA Syncer
Subject: [nongnu] elpa/telephone-line 797f257642 183/195: Wrap the segment in bound-and-true-p
Date: Wed, 5 Jan 2022 03:00:04 -0500 (EST)

branch: elpa/telephone-line
commit 797f257642557c4d85bdcb8098078cc40914fbb0
Author: Gerry Agbobada <10496163+gagbo@users.noreply.github.com>
Commit: GitHub <noreply@github.com>

    Wrap the segment in bound-and-true-p
---
 telephone-line-segments.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/telephone-line-segments.el b/telephone-line-segments.el
index cd39b6d9a2..d667cd5335 100644
--- a/telephone-line-segments.el
+++ b/telephone-line-segments.el
@@ -267,7 +267,8 @@ 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."
-  (telephone-line-raw flymake--mode-line-format t))
+  (when (bound-and-true-p flymake-mode)
+    (telephone-line-raw flymake--mode-line-format t)))
 
 (telephone-line-defsegment telephone-line-flycheck-segment ()
   "Displays current checker state."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]