+2001-07-05 Gerd Moellmann <gerd@gnu.org>
+
+ * battery.el (battery-update): Add help-echo.
+ From Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>.
+
2001-07-04 Gerd Moellmann <gerd@gnu.org>
* font-lock.el (c-font-lock-keywords-3): When matching something
;;; battery.el --- display battery status information.
-;; Copyright (C) 1997, 1998, 2000 Free Software Foundation, Inc.
+;; Copyright (C) 1997, 1998, 2000, 2001 Free Software Foundation, Inc.
;; Author: Ralph Schleicher <rs@nunatak.allgaeu.org>
;; Keywords: hardware
(defun battery-update ()
"Update battery status information in the mode line."
- (setq battery-mode-line-string (if (and battery-mode-line-format
- battery-status-function)
- (battery-format
- battery-mode-line-format
- (funcall battery-status-function))
- ""))
+ (setq battery-mode-line-string (propertize (if (and battery-mode-line-format
+ battery-status-function)
+ (battery-format
+ battery-mode-line-format
+ (funcall battery-status-function))
+ "")
+ 'help-echo "Battery status information"))
(force-mode-line-update))
\f