summaryrefslogtreecommitdiff
path: root/lisp/battery.el
Commit message (Collapse)AuthorAgeFilesLines
* Add 2010 to copyright years.Glenn Morris2010-01-131-1/+1
|
* Add 2009 to copyright years.Glenn Morris2009-01-051-1/+1
|
* * align.el:Lute Kamstra2008-12-031-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * allout.el: * apropos.el: * arc-mode.el: * autoinsert.el: * avoid.el: * battery.el: * bookmark.el: * buff-menu.el: * calculator.el: * chistory.el: * cmuscheme.el: * comint.el: * compare-w.el: * dabbrev.el: * delim-col.el: * desktop.el: * diff-mode.el: * diff.el: * dired-aux.el: * dired-x.el: * dired.el: * dos-vars.el: * ediff-diff.el: * ediff-help.el: * ediff-init.el: * ediff-merg.el: * ediff-mult.el: * ediff-ptch.el: * ediff-vers.el: * ediff-wind.el: * ediff.el: * emerge.el: * facemenu.el: * faces.el: * ffap.el: * filecache.el: * find-dired.el: * font-core.el: * font-lock.el: * forms.el: * fringe.el: * help-at-pt.el: * hippie-exp.el: * ido.el: * image-file.el: * imenu.el: * indent.el: * info.el: * isearchb.el: * iswitchb.el: * jit-lock.el: * jka-compr.el: * log-edit.el: * lpr.el: * ls-lisp.el: * man.el: * menu-bar.el: * midnight.el: * mouse-sel.el: * mouse.el: * msb.el: * outline.el: * paren.el: * pcmpl-cvs.el: * pcmpl-gnu.el: * pcomplete.el: * pcvs-info.el: * pcvs-parse.el: * printing.el: * ps-mule.el: * ps-print.el: * replace.el: * ruler-mode.el: * saveplace.el: * sb-image.el: * scroll-bar.el: * sha1.el: * shadowfile.el: * shell.el: * sort.el: * speedbar.el: * strokes.el: * tempo.el: * term.el: * terminal.el: * time-stamp.el: * time.el: * tree-widget.el: * type-break.el: * vc-cvs.el: * vc-hg.el: * vc-mcvs.el: * vc-rcs.el: * vc-sccs.el: * vc.el: * view.el: * w32-vars.el: * whitespace.el: * wid-edit.el: Remove leading * from docstrings of defcustoms, deffaces, defconsts and defuns.
* (battery-echo-area-format, battery-status-function):Chong Yidong2008-08-081-1/+86
| | | | | Handle new Linux sysfs format for battery reporting. (battery-linux-sysfs): New function.
* Switch to recommended form of GPLv3 permissions notice.Glenn Morris2008-05-061-6/+4
|
* (battery-status-function): Use w32-battery-status on Windows.Jason Rumney2008-04-291-13/+14
| | | | | | (battery-echo-area-format): Make apm format the general case. (battery-mode-line-format): Merge apm and pmset formats as the general case.
* Add file cookie coding:iso-8859-1 for the degree signJuri Linkov2008-03-251-1/+1
| | | | in battery-mode-line-format.
* Add 2008 to copyright years.Glenn Morris2008-01-071-1/+1
|
* Switch license to GPLv3 or later.Glenn Morris2007-07-251-1/+1
|
* Add 2007 to copyright years.Glenn Morris2007-01-211-1/+1
|
* (battery-linux-proc-acpi): Use ignore-errors around calls to directory-files.Richard M. Stallman2007-01-101-4/+6
|
* (battery-search-for-one-match-in-files): Fix typo in docstring.Juanma Barranquero2007-01-081-1/+1
|
* 2006-11-05 Micha�Cadilhac <michael.cadilhac@lrde.org>Romain Francoise2006-11-051-40/+25
| | | | | | | | * battery.el (battery-linux-proc-acpi): Search an ac_adapter in `/proc/acpi/ac_adapter/*'. Ditto for the thermometers in `/proc/acpi/thermal_zone/*'. (battery-search-for-one-match-in-files): New. Search a regexp in the content of some files.
* * battery.el (battery-linux-proc-acpi): Prevent range error whenChong Yidong2006-11-011-0/+1
| | | | `full-capacity' is 0.
* (battery-linux-proc-acpi): Also try `/proc/acpi/thermal_zone/THR2/temperature'.Juri Linkov2006-05-091-0/+8
|
* (battery-linux-proc-acpi): Check `capacity' for non-nilJuri Linkov2006-03-111-2/+2
| | | | before comparing with `low' and `warn'.
* (battery-echo-area-format): Doc fix.Richard M. Stallman2006-03-111-10/+32
| | | | | | (battery-mode-line-format): Likewise. (battery-linux-proc-apm, battery-linux-proc-acpi): Likewise. (battery-linux-proc-acpi): Ignore batteries that say "charged".
* Update years in copyright notice; nfc.Thien-Thi Nguyen2006-02-061-1/+1
|
* (battery-linux-proc-acpi): Handle "last full capacity".Richard M. Stallman2006-01-191-4/+13
|
* (battery-linux-proc-acpi): Also tryRomain Francoise2005-12-251-0/+8
| | | | `/proc/acpi/thermal_zone/THM0/temperature'.
* (battery-status-function): Don't use ignore-errors.Lute Kamstra2005-08-111-4/+5
|
* Update years in copyright notice; nfc.Thien-Thi Nguyen2005-08-061-2/+2
|
* Add support for Darwin (with much debugging help from Samuel LauberLute Kamstra2005-07-051-6/+81
| | | | | | | | <sam124@operamail.com>). (battery-status-function, battery-echo-area-format) (battery-mode-line-format): Add support for pmset on Darwin. (battery-load-low, battery-load-critical): New user options. (battery-pmset): New function.
* Update FSF's address.Lute Kamstra2005-07-041-2/+2
|
* (battery-linux-proc-apm): Fix typo in docstring.Lute Kamstra2005-07-011-42/+39
| | | | | Catch errors with ignore-errors. Use temporary buffer. (battery-linux-proc-acpi): Fix typo in docstring. Document `%r'.
* (display-battery-mode): Specify :group.Lute Kamstra2005-04-041-1/+1
|
* (display-battery-mode): Rename from display-battery.Stefan Monnier2005-01-041-7/+10
| | | | Handle the case where it gets turned off.
* (battery-mode-line-format): Remove initial spaces.Richard M. Stallman2004-12-271-9/+11
|
* (battery-linux-proc-apm): Use string-to-number.Stefan Monnier2004-09-181-82/+60
| | | | | | | (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.
* Delete superfluous empty lines.Eli Zaretskii2004-09-181-77/+60
| | | | | | | | | (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.
* (battery-linux-proc-acpi): Look into batteryEli Zaretskii2004-08-141-1/+1
| | | | | directories matching the literal string "CMB", too (required for Linux kernel version 2.6.7).
* (battery-linux-proc-acpi): mA was hardcored, but someEli Zaretskii2004-06-041-13/+32
| | | | | | 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.
* 2003-09-10 Mario Lang <mlang@delysid.org>Alex Schroeder2003-09-101-5/+5
| | | | | | 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'.
* (battery-linux-proc-acpi): New function.Eli Zaretskii2003-09-061-3/+108
| | | | | | | (battery-status-function): Modified default value calculation to also check for availability of ACPI. (battery-echo-area-format): Ditto. (battery-mode-line-format): Ditto.
* Add arch taglinesMiles Bader2003-09-011-0/+1
|
* (battery-insert-file-contents): Obsolete function removed.Noah Friedman2001-12-101-19/+1
| | | | | (battery-read-function): Obsolete function removed. (battery-linux-proc-apm): Use insert-file-contents.
* Fix typo.Pavel Janík2001-08-081-1/+1
|
* Some fixes to follow coding conventions.Pavel Janík2001-07-161-1/+1
|
* (battery-update): Add help-echo.Gerd Moellmann2001-07-051-7/+8
| | | | From Pavel Jan,Bm(Bk <Pavel@Janik.cz>.
* (battery-status-function): Fix doc, :type.Dave Love2001-02-151-3/+3
|
* (display-battery): Use `add-to-list'.Miles Bader2000-10-101-4/+2
|
* (display-battery): Doc spelling fix.Thien-Thi Nguyen2000-10-101-2/+2
|
* Change author's mail address.Gerd Moellmann2000-07-071-1/+1
|
* (battery): Doc fix.Gerd Moellmann1999-12-141-1/+1
|
* (battery-linux-proc-apm): Re-use the temporary buffer.Richard M. Stallman1998-03-301-4/+4
| | | | (battery-insert-file-contents): Disable code conversion.
* Customized.Stephen Eglen1998-03-071-10/+24
|
* Fixed spelling of `autoload' magic cookies.Richard M. Stallman1998-03-061-2/+2
|
* (battery-linux-proc-apm-regexp): Load percentageKarl Heuer1998-02-251-15/+15
| | | | | and remaining time have to match negative values. (battery-linux-proc-apm): Initialize void %-sequences.
* Fix copyright and copying permissions.Richard M. Stallman1997-07-091-6/+6
|
* Initial revisionRichard M. Stallman1997-06-221-0/+279