diff options
| author | Gerd Moellmann | 2001-07-05 13:36:03 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-07-05 13:36:03 +0000 |
| commit | 0f60e5ffda939b8866cf8c07d87bad69d06695bb (patch) | |
| tree | 498a5d868f5a8e15233cd25aa3b481a8ef248e4b | |
| parent | 0967b4b07b65796d2c8b5d5579d790741bae99f1 (diff) | |
| download | emacs-0f60e5ffda939b8866cf8c07d87bad69d06695bb.tar.gz emacs-0f60e5ffda939b8866cf8c07d87bad69d06695bb.zip | |
(battery-update): Add help-echo.
From Pavel Jan,Bm(Bk <Pavel@Janik.cz>.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/battery.el | 15 |
2 files changed, 13 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 37908b8bacd..625916563e6 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2001-07-05 Gerd Moellmann <gerd@gnu.org> | ||
| 2 | |||
| 3 | * battery.el (battery-update): Add help-echo. | ||
| 4 | From Pavel Jan,Bm(Bk <Pavel@Janik.cz>. | ||
| 5 | |||
| 1 | 2001-07-04 Gerd Moellmann <gerd@gnu.org> | 6 | 2001-07-04 Gerd Moellmann <gerd@gnu.org> |
| 2 | 7 | ||
| 3 | * font-lock.el (c-font-lock-keywords-3): When matching something | 8 | * font-lock.el (c-font-lock-keywords-3): When matching something |
diff --git a/lisp/battery.el b/lisp/battery.el index 67e129b9330..9ab5d20d0ac 100644 --- a/lisp/battery.el +++ b/lisp/battery.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; battery.el --- display battery status information. | 1 | ;;; battery.el --- display battery status information. |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1997, 1998, 2000 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1997, 1998, 2000, 2001 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Ralph Schleicher <rs@nunatak.allgaeu.org> | 5 | ;; Author: Ralph Schleicher <rs@nunatak.allgaeu.org> |
| 6 | ;; Keywords: hardware | 6 | ;; Keywords: hardware |
| @@ -120,12 +120,13 @@ seconds." | |||
| 120 | 120 | ||
| 121 | (defun battery-update () | 121 | (defun battery-update () |
| 122 | "Update battery status information in the mode line." | 122 | "Update battery status information in the mode line." |
| 123 | (setq battery-mode-line-string (if (and battery-mode-line-format | 123 | (setq battery-mode-line-string (propertize (if (and battery-mode-line-format |
| 124 | battery-status-function) | 124 | battery-status-function) |
| 125 | (battery-format | 125 | (battery-format |
| 126 | battery-mode-line-format | 126 | battery-mode-line-format |
| 127 | (funcall battery-status-function)) | 127 | (funcall battery-status-function)) |
| 128 | "")) | 128 | "") |
| 129 | 'help-echo "Battery status information")) | ||
| 129 | (force-mode-line-update)) | 130 | (force-mode-line-update)) |
| 130 | 131 | ||
| 131 | 132 | ||