[Top][All Lists]

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

`tramp-**-handle-insert-directory` does not handle empty directories wel

From: Ruiyang Wu
Subject: `tramp-**-handle-insert-directory` does not handle empty directories well
Date: Sat, 4 Mar 2023 18:51:02 -0500


Thanks for maintaining this great software. Recently I started to use Tramp and 
found that opening an empty directory in dired-mode from the remote machine 
(ssh in my use case) displays a string "//DIRED-OPTIONS// 
--quoting-style=literal” which is not intended for human read. Opening an empty 
directory on my local machine does not have this. It looks like the following 
code from files.el deals with this scenario:
>       ;; Take care of the case where the ls output contains a
>       ;; "//DIRED-OPTIONS//"-line, but no "//DIRED//"-line
>       ;; and we went one line too far back (see above).
>       (forward-line 1))
>     (if (looking-at "//DIRED-OPTIONS//")
> (delete-region (point) (progn (forward-line 1) (point))))))

I use Emacs 28.2 with built in Tramp I tried the latest Tramp and see the same behavior.


reply via email to

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