[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#44289: 28.0.50; Tramp SSH on remote BSD: No file on this line
From: |
Jean Louis |
Subject: |
bug#44289: 28.0.50; Tramp SSH on remote BSD: No file on this line |
Date: |
Sat, 14 Nov 2020 14:19:29 +0300 |
User-agent: |
Mutt/2.0 (3d08634) (2020-11-07) |
* Michael Albinus <michael.albinus@gmx.de> [2020-11-14 12:09]:
> Jean Louis <bugs@gnu.support> writes:
>
> Hi Jean,
>
> > I have found that when I set this:
> >
> > (setq dired-listing-switches "-gohl --group-directories-first")
> >
> > then it is not working because remote ls does not support it. So that
> > is not related to this bug, it can be closed.
> >
> > If you know how to have per-host dired-listing-switches let me know.
>
> This is discussed in the Tramp manual (info "(tramp) Frequently Asked
> Questions")
>
> • Remote host does not understand default options for directory
> listing
>
> Emacs computes the ‘dired’ options based on the local host but if
> the remote host cannot understand the same ‘ls’ command, then set
> them with a hook as follows:
>
> (add-hook
> 'dired-before-readin-hook
> (lambda ()
> (when (file-remote-p default-directory)
> (setq dired-actual-switches "-al"))))
Thank you, that is solved and I guess this may be closed.
Jean