emacs-devel
[Top][All Lists]
Advanced

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

Re: Quotes in Dired listing switches


From: Michael Albinus
Subject: Re: Quotes in Dired listing switches
Date: Tue, 29 Dec 2009 10:10:49 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (gnu/linux)

Juri Linkov <address@hidden> writes:

> There is another related problem: Tramp doesn't display the Dired buffer
> when an older version of `ls' on the remote machine doesn't support
> a new switch supported by the local newer version of `ls'.
>
> Something like below could handle this situation to remove unsupported
> switches before running `ls' on the remote machine:
>
> (add-hook 'dired-before-readin-hook
>           (lambda ()
>             (when (file-remote-p default-directory)
>               (setq dired-actual-switches
>                     (replace-regexp-in-string "--block-size='1" ""
>                                               dired-actual-switches)))))
>
> but this is an ugly hack.  Do you have an idea how to handle this problem?

There is an idea to introduce server-local environment variables. Then
you could keep different settings for `dired-actual-switches', depending
on the host Tramp is accessing.

See the todo on the end of tramp.el. I haven't started an implementation yet.

Best regards, Michael.




reply via email to

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