Next: restore-buffer-modified-p, Previous: buffer-modified-p, Up: Modifying Buffers [Index]
This function marks the current buffer as modified if FLAG is non-‘nil’, or as unmodified if the flag is ‘nil’.
Another effect of calling this function is to cause unconditional redisplay of the mode line for the current buffer.
force-mode-line-update
(set-buffer-modified-p (buffer-modified-p))