Skip to content

Commit

Permalink
ChillarAnand#11 enhancement
Browse files Browse the repository at this point in the history
  • Loading branch information
halueda committed May 7, 2015
1 parent 13792e1 commit 917d733
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion real-auto-save.el
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@
(dolist (elem real-auto-save-buffers-list)
(set-buffer elem)
(if (and (buffer-file-name) (buffer-modified-p))
(save-buffer))))
(if (verify-visited-file-modtime)
(save-buffer)
(message (format"%s has changed since visited or saved. Not saved automatically." elem)))
)))
(real-auto-save-restart-timer)))

(defun real-auto-save-remove-buffer-from-list ()
Expand Down

0 comments on commit 917d733

Please sign in to comment.