diff options
| author | Mattias EngdegÄrd | 2019-07-19 11:16:46 +0200 |
|---|---|---|
| committer | Mattias EngdegÄrd | 2019-07-19 11:16:46 +0200 |
| commit | b663fbcd065d8b29c93555cf9e6cf8582452983b (patch) | |
| tree | 50b6373c7c76ab6749e0f878d2fdc261ca3d71c1 | |
| parent | 8d34cb3f07ddddac015e2cf115e19e9423e40cc4 (diff) | |
| download | emacs-b663fbcd065d8b29c93555cf9e6cf8582452983b.tar.gz emacs-b663fbcd065d8b29c93555cf9e6cf8582452983b.zip | |
Neater free disk space formatting
* lisp/files.el (get-free-disk-space): Update doc string.
Use `iec' style and proper spacing.
| -rw-r--r-- | lisp/files.el | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lisp/files.el b/lisp/files.el index 3c5905d2164..238aa377985 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -6697,15 +6697,12 @@ This variable is obsolete; Emacs no longer uses it." | |||
| 6697 | "27.1") | 6697 | "27.1") |
| 6698 | 6698 | ||
| 6699 | (defun get-free-disk-space (dir) | 6699 | (defun get-free-disk-space (dir) |
| 6700 | "Return the amount of free space on directory DIR's file system. | 6700 | "String describing the amount of free space on DIR's file system. |
| 6701 | The return value is a string describing the amount of free | ||
| 6702 | space (normally, the number of free 1KB blocks). | ||
| 6703 | |||
| 6704 | If DIR's free space cannot be obtained, this function returns nil." | 6701 | If DIR's free space cannot be obtained, this function returns nil." |
| 6705 | (save-match-data | 6702 | (save-match-data |
| 6706 | (let ((avail (nth 2 (file-system-info dir)))) | 6703 | (let ((avail (nth 2 (file-system-info dir)))) |
| 6707 | (if avail | 6704 | (if avail |
| 6708 | (file-size-human-readable avail))))) | 6705 | (file-size-human-readable avail 'iec " "))))) |
| 6709 | 6706 | ||
| 6710 | ;; The following expression replaces `dired-move-to-filename-regexp'. | 6707 | ;; The following expression replaces `dired-move-to-filename-regexp'. |
| 6711 | (defvar directory-listing-before-filename-regexp | 6708 | (defvar directory-listing-before-filename-regexp |