Subject: Re: bug#34610: 27.0.50; wdired gets rename file and directory errors when using gls and -F or --classify switch

From: "Basil L. Contovounesios" <[email-masked]>
Date: Sat, 27 Apr 2019 00:58:36 +0100

Jeffrey Spencer <[email-masked]> writes:

> This is the only setup besides -Q default:
> (setq insert-directory-program "gls" dired-use-ls-dired t)
> (setq dired-listing-switches "-a --classify -lGhHA  --group-directories-first")
> "-a --classify -lGhHA  --group-directories-first"
>
> Renaming directories doesn't work right due to the --classify (-F)
> switches using gls on Mac. Also, probably has problems with
> executables due to adding '*' to the end of the file name but I didn't
> check. I had to right an advice around wdired-change-mode to remove
> the switches and then re-add the -F --classify.
>
> Here is the errors with just a simple truing to add a character to any directory:
>
> Rename ‘/Users/Me/Downloads/youtube/test/k’ to ‘/Users/Me/Downloads/youtube/test/k/’ failed:
> (file-error Renaming Invalid argument /Users/Me/Downloads/youtube/test/k /Users/Me/Downloads/youtube/test/k/k)
> Rename ‘/Users/Me/Downloads/youtube/test/kdkd’ to ‘/Users/Me/Downloads/youtube/test/kdkd/’ failed:
> (file-error Renaming Invalid argument /Users/Me/Downloads/youtube/test/kdkd /Users/Me/Downloads/youtube/test/kdkd/kdkd)
> Rename ‘/Users/Me/Downloads/youtube/test/l’ to ‘/Users/Me/Downloads/youtube/test/l/’ failed:
> (file-error Renaming Invalid argument /Users/Me/Downloads/youtube/test/l /Users/Me/Downloads/youtube/test/l/l)
> Rename ‘/Users/Me/Downloads/youtube/test/kdkd/kdk’ to ‘/Users/Me/Downloads/youtube/test/kdkd/kdk/’ failed:
> (file-error Renaming Invalid argument /Users/Me/Downloads/youtube/test/kdkd/kdk /Users/Me/Downloads/youtube/test/kdkd/kdk/kdk)
>
> 4 rename actions failed

This sounds similar to bug#34915[1], whose fix was recently pushed to
master[2].  Can you please check whether that also fixes your issue?  If
so, I will merge the two reports as duplicate.

[1]: https://debbugs.gnu.org/34915

[2: 6d8e0fc5aa]: Make wdired-mode ignore ls file indicators
  2019-04-25 19:17:23 +0200
  https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=6d8e0fc5aa7673540486af9ecbfc0a3e23c305cf

Thanks,

-- 
Basil