Eli Zaretskii writes: >> I've tested the scenario (editing a remote file from Nautilus via Emacs) >> with GVFS volumes of different types. ftp and afp-volume work w/o >> problems. ssh/sftp behaves as reported (problem with file locking). >> >> dav(s), google-drive and smb-share give another error: >> >> Error: (file-error "Doing chmod" "Operation not supported" >> "/run/user/1000/gvfs/smb-share:server=detlef,share=netlogon/tmp/tramp-test1H01tS") >> >> So it doesn't make sense to implement the workaround in general. What we >> could do instead is to map all files under "/run/user/%d/gvfs" to the >> respective Tramp file name. Don't know whether it is worth the effort. >> >> After all, I believe we shall simply document the behavior, and the >> workaround for ssh/sftp. > > If we cannot fix this, then documenting sounds good to me. In > etc/PROBLEMS, perhaps? I've assembled the appended patch. This includes setting of the safe-local-variable property of create-lockfiles, 'cos it doesn't hurt. Comments?