[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tramp (2.2.13-pre); Show directory size a la dired

From: Michael Albinus
Subject: Re: tramp (2.2.13-pre); Show directory size a la dired
Date: Tue, 01 Dec 2015 10:09:59 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Tino Calancha <address@hidden> 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

Best regards, Michael.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]