browse-url-save-file

browse-url-save-file is a variable defined in `browse-url.el'.
Its value is
nil


Documentation:
If non-nil, save the buffer before displaying its file.
Used by the `browse-url-of-file' command.

You can customize this variable.