all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Reiner Steib <reinersteib+gmane@imap.cc>
Cc: emacs-devel@gnu.org
Subject: Re: battery.el: Rename display-battery-mode to battery-mode?
Date: Thu, 04 Aug 2005 17:54:35 +0200	[thread overview]
Message-ID: <v9oe8dd7es.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <87pssu42bf.fsf@xs4all.nl> (Lute Kamstra's message of "Thu, 04 Aug 2005 08:57:08 +0200")

On Thu, Aug 04 2005, Lute Kamstra wrote:

> Reiner Steib <reinersteib+gmane@imap.cc> writes:
>
>> I tried to enable battery-mode on my notebook using `M-x battery-
>> TAB' but I got "No match".  Eventually I found
>> `display-battery-mode' in `battery.el'.  Shouldn't the name of the
>> minor mode read `battery-mode' instead of `display-battery-mode'?
>
> Agreed.

(In the meantime I saw that there's one similarly named (interactive)
command `display-time-mode'.)

>> +(define-obsolete-function-alias 'display-battery-mode 'battery-mode "22.1")
[...]
>> Okay to commit?
>
> Ok with me.
>
>> Shouldn't battery mode be mentioned briefly in (info "(emacs)Optional
>> Mode Line") as well?
>
> Maybe you can write a patch?

--8<---------------cut here---------------start------------->8---
--- display.texi	17 Jul 2005 17:48:14 +0200	1.98
+++ display.texi	04 Aug 2005 17:54:03 +0200	
@@ -890,6 +890,11 @@
 to specify the directory to check for incoming mail (any nonempty regular
 file in the directory is considered as ``newly arrived mail'').
 
+@findex battery-mode
+On some systems, Emacs can display battery status information in the
+mode line.  To enable this feature, type @kbd{M-x battery-mode} or
+customize the option @code{battery-mode}.
+
 @cindex mode line, 3D appearance
 @cindex attributes of mode line, changing
 @cindex non-integral number of lines in a window
--8<---------------cut here---------------end--------------->8---

Of course one could describe some related variables
(battery-mode-line-format, battery-update-interval, battery-load-low,
battery-load-critical), but IIRC the goal is not to add to much text
to the manual.

Does it make sense to mention `battery-status-function' in the doc
strings of `battery' and `[display-]battery-mode'?

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/

  reply	other threads:[~2005-08-04 15:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-02 16:15 battery.el: Rename display-battery-mode to battery-mode? Reiner Steib
2005-08-04  6:57 ` Lute Kamstra
2005-08-04 15:54   ` Reiner Steib [this message]
2005-08-04 16:28     ` Juri Linkov
2005-08-06  1:06 ` Juri Linkov
2005-08-06 18:36   ` Richard M. Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=v9oe8dd7es.fsf@marauder.physik.uni-ulm.de \
    --to=reinersteib+gmane@imap.cc \
    --cc=Reiner.Steib@gmx.de \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.