~mdw
/
profile
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
el/dot-emacs.el: Use `string-to-number' instead of `parse-integer'.
[profile]
/
el
/
dot-emacs.el
diff --git
a/el/dot-emacs.el
b/el/dot-emacs.el
index
be261ec
..
09b3960
100644
(file)
--- a/
el/dot-emacs.el
+++ b/
el/dot-emacs.el
@@
-3784,13
+3784,13
@@
there is sadness."
(duration-string (cdr (assq 'Time mpc-status)))
(time-string (cdr (assq 'time mpc-status)))
(time (and time-string
(duration-string (cdr (assq 'Time mpc-status)))
(time-string (cdr (assq 'time mpc-status)))
(time (and time-string
- (
parse-integ
er
+ (
string-to-numb
er
(if (string-match ":" time-string)
(substring time-string
0 (match-beginning 0))
(time-string)))))
(duration (and duration-string
(if (string-match ":" time-string)
(substring time-string
0 (match-beginning 0))
(time-string)))))
(duration (and duration-string
- (
parse-integ
er duration-string)))
+ (
string-to-numb
er duration-string)))
(pos (and time duration
(format " [%d:%02d/%d:%02d]"
(/ time 60) (mod time 60)
(pos (and time duration
(format " [%d:%02d/%d:%02d]"
(/ time 60) (mod time 60)