diff --git a/real-auto-save.el b/real-auto-save.el index 6d97d71..52b398a 100644 --- a/real-auto-save.el +++ b/real-auto-save.el @@ -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 ()