buffer-modified-p
buffer-modified-p is a built-in function in `C source code
'.
(buffer-modified-p &optional BUFFER)
Return t if BUFFER was modified since its file was last read or saved.
No argument or nil as argument means use current buffer as BUFFER.