This bug report will be sent to the Free Software Foundation, not to your local site managers! Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them.
Your bug report will be posted to the [email protected] mailing list. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: (display-battery-mode) uses (battery-linux-proc-acpi), which reads `grep design-capacity /proc/acpi/battery/[...]/info` as the maximum battery capacity. On my machine, however, I have: ===== ~ $ cat /proc/acpi/battery/BAT0/info present: yes design capacity: 71280 mWh last full capacity: 47420 mWh battery technology: rechargeable design voltage: 10800 mV design capacity warning: 2371 mWh design capacity low: 200 mWh capacity granularity 1: 1 mWh capacity granularity 2: 1 mWh model number: IBM-08K8198 serial number: 595 battery type: LION OEM info: SANYO ~ $ ===== So, (display-battery-mode) will never show my battery at 100%, which I'm quite sure is a bug. The solution is to grep for "last full capacity" instead (patch attached). This solution was confirmed by user mortal on #emacs about half an hour ago. Thx, bye, Gismo / Luca If emacs crashed, and you have the emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /usr/share/emacs/22.0.50/etc/DEBUG for instructions. In GNU Emacs 22.0.50.1 (i486-pc-linux-gnu) of 2006-01-03 on pacem, modified by Debian configured using `configure '--build' 'i486-linux-gnu' '--host' 'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/22.0.50/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/22.0.50/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/22.0.50/leim' '--with-x=no' 'CFLAGS=-DDEBIAN -g -Wno-pointer-sign -O2' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 locale-coding-system: utf-8 default-enable-multibyte-characters: t Major mode: Lisp Minor modes in effect: display-battery-mode: t display-time-mode: t erc-truncate-mode: t erc-track-mode: t erc-ring-mode: t erc-pcomplete-mode: t erc-netsplit-mode: t erc-services-mode: t erc-match-mode: t erc-log-mode: t erc-fill-mode: t erc-stamp-mode: t erc-button-mode: t erc-autojoin-mode: t erc-autoaway-mode: t show-paren-mode: t encoded-kbd-mode: t auto-compression-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t hs-minor-mode: t Recent input: ESC O C ESC O C ESC O C ESC O C ESC O C ESC O C ESC O D ) ESC [ 4 ~ RET C-c ESC f x C-c ESC f h C-x o C-x k RET C-x C-f H a c TAB c v TAB e m a TAB _ TAB RET ESC O B ESC O A C-k C-k C-k C-k C-s C-g C-x C-s C-x k RET C-c ESC f i C-x o C-c ESC f h ESC x r e p o r t TAB e m TAB TAB b u TAB RET Recent messages: Wrote /home/luca/Hacking/cvs/emacs/lisp/battery.el [Complete but not unique] [Sole completion] (application-find name) History item: 0 [2 times] Loading diff-mode...done Quit Wrote /home/luca/Hacking/cvs/emacs_battery.el_20060106.patch Making completion list... Loading emacsbug...done
emacs_battery.el_20060106.patch.gz
Description: (battery-linux-proc-acpi) reads battery last full capacity
pgpkyUNAC27cV.pgp
Description: PGP signature
_______________________________________________ emacs-pretest-bug mailing list [email protected] http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
