projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cdf8a4f
)
* lisp/files.el (get-free-disk-space): Use file-size-human-readable
author
Oleh Krehel
<ohwoeowho@gmail.com>
Thu, 18 Jul 2019 12:53:11 +0000
(14:53 +0200)
committer
Oleh Krehel
<ohwoeowho@gmail.com>
Thu, 18 Jul 2019 12:54:09 +0000
(14:54 +0200)
Since there is no longer an option to do:
(setq directory-free-space-args "-Pmh")
lisp/files.el
patch
|
blob
|
history
diff --git
a/lisp/files.el
b/lisp/files.el
index f76b08f4cb7ee56315719ba1406b58a167131de0..3c5905d21643388977751776cffb01ba99e89482 100644
(file)
--- a/
lisp/files.el
+++ b/
lisp/files.el
@@
-6705,7
+6705,7
@@
If DIR's free space cannot be obtained, this function returns nil."
(save-match-data
(let ((avail (nth 2 (file-system-info dir))))
(if avail
-
(format "%.0f" (/ avail 1024)
)))))
+
(file-size-human-readable avail
)))))
;; The following expression replaces `dired-move-to-filename-regexp'.
(defvar directory-listing-before-filename-regexp