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

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

[nongnu] elpa/telephone-line c077184452 191/195: Adapt flymake-segment t


From: ELPA Syncer
Subject: [nongnu] elpa/telephone-line c077184452 191/195: Adapt flymake-segment to upstream changes
Date: Wed, 5 Jan 2022 03:00:05 -0500 (EST)

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

    Adapt flymake-segment to upstream changes
    
    Since last 
[december](https://git.savannah.gnu.org/cgit/emacs.git/commit/lisp/progmodes/flymake.el?id=2e6fbb05b6c17a1481fd6b73491cfa9c66c0c84f),
    the name of the flymake mode line format variable changed.
    
    Use a boundp check to use the correct variable.
---
 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."



reply via email to

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