View an HTML file, for example, with `K e' (`mh-display-with-external-viewer'). Note that the file modification marker gets set. When you move to the next message, you have to first answer the question, Message 88 modified; discard changes? (yes or no).
This is a regression from Emacs version 24.3.
Actually, I see this with 24.3 on Solaris, e.g., when using "K e" to view a PDF with Evince (GNOME 2).
The message buffer ends up with text like
John Covici also reports getting messages marked as modified when using lynx as the HTML renderer.
I just noticed this comment for mh-mm-display-part:
Maybe something like that is needed for mh-display-with-external-viewer, too?
I am seeing this bug, so it is worth checking out.
Is this still a bug? I used to get "buffer modified",
but I no longer do with Emacs 25 or the 27 release branch.
I still see it sometimes with Emacs 26.3, particularly when viewing PDF
files with Evince. The problem seems to happen when the viewer writes
something to stderr; the error message ends up in the show buffer.
i also still see it.
I can reproduce this in 27.0.91. It appears to be a timing issue with external viewers.
MH-E points all MIME viewers at the show buffer. This works well for internal viewers: they update the show buffer, they finish, and MH-E sets the buffer as unmodified.
This strategy doesn't work as well with external viewers. An external viewer is a background process, and it might write logging or error messages to the show buffer after MH-E has called (set-buffer-modified-p nil).