[Top][All Lists]
[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.
- Quotes in Dired listing switches, Juri Linkov, 2009/12/23
- Re: Quotes in Dired listing switches, Stefan Monnier, 2009/12/23
- Re: Quotes in Dired listing switches, Michael Albinus, 2009/12/26
- Re: Quotes in Dired listing switches, Juri Linkov, 2009/12/28
- Re: Quotes in Dired listing switches, Michael Albinus, 2009/12/28
- Re: Quotes in Dired listing switches, Juri Linkov, 2009/12/28
- Re: Quotes in Dired listing switches,
Michael Albinus <=
- Re: Quotes in Dired listing switches, Juri Linkov, 2009/12/29
- Re: Quotes in Dired listing switches, Michael Albinus, 2009/12/29
- Re: Quotes in Dired listing switches, Stefan Monnier, 2009/12/30
- Re: Quotes in Dired listing switches, Michael Albinus, 2009/12/30