]> git.eshelyaron.com Git - emacs.git/commitdiff
(get-free-disk-space): Use / for default-directory.
authorStefan Monnier <monnier@iro.umontreal.ca>
Sat, 29 Aug 2009 14:58:15 +0000 (14:58 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sat, 29 Aug 2009 14:58:15 +0000 (14:58 +0000)
lisp/ChangeLog
lisp/files.el

index f2743ad1ee881017b7927aa4eced399b201807af..80b4ff118812a63f2fc5a1be66ce8f59cfdf5c84 100644 (file)
@@ -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.
 
index a23408a0bebb15a576b59575be8cf9cb723226ca..0731d25b8f5dc98e0fe517699373311db003e1e3 100644 (file)
@@ -5377,17 +5377,13 @@ program specified by `directory-free-space-program' if that is non-nil."
        (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