Go to the first, previous, next, last section, table of contents.


Modifications to Buffers

Each buffer maintains a counter which is incremented each time the contents of the buffer is modified. It also holds the value of this counter when the buffer was last saved, when the two numbers are different the buffer is classed as have being modified.

Function: buffer-modified-p &optional buffer
This function returns t when the buffer has been modified.

Function: set-buffer-modified buffer status
Sets the modified status of the buffer buffer. When status is nil the buffer will appear to be unmodified, otherwise it will look modified.


Go to the first, previous, next, last section, table of contents.