Eli Zaretskii writes: > I tried also Emacs 27.2 on Trisquel. > > Can anyone else reproduce this strange problem? I don't see how we > could debug this without being able to reproduce. Here you have two recordings that might make things clearer. Perhaps, I wasn't clear enough in the first messaage I sent and that's why you are not able to reproduce it, so I hope these recordings will present more context regarding this "possible bug". In the following GIF, you can see that spaces are removed after having finished editing the dired buffer through "dired-toggle-read-only". This can be seen in the output of the "watch" command that is shown in the running shell at the right side.