I have stack traces that are coming either from a process or remote server that have ^M at the end of the lines. I can disable read only mode and remove trailing white space, but it would be nice if I could just hide the unwanted characters automatically. I tried playing with set-buffer-process-coding-system, but it says no process.
This question is not the same as the many others asking about ^M characters because I'm talking about a read only buffer. There is no file being visited, so I can't set the file encoding.