Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
862a7e28
Commit
862a7e28
authored
Oct 10, 2000
by
Miles Bader
Browse files
(display-battery): Use `add-to-list'.
parent
c8bfa689
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/battery.el
lisp/battery.el
+2
-4
No files found.
lisp/ChangeLog
View file @
862a7e28
2000-10-10 Miles Bader <miles@lsi.nec.co.jp>
* subr.el (add-to-list): Add optional argument APPEND.
* battery.el (display-battery): Use `add-to-list'.
2000-10-09 Thien-Thi Nguyen <ttn@gnu.org>
* play/zone.el (zone-timer, zone-wc-tbl): Rework
...
...
lisp/battery.el
View file @
862a7e28
;;; battery.el --- display battery status information.
;; Copyright (C) 1997, 1998 Free Software Foundation, Inc.
;; Copyright (C) 1997, 1998
, 2000
Free Software Foundation, Inc.
;; Author: Ralph Schleicher <rs@nunatak.allgaeu.org>
;; Keywords: hardware
...
...
@@ -108,9 +108,7 @@ seconds."
(
interactive
)
(
setq
battery-mode-line-string
""
)
(
or
global-mode-string
(
setq
global-mode-string
'
(
""
)))
(
or
(
memq
'battery-mode-line-string
global-mode-string
)
(
setq
global-mode-string
(
append
global-mode-string
'
(
battery-mode-line-string
))))
(
add-to-list
'global-mode-string
'battery-mode-line-string
t
)
(
and
battery-update-timer
(
cancel-timer
battery-update-timer
))
(
setq
battery-update-timer
(
run-at-time
nil
battery-update-interval
'battery-update-handler
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment