Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
51da8fe2
Commit
51da8fe2
authored
Aug 29, 2009
by
Stefan Monnier
Browse files
(get-free-disk-space): Use / for default-directory.
parent
f2b256fa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
lisp/ChangeLog
lisp/ChangeLog
+2
-0
lisp/files.el
lisp/files.el
+2
-6
No files found.
lisp/ChangeLog
View file @
51da8fe2
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.
...
...
lisp/files.el
View file @
51da8fe2
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment