Andreas Schwab writes: > Probably a better way to solve that is to create a way to tell > insert-file-contents the original file name to be used for deciding the > coding system. I've compiled a patch, which checks during insert-file-contents and write-region, whether a remote file name matches an expression in file-name-coding-system-alist. If yes, a new entry is prepended for the same coding system, but matching the temporary file name. William, could you, please, test whether it works for you? > Andreas. Best regards, Michael.