]> git.eshelyaron.com Git - emacs.git/commit
Don't use dynamically-bound variables for Eshell's "du" command
authorJim Porter <jporterbugs@gmail.com>
Tue, 30 Jan 2024 18:51:03 +0000 (10:51 -0800)
committerEshel Yaron <me@eshelyaron.com>
Mon, 11 Nov 2024 10:26:47 +0000 (11:26 +0100)
commitc8cc08280e2f96f326c6ae676a381cf9309c6287
tree6429f0e5c66c9c90d28eeb499c3373959dbee1cb
parent0ebfdf79d8c39c32b2084f1619d523ca06e25b4f
Don't use dynamically-bound variables for Eshell's "du" command

* lisp/eshell/em-unix.el (block-size, by-bytes, dereference-links)
(grand-total, human-readable, max-depth, only-one-filesystem, show-all)
(eshell-du-size-string): Remove.
(eshell-du-sum-directory): Accept key arguments for adjusting behavior.
(eshell/du): Use 'block-size' of 1 instead of 'by-bytes', and define a
print function.

(cherry picked from commit 37c583a2c2f97c6fb0ed0433db9c74c6a1758e3e)
lisp/eshell/em-unix.el