Mercurial > emacs
changeset 104707:016c8ff34021
(get-free-disk-space): Use / for default-directory.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Sat, 29 Aug 2009 14:58:15 +0000 |
parents | 76a2a2b0cf04 |
children | 2362371c57c2 |
files | lisp/ChangeLog lisp/files.el |
diffstat | 2 files changed, 4 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/ChangeLog Sat Aug 29 14:52:25 2009 +0000 +++ b/lisp/ChangeLog Sat Aug 29 14:58:15 2009 +0000 @@ -1,5 +1,7 @@ 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca> + * files.el (get-free-disk-space): Use / for default-directory. + * textmodes/ispell.el (ispell-accept-output, ispell-command-loop): Use with-current-buffer.
--- a/lisp/files.el Sat Aug 29 14:52:25 2009 +0000 +++ b/lisp/files.el Sat Aug 29 14:58:15 2009 +0000 @@ -5377,17 +5377,13 @@ (let ((fsinfo (file-system-info dir))) (if fsinfo (format "%.0f" (/ (nth 2 fsinfo) 1024)))) + (setq dir (expand-file-name dir)) (save-match-data (with-temp-buffer (when (and directory-free-space-program ;; Avoid failure if the default directory does ;; not exist (Bug#2631, Bug#3911). - (let ((default-directory default-directory)) - (setq dir (expand-file-name dir)) - (unless (and (not (file-remote-p default-directory)) - (file-directory-p default-directory) - (file-readable-p default-directory)) - (setq default-directory "/")) + (let ((default-directory "/") (eq (call-process directory-free-space-program nil t nil directory-free-space-args