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
248634e9
Commit
248634e9
authored
Aug 11, 2005
by
Lute Kamstra
Browse files
(battery-status-function): Don't use ignore-errors.
parent
aa6f7b96
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
lisp/battery.el
lisp/battery.el
+5
-4
No files found.
lisp/battery.el
View file @
248634e9
...
...
@@ -49,10 +49,11 @@
(
file-directory-p
"/proc/acpi/battery"
))
'battery-linux-proc-acpi
)
((
and
(
eq
system-type
'darwin
)
(
ignore-errors
(
with-temp-buffer
(
and
(
eq
(
call-process
"pmset"
nil
t
nil
"-g"
"ps"
)
0
)
(
>
(
buffer-size
)
0
)))))
(
condition-case
nil
(
with-temp-buffer
(
and
(
eq
(
call-process
"pmset"
nil
t
nil
"-g"
"ps"
)
0
)
(
>
(
buffer-size
)
0
)))
(
error
nil
)))
'battery-pmset
))
"*Function for getting battery status information.
The function has to return an alist of conversion definitions.
...
...
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