Update.
authorFrancois Fleuret <francois@fleuret.org>
Mon, 30 Nov 2015 17:51:29 +0000 (18:51 +0100)
committerFrancois Fleuret <francois@fleuret.org>
Mon, 30 Nov 2015 17:51:29 +0000 (18:51 +0100)
emacs.el

index 1b17d1b..fa38ffd 100644 (file)
--- a/emacs.el
+++ b/emacs.el
@@ -978,9 +978,10 @@ printer."
 
                                   (ff/temp-info-string)
 
-                                  (propertize
-                                   (ff/battery-info-string)
-                                   'face 'ff/battery-info-face)
+                                  ,@(when (ff/battery-info-string)
+                                      '((propertize
+                                        (ff/battery-info-string)
+                                        'face 'ff/battery-info-face)))
 
                                   " "