emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/vlf 56134a8 050/310: Make vlfi usable under GNU Emacs 2


From: Stefan Monnier
Subject: [elpa] externals/vlf 56134a8 050/310: Make vlfi usable under GNU Emacs 23.
Date: Sat, 28 Nov 2020 00:32:45 -0500 (EST)

branch: externals/vlf
commit 56134a8281903caf3d1b967dac35985c0792066c
Author: Andrey Kotlarski <m00naticus@gmail.com>
Commit: Andrey Kotlarski <m00naticus@gmail.com>

    Make vlfi usable under GNU Emacs 23.
---
 vlfi.el | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/vlfi.el b/vlfi.el
index 7ffc122..78b637b 100644
--- a/vlfi.el
+++ b/vlfi.el
@@ -443,6 +443,12 @@ Remaining part of the file ["
   (vlfi-mode)
   (message "Switched to VLFI mode."))
 
+;;; non recent Emacs
+(unless (fboundp 'file-size-human-readable)
+  (defun file-size-human-readable (file-size)
+    "Print FILE-SIZE in MB."
+    (format "%.1fMB" (/ file-size 1024.0))))
+
 (provide 'vlfi)
 
 ;;; vlfi.el ends here



reply via email to

[Prev in Thread] Current Thread [Next in Thread]