From: John Wiegley Date: Sun, 16 Nov 2003 09:23:49 +0000 (+0000) Subject: (eshell-ls-file): Instead of making the size field in a long-listing X-Git-Tag: ttn-vms-21-2-B4~8360 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5a2e4c34bdef6ca75bcbc3e622e0feaf2147dbde;p=emacs.git (eshell-ls-file): Instead of making the size field in a long-listing always 8 characters, use `size-width', which has already been computed. --- diff --git a/lisp/eshell/em-ls.el b/lisp/eshell/em-ls.el index aced2223327..1d018026e67 100644 --- a/lisp/eshell/em-ls.el +++ b/lisp/eshell/em-ls.el @@ -480,8 +480,8 @@ whose cdr is the list of file attributes." "")) (let* ((str (eshell-ls-printable-size (nth 7 attrs))) (len (length str))) - (if (< len 8) - (concat (make-string (- 8 len) ? ) str) + (if (< len size-width) + (concat (make-string (- size-width len) ? ) str) str)) " " (format-time-string (concat