|
Re: acpi.el 1.1: msg#00001emacs.sources
Ivan Raikov <raikov@xxxxxxx> writes: > ;;; acpi.el --- display current ACPI battery status in the mode line Hi! First, thanks for your piece of code, it's always nice to see new packages for Emacs. Well, on the other hand, like Thorsten asked, how does your library compares to ``battery.el'' ? The main change I see is that you use an /external/ binary ``acpi'', instead of directly reading the /proc/acpi files (it's what ``acpi'' does too). So this is certainly more costly. Also, ``battery.el'' can manage a demi-dozen of other status mechanisms. On the practical point of view : it doesn't work quite well on my computer. acpi -ab outputs : Battery 1: charged, 89% AC Adapter 1: on-line but you don't split input string at \n. You probably should. (And beware of the use of (require 'cl)) Another thing : you use the mode line. Well, it's not clear to me if your mode is a buffer local one or a global one. I don't really know : it applies its modeline changes to the current buffer only, but is activated globally. I think that you should take a look at ``battery.el'' to see if you can improve it in some way. Cheers -- | Michaël `Micha' Cadilhac | I'd be surprised if my fix doesn't | | http://michael.cadilhac.name | address this problem as well. | | JID/MSN: | PS: But I like surprises. | `---- michael.cadilhac@xxxxxxxxx | -- Stefan Monnier - --'
gnu-emacs-sources mailing list gnu-emacs-sources@xxxxxxx http://lists.gnu.org/mailman/listinfo/gnu-emacs-sources |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | acpi.el 1.1: 00001, Ivan Raikov |
|---|---|
| Next by Date: | diff-save-buffer.el v.2 -- prospective filename for saving a diff: 00001, Kevin Ryde |
| Previous by Thread: | acpi.el 1.1i: 00001, Ivan Raikov |
| Next by Thread: | diff-save-buffer.el v.2 -- prospective filename for saving a diff: 00001, Kevin Ryde |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |