comparison lisp/ls-lisp.el @ 42427:f1a88fb2fb4e

(insert-directory): Modify the "total" line wording, in accordance with files.el's insert-directory.
author Eli Zaretskii <eliz@gnu.org>
date Sun, 30 Dec 2001 17:04:26 +0000
parents 1e736b882b4f
children 4bc33b241589
comparison
equal deleted inserted replaced
42426:5e72bcdc23b8 42427:f1a88fb2fb4e
206 (goto-char (point-min)) 206 (goto-char (point-min))
207 ;; First find the line to put it on. 207 ;; First find the line to put it on.
208 (when (re-search-forward "^total" nil t) 208 (when (re-search-forward "^total" nil t)
209 (let ((available (get-free-disk-space "."))) 209 (let ((available (get-free-disk-space ".")))
210 (when available 210 (when available
211 ;; Replace "total" with "used", to avoid confusion. 211 ;; Replace "total" with "total used", to avoid confusion.
212 (replace-match "used") 212 (replace-match "total used in directory")
213 (end-of-line) 213 (end-of-line)
214 (insert " available " available))))))))) 214 (insert " available " available)))))))))
215 215
216 (defun ls-lisp-insert-directory 216 (defun ls-lisp-insert-directory
217 (file switches time-index wildcard full-directory-p) 217 (file switches time-index wildcard full-directory-p)