[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] show difference when recovering file

From: Ivan Kanis
Subject: [PATCH] show difference when recovering file
Date: Sun, 16 Dec 2012 17:56:12 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)


This trivial patch offer to see the difference between the current file
and the backup file. This helps making the decision whether one wants to
recover the file.

--- src/files.el        2012-12-16 17:49:04.926869000 +0100
+++ ivan/files.el       2012-12-16 17:50:12.051423000 +0100
@@ -5370,6 +5370,7 @@
            #'(lambda (window _value)
                (with-selected-window window
+                      (diff file file-name)
                      (yes-or-no-p (format "Recover auto save file %s? " 
                    (when (window-live-p window)
                      (quit-restore-window window 'kill)))))
Ivan Kanis

When a man is attempting to describe another person's character, he
may be right or he may be wrong, but in one thing he will always
succeed,that is, in describing himself.
    -- Samuel Taylor Coleridge

reply via email to

[Prev in Thread] Current Thread [Next in Thread]