GNU bug report logs -
#50630
28.0.50; list-directory shows free space for current directory, not the specified one
Previous Next
Reported by: John Cummings <john <at> rootabega.net>
Date: Thu, 16 Sep 2021 23:39:02 UTC
Severity: normal
Found in version 28.0.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> Date: Fri, 17 Sep 2021 20:32:53 +0000
> From: John Cummings <john <at> rootabega.net>
> Cc: Drew Adams <drew.adams <at> oracle.com>, 50630-done <at> debbugs.gnu.org
>
> On Friday, September 17th, 2021 at 2:04 PM, Eli Zaretskii <eliz <at> gnu.org> wrote:
>
> > > From: Drew Adams drew.adams <at> oracle.com
> > > I believe the same change is needed in ls-lisp.el, for function `ls-lisp--insert-directory'.
> > >
> > > (let ((available (get-free-disk-space ".")))
> > >
> > > should be:
> > >
> > > (let ((available (get-free-disk-space file)))
> >
> > Why, do you see the wrong values being reported?
>
> The values look wrong to me here.
In my testing, they reflect the correct volume (because the call is in
the buffer whose default-directory is set to the directory we are
going to display), which is why I installed the changes. Please tell
how you test, starting from "emacs -Q", because I'd like to look at
this.
> Thanks for the heads up. I've got a working test for files.el and ls-lisp.el, and after I polish it, I'll also look into how to handle FILE vs ORIG-FILE
Thanks.
This bug report was last modified 3 years and 190 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.