[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master b9e99ab: Always expand "total" in dired
From: |
Lars Ingebrigtsen |
Subject: |
master b9e99ab: Always expand "total" in dired |
Date: |
Sat, 23 Nov 2019 09:47:52 -0500 (EST) |
branch: master
commit b9e99ab5ac49f8cb03fc1c27eb830a24e9bdf83c
Author: Christopher Schmidt <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>
Always expand "total" in dired
* lisp/files.el (insert-directory): Always replace "total" with
"total used in directory", even when we don't have free disk space
(bug#13191). This makes the display more consistent.
---
lisp/files.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lisp/files.el b/lisp/files.el
index 2c45a8b..a384e71 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -7153,10 +7153,11 @@ normally equivalent short `-D' option is just passed on
to
(goto-char beg)
;; First find the line to put it on.
(when (re-search-forward "^ *\\(total\\)" nil t)
+ ;; Replace "total" with "total used in directory" to
+ ;; avoid confusion.
+ (replace-match "total used in directory" nil nil nil 1)
(let ((available (get-free-disk-space ".")))
(when available
- ;; Replace "total" with "used", to avoid confusion.
- (replace-match "total used in directory" nil nil nil 1)
(end-of-line)
(insert " available " available))))))))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master b9e99ab: Always expand "total" in dired,
Lars Ingebrigtsen <=