aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/files.texi15
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/emacs/files.texi b/doc/emacs/files.texi
index 709cb0910e6..b7d6b6f9f7b 100644
--- a/doc/emacs/files.texi
+++ b/doc/emacs/files.texi
@@ -1682,6 +1682,21 @@ reverse of the hunk, which changes the ``new'' version into the ``old''
1682version. If @code{diff-jump-to-old-file} is non-@code{nil}, apply the 1682version. If @code{diff-jump-to-old-file} is non-@code{nil}, apply the
1683hunk to the ``old'' version of the file instead. 1683hunk to the ``old'' version of the file instead.
1684 1684
1685@findex diff-revert-and-kill-hunk
1686@item C-c M-r
1687Reverse-apply this hunk to the target file, and then kill it
1688(@code{diff-revert-and-kill-hunk}). Save the buffer visiting the target
1689file.
1690
1691This command is useful in buffers generated by @w{@kbd{C-x v =}} and
1692@w{@kbd{C-x v D}} (@pxref{Old Revisions}). These buffers present you
1693with a view of the changes you've made, and then you can use this
1694command to drop changes you didn't intend, or no longer want.
1695
1696This is a destructive operation, so by default, this command asks you to
1697confirm you really want to reverse-apply and kill the hunk. You can
1698customize @code{diff-ask-before-revert-and-kill-hunk} to change that.
1699
1685@findex diff-apply-buffer 1700@findex diff-apply-buffer
1686@item C-c @key{RET} a 1701@item C-c @key{RET} a
1687Apply all the hunks in the buffer (@code{diff-apply-buffer}). If the 1702Apply all the hunks in the buffer (@code{diff-apply-buffer}). If the