GNU Emacs Manual - Comparison in Dired

Node: Comparison in Dired Next: Subdirectories in Dired Prev: Transforming File Names Up: Dired

File Comparison with Dired

Here are two Dired commands that compare specified files using diff .

=
Compare the current file (the file at point) with another file (the file at the mark) using the diff program (dired-diff ). The file at the mark is the first argument of diff , and the file at point is the second argument.

M-=
Compare the current file with its latest backup file (dired-backup-diff ). If the current file is itself a backup, compare it with the file it is a backup of; this way, you can compare a file with any backup version of your choice.

The backup file is the first file given to diff .


Next: Subdirectories in Dired Up: Dired