Next: , Previous: , Up: Modifying Buffers   [Index]


7.4.6.2 set-buffer-modified-p

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))