EMACS how to reset buffer-modified flag when buffer is equal file -


Is there a way to reset the buffer-modified flag when the buffer is equal to the file but marked as modified? In this case, I want the EMACs not to ask me to save.

Install you diff , it will:

 "Buffer modified flag update" (interactive) (let * ((buffer (current buffer) (basefile (or (buffer-file-name buffer) (error "buffer% S does not have any related file "buffer") (tempfile (make-temp-file "buffer-content-")) () with buffer buffer (save-restriction (wide) (writing area (point-min) (point -most) temporary zero 'silent)) (if (= (call-process " ("File buffer matches file")) (message "buffer does not match")) (Delete file temp file)) < / Code>   

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -