# HG changeset patch # User Chong Yidong # Date 1240018913 0 # Node ID 31ae0e578b40811f2a905b52de5d9e7580cc8cfa # Parent 387b4a4bbc9b26599bd6f2e9797384af0d6d46e0 * files.texi (Save Commands): Mention diff-buffer-with-file. (Comparing Files): Document diff-buffer-with-file. Suggested by Magnus Henoch (Bug#3036). diff -r 387b4a4bbc9b -r 31ae0e578b40 doc/emacs/ChangeLog --- a/doc/emacs/ChangeLog Fri Apr 17 19:04:49 2009 +0000 +++ b/doc/emacs/ChangeLog Sat Apr 18 01:41:53 2009 +0000 @@ -1,3 +1,9 @@ +2009-04-18 Chong Yidong + + * files.texi (Save Commands): Mention diff-buffer-with-file. + (Comparing Files): Document diff-buffer-with-file. Suggested by Magnus + Henoch (Bug#3036). + 2009-03-15 Glenn Morris * sending.texi (Mail Format): Replace "Sender" with "Message-Id", since diff -r 387b4a4bbc9b -r 31ae0e578b40 doc/emacs/files.texi --- a/doc/emacs/files.texi Fri Apr 17 19:04:49 2009 +0000 +++ b/doc/emacs/files.texi Sat Apr 18 01:41:53 2009 +0000 @@ -440,8 +440,9 @@ View mode, you get back to @code{save-some-buffers}, which asks the question again. @item d -Diff the buffer against its corresponding file, so you can see -what changes you would be saving. +Diff the buffer against its corresponding file, so you can see what +changes you would be saving. This calls the command +@code{diff-buffer-with-file} (@xpref{Comparing Files}). @item C-h Display a help message about these options. @end table @@ -1276,6 +1277,11 @@ @code{diff-backup} compares it with the source file that it is a backup of. In all other respects, this behaves like @kbd{M-x diff}. +@findex diff-buffer-with-file + The command @kbd{M-x diff-buffer-with-file} compares a specified +buffer with its corresponding file. This shows you what changes you +would make to the file if you save the buffer. + @findex compare-windows The command @kbd{M-x compare-windows} compares the text in the current window with that in the next window. (For more information