From: Chong Yidong Date: Sat, 18 Apr 2009 01:41:53 +0000 (+0000) Subject: * files.texi (Save Commands): Mention diff-buffer-with-file. X-Git-Tag: emacs-pretest-23.0.93~100 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bc323c0489c158d8014cf52f8646e7080a5b27f1;p=emacs.git * files.texi (Save Commands): Mention diff-buffer-with-file. (Comparing Files): Document diff-buffer-with-file. Suggested by Magnus Henoch (Bug#3036). --- diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index ca3b2cc51fa..3fcbde1c68c 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog @@ -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 --git a/doc/emacs/files.texi b/doc/emacs/files.texi index aad2b4adddc..00e3890693b 100644 --- a/doc/emacs/files.texi +++ b/doc/emacs/files.texi @@ -440,8 +440,9 @@ View the buffer that you are currently being asked about. When you exit 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 @@ most recent backup. If you specify the name of a backup file, @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