all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH] show difference when recovering file
@ 2012-12-16 16:56 Ivan Kanis
  2012-12-16 18:12 ` martin rudalics
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Ivan Kanis @ 2012-12-16 16:56 UTC (permalink / raw)
  To: emacs devel

Hi,

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
                  (unwind-protect
+                      (diff file file-name)
                      (yes-or-no-p (format "Recover auto save file %s? " file-name))
                    (when (window-live-p window)
                      (quit-restore-window window 'kill)))))
-- 
Ivan Kanis
http://ivan.kanis.fr

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



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2012-12-17 23:15 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-16 16:56 [PATCH] show difference when recovering file Ivan Kanis
2012-12-16 18:12 ` martin rudalics
2012-12-16 21:55 ` Stefan Monnier
2012-12-17 10:53   ` Ivan Kanis
2012-12-17 14:16     ` Stefan Monnier
2012-12-17 16:04       ` Ivan Kanis
2012-12-17 17:50         ` Stefan Monnier
2012-12-17 20:27           ` Ivan Kanis
2012-12-17 17:03       ` Wolfgang Jenkner
2012-12-17 23:15         ` Stephen J. Turnbull
2012-12-17 17:35       ` Achim Gratz
2012-12-17  9:27 ` Juri Linkov
2012-12-17 11:16   ` Ivan Kanis

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.