Function: dired-backup-diff
dired-backup-diff is an autoloaded, interactive and byte-compiled
function defined in dired-aux.el.gz.
Signature
(dired-backup-diff &optional SWITCHES)
Documentation
Diff this file with its backup file or vice versa.
Uses the latest backup, if there are several numerical backups.
If this file is a backup, diff it with its original.
The backup file is the first file given to diff.
With prefix arg, prompt for argument SWITCHES which is options for diff.
Probably introduced at or before Emacs version 24.3.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/dired-aux.el.gz
;;;###autoload
(defun dired-backup-diff (&optional switches)
"Diff this file with its backup file or vice versa.
Uses the latest backup, if there are several numerical backups.
If this file is a backup, diff it with its original.
The backup file is the first file given to `diff'.
With prefix arg, prompt for argument SWITCHES which is options for `diff'."
(interactive
(if current-prefix-arg
(list (read-string "Options for diff: "
(if (stringp diff-switches)
diff-switches
(mapconcat #'identity diff-switches " "))))
nil))
(diff-backup (dired-get-filename) switches))