1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-27 10:54:40 +00:00
Commit Graph

25 Commits

Author SHA1 Message Date
Lute Kamstra
62631b2cae (display-battery-mode): Specify :group. 2005-04-04 08:53:15 +00:00
Stefan Monnier
73a6a97294 (display-battery-mode): Rename from display-battery.
Handle the case where it gets turned off.
2005-01-04 21:15:09 +00:00
Richard M. Stallman
f4c4fc7494 (battery-mode-line-format): Remove initial spaces. 2004-12-27 16:40:50 +00:00
Stefan Monnier
0f4a15f89c (battery-linux-proc-apm): Use string-to-number.
(battery-linux-proc-acpi): Ignore all hidden files in the battery dir.
Use dolist (and less indentation).  Use erase-buffer.
Pre-initialize `design-capacity', `warn', and `low'.
(battery-format): Use replace-regexp-in-string.
2004-09-18 21:33:44 +00:00
Eli Zaretskii
d66fe3340c Delete superfluous empty lines.
(battery-linux-proc-acpi): Attempt to gather information from all
battery subdirectories regardless of their file name.
(battery-linux-proc-apm): Replace all occurrences of
battery-hex-to-int-2 with string-to-int (base 16).
(battery-hex-to-int-2, battery-hex-to-int): Delete functions.
(battery-hex-map): Delete variable.
2004-09-18 11:50:18 +00:00
Eli Zaretskii
bed6d70874 (battery-linux-proc-acpi): Look into battery
directories matching the literal string "CMB", too (required for
Linux kernel version 2.6.7).
2004-08-14 12:21:03 +00:00
Eli Zaretskii
062db3ecf4 (battery-linux-proc-acpi): mA was hardcored, but some
systems appear to use mW, make the code handle this.  Fix a
division-by-zero bug while at it, and handle kernels with
a slightly different layout in /proc/acpi.
2004-06-04 16:05:56 +00:00
Alex Schroeder
dce78214fe 2003-09-10 Mario Lang <mlang@delysid.org>
Update Commentary and Copyright.
(battery-linux-proc-acpi): Fix a bug in %b which made "!" never
appear due to wrong ordering of the expressions in `or'.
2003-09-10 19:51:01 +00:00
Eli Zaretskii
2b3cb60aab (battery-linux-proc-acpi): New function.
(battery-status-function): Modified default value calculation to also
check for availability of ACPI.
(battery-echo-area-format): Ditto.
(battery-mode-line-format): Ditto.
2003-09-06 19:28:08 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Noah Friedman
440c4d7aa8 (battery-insert-file-contents): Obsolete function removed.
(battery-read-function): Obsolete function removed.
(battery-linux-proc-apm): Use insert-file-contents.
2001-12-10 10:22:22 +00:00
Pavel Janík
e3601cf621 Fix typo. 2001-08-08 20:11:46 +00:00
Pavel Janík
e8af40eed4 Some fixes to follow coding conventions. 2001-07-16 12:23:00 +00:00
Gerd Moellmann
0f60e5ffda (battery-update): Add help-echo.
From Pavel Jan,Bm(Bk <Pavel@Janik.cz>.
2001-07-05 13:36:03 +00:00
Dave Love
681e6b4b6b (battery-status-function): Fix doc, :type. 2001-02-15 00:10:06 +00:00
Miles Bader
862a7e281e (display-battery): Use `add-to-list'. 2000-10-10 02:48:40 +00:00
Thien-Thi Nguyen
5a430f9cb6 (display-battery): Doc spelling fix. 2000-10-10 01:36:36 +00:00
Gerd Moellmann
3b36190124 Change author's mail address. 2000-07-07 13:01:49 +00:00
Gerd Moellmann
b624447c44 (battery): Doc fix. 1999-12-14 10:19:59 +00:00
Richard M. Stallman
3691e056ac (battery-linux-proc-apm): Re-use the temporary buffer.
(battery-insert-file-contents): Disable code conversion.
1998-03-30 04:39:53 +00:00
Stephen Eglen
4bef911093 Customized. 1998-03-07 18:19:38 +00:00
Richard M. Stallman
1720e5081c Fixed spelling of `autoload' magic cookies. 1998-03-06 17:45:55 +00:00
Karl Heuer
d5323ba0c2 (battery-linux-proc-apm-regexp): Load percentage
and remaining time have to match negative values.
(battery-linux-proc-apm): Initialize void %-sequences.
1998-02-25 22:44:24 +00:00
Richard M. Stallman
f12b0b967a Fix copyright and copying permissions. 1997-07-09 00:29:46 +00:00
Richard M. Stallman
6b27974068 Initial revision 1997-06-22 20:08:32 +00:00