mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-28 07:45:00 +00:00
Fix dired--insert-disk-space
* lisp/dired.el (dired--insert-disk-space): Handle case `get-free-disk-space' returns nil.
This commit is contained in:
parent
756c2099bf
commit
2bd1b1ace8
@ -1650,7 +1650,7 @@ see `dired-use-ls-dired' for more details.")
|
||||
;; Replace "total" with "total used in directory" to
|
||||
;; avoid confusion.
|
||||
(replace-match "total used in directory" nil nil nil 1))
|
||||
(when-let ((available (get-free-disk-space file)))
|
||||
(if-let ((available (get-free-disk-space file)))
|
||||
(cond
|
||||
((eq dired-free-space 'separate)
|
||||
(end-of-line)
|
||||
@ -1672,7 +1672,8 @@ see `dired-use-ls-dired' for more details.")
|
||||
(forward-line 1)
|
||||
(point))
|
||||
(t
|
||||
beg))))))
|
||||
beg))
|
||||
beg))))
|
||||
|
||||
(defun dired-insert-set-properties (beg end)
|
||||
"Add various text properties to the lines in the region, from BEG to END."
|
||||
|
Loading…
Reference in New Issue
Block a user