+2010-08-27 Kenichi Okada <okada@opaopa.org>
+
+ * wl-summary.el (wl-summary-prefetch-msg): Make the confirmation
+ message human-readable.
+
2010-08-26 TAKAHASHI Kaoru <kaoru@kaisei.org>
* wl-e21.el (wl-draft-insert-signature): Fix comment style.
(widen)
(y-or-n-p
(format
- "Message from %s has %d bytes. Prefetch it? "
+ "Message from %s has %s bytes. Prefetch it? "
(concat
"[ "
(save-match-data
'from)
"??")))))
" ]")
- size))))
+ (do ((size (/ size 1024.0) (/ size 1024.0))
+ ;; kilo, mega, giga, tera, peta, exa
+ (post-fixes (list "k" "M" "G" "T" "P" "E") (cdr post-fixes)))
+ ((< size 1024) (format "%.0f%s" size (car post-fixes))))))))
(message ""))) ; flush.
(if force-read
(save-excursion