bug-gnu-emacs
[Top][All Lists]
Advanced

[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: Michael Albinus
Subject: bug#44289: 28.0.50; Tramp SSH on remote BSD: No file on this line
Date: Sat, 14 Nov 2020 10:09:12 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

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,
> Jean

Best regards, Michael.





reply via email to

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