From 917d7338c75e4c4457f949d88f1e65d79f2e19a2 Mon Sep 17 00:00:00 2001 From: Haruyasu Ueda Date: Fri, 8 May 2015 06:16:17 +0900 Subject: [PATCH] #11 enhancement --- real-auto-save.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 ()