restore-buffer-modified-p
restore-buffer-modified-p is a built-in function in `C source code
'.
(restore-buffer-modified-p FLAG)
Like `set-buffer-modified-p', with a difference concerning redisplay.
It is not ensured that mode lines will be updated to show the modified
state of the current buffer. Use with care.