Commit b9e99ab5 authored by Christopher Schmidt's avatar Christopher Schmidt Committed by Lars Ingebrigtsen

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.
parent 311ca036
Pipeline #4146 failed with stage
in 60 minutes and 7 seconds
......@@ -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))))))))))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment