diff options
| author | Richard M. Stallman | 1994-08-01 07:15:34 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-08-01 07:15:34 +0000 |
| commit | 3cfb886e3dfd1b6c645420a7eb912c4fd8def9ef (patch) | |
| tree | 9cdc66f3378774ec129286140f337af9776911ed | |
| parent | 5d3b0f182f500449cc404d56ec141d83eb35581c (diff) | |
| download | emacs-3cfb886e3dfd1b6c645420a7eb912c4fd8def9ef.tar.gz emacs-3cfb886e3dfd1b6c645420a7eb912c4fd8def9ef.zip | |
(insert-directory): Gracefully handle the case
where a file disappears between when it is listed in the directory
and when the attributes are requested.
| -rw-r--r-- | lisp/ls-lisp.el | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/ls-lisp.el b/lisp/ls-lisp.el index cd6c68b46b9..48a7616e445 100644 --- a/lisp/ls-lisp.el +++ b/lisp/ls-lisp.el | |||
| @@ -105,12 +105,12 @@ The switches that work are: A a c i r S s t u" | |||
| 105 | (ls-lisp-handle-switches file-alist switches)) | 105 | (ls-lisp-handle-switches file-alist switches)) |
| 106 | (while file-alist | 106 | (while file-alist |
| 107 | (setq elt (car file-alist) | 107 | (setq elt (car file-alist) |
| 108 | short (car elt) | ||
| 109 | attr (cdr elt) | ||
| 110 | file-alist (cdr file-alist) | 108 | file-alist (cdr file-alist) |
| 111 | fil (concat dir short) | 109 | short (car elt) |
| 112 | sum (+ sum (nth 7 attr))) | 110 | attr (cdr elt)) |
| 113 | (insert (ls-lisp-format short attr switches))) | 111 | (and attr |
| 112 | (setq sum (+ sum (nth 7 attr))) | ||
| 113 | (insert (ls-lisp-format short attr switches)))) | ||
| 114 | ;; Fill in total size of all files: | 114 | ;; Fill in total size of all files: |
| 115 | (save-excursion | 115 | (save-excursion |
| 116 | (search-backward "total \007") | 116 | (search-backward "total \007") |