]> git.eshelyaron.com Git - emacs.git/commit
Change how Dired displays available space
authorLars Ingebrigtsen <larsi@gnus.org>
Wed, 1 Dec 2021 22:27:09 +0000 (23:27 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 1 Dec 2021 22:27:19 +0000 (23:27 +0100)
commit1914d946d62de4ab7bab1434bcea09087d61bb5a
tree2c535caf9dc3d7094f4548b5b482e01bcb8fb33b
parented7591c9055d4c90d2f59ffbd90aff45da2dc102
Change how Dired displays available space

* doc/emacs/dired.texi (Misc Dired Features): Document it (bug#23812).
* lisp/dired.el (dired-free-space): New user option.
(dired-insert-directory): Use it from here.
(dired--insert-disk-space): New function that uses the user option.

* lisp/files.el (insert-directory): Don't transform "total" here.
* lisp/ls-lisp.el (ls-lisp--insert-directory): Or here.  Instead
just leave the "total <num>" bit alone, and let Dired transform it.

* test/lisp/files-tests.el (files-tests): Move "available" tests
to dired-tests.
* test/lisp/dired-tests.el (data-dir): Moved here.
15 files changed:
doc/emacs/dired.texi
etc/NEWS
lisp/dired.el
lisp/files.el
lisp/ls-lisp.el
test/lisp/dired-resources/insert-directory/test_dir/bar [new file with mode: 0644]
test/lisp/dired-resources/insert-directory/test_dir/foo [new file with mode: 0644]
test/lisp/dired-resources/insert-directory/test_dir_other/bar [new file with mode: 0644]
test/lisp/dired-resources/insert-directory/test_dir_other/foo [new file with mode: 0644]
test/lisp/dired-tests.el
test/lisp/files-resources/insert-directory/test_dir/bar [deleted file]
test/lisp/files-resources/insert-directory/test_dir/foo [deleted file]
test/lisp/files-resources/insert-directory/test_dir_other/bar [deleted file]
test/lisp/files-resources/insert-directory/test_dir_other/foo [deleted file]
test/lisp/files-tests.el