Tino Calancha <[email protected]> writes:

Hi Tino,

> If possible, it would be nice to show the second line of a dired
> buffer created by tramp,
> similarly as it is shown in local dired buffers: that is, instead of
> total 1234
>
> showing
>
> total used in directory 1234 available 987654321

Your patch is kind of tricky.

> +             (when (re-search-forward "^ *\\(total\\)" nil t)
> +               (let ((available (get-free-disk-space ".")))

`get-free-disk-space' shall not work for remote directories. You bypass
it with the "." directory specification (in fact there is an error in
`get-free-disk-space', which must be fixed).

Before applying your patch to Tramp we shall ensure, that Emacs will
cooperate. That is, we will need a user option which allows
`get-free-disk-space' to work on remote directories. There are also the
variables `directory-free-space-program' and
`directory-free-space-args', which must have proper values on the remote
machine.

Best regards, Michael.

_______________________________________________
Tramp-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/tramp-devel

Reply via email to