diff options
| -rw-r--r-- | lisp/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/files.el | 8 |
2 files changed, 4 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f2743ad1ee8..80b4ff11881 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * files.el (get-free-disk-space): Use / for default-directory. | ||
| 4 | |||
| 3 | * textmodes/ispell.el (ispell-accept-output, ispell-command-loop): | 5 | * textmodes/ispell.el (ispell-accept-output, ispell-command-loop): |
| 4 | Use with-current-buffer. | 6 | Use with-current-buffer. |
| 5 | 7 | ||
diff --git a/lisp/files.el b/lisp/files.el index a23408a0beb..0731d25b8f5 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -5377,17 +5377,13 @@ program specified by `directory-free-space-program' if that is non-nil." | |||
| 5377 | (let ((fsinfo (file-system-info dir))) | 5377 | (let ((fsinfo (file-system-info dir))) |
| 5378 | (if fsinfo | 5378 | (if fsinfo |
| 5379 | (format "%.0f" (/ (nth 2 fsinfo) 1024)))) | 5379 | (format "%.0f" (/ (nth 2 fsinfo) 1024)))) |
| 5380 | (setq dir (expand-file-name dir)) | ||
| 5380 | (save-match-data | 5381 | (save-match-data |
| 5381 | (with-temp-buffer | 5382 | (with-temp-buffer |
| 5382 | (when (and directory-free-space-program | 5383 | (when (and directory-free-space-program |
| 5383 | ;; Avoid failure if the default directory does | 5384 | ;; Avoid failure if the default directory does |
| 5384 | ;; not exist (Bug#2631, Bug#3911). | 5385 | ;; not exist (Bug#2631, Bug#3911). |
| 5385 | (let ((default-directory default-directory)) | 5386 | (let ((default-directory "/") |
| 5386 | (setq dir (expand-file-name dir)) | ||
| 5387 | (unless (and (not (file-remote-p default-directory)) | ||
| 5388 | (file-directory-p default-directory) | ||
| 5389 | (file-readable-p default-directory)) | ||
| 5390 | (setq default-directory "/")) | ||
| 5391 | (eq (call-process directory-free-space-program | 5387 | (eq (call-process directory-free-space-program |
| 5392 | nil t nil | 5388 | nil t nil |
| 5393 | directory-free-space-args | 5389 | directory-free-space-args |