Hello, On Thu, Sep 26, 2024 at 07:25:03AM -0400, Eli Zaretskii wrote: > --- a/doc/emacs/files.texi > +++ b/doc/emacs/files.texi > @@ -1675,6 +1675,7 @@ In a multi-file patch, kill the current file part. > > @findex diff-apply-hunk > @cindex patches, applying > +@cindex reverse-apply diffs > @item C-c C-a > Apply this hunk to its target file (@code{diff-apply-hunk}). With a > prefix argument of @kbd{C-u}, revert this hunk, i.e.@: apply the Nice. > diff --git a/etc/NEWS b/etc/NEWS > index feadc54c17a..cdc7f47b7a9 100644 > --- a/etc/NEWS > +++ b/etc/NEWS > @@ -365,8 +365,9 @@ command attempts to look up and copy the text in-between the hunks. > > +++ > *** New command 'diff-revert-and-kill-hunk' bound to C-c M-r. > -This command reverse-applies the hunk at point, and then kills it. > -This is useful in buffers generated by C-x v = and C-x v D. > +This command reverts the hunk at point (i.e., applies the reverse of the > +hunk), and then removes the hunk from the diffs. This is useful to undo > +commits when you are in buffers generated by 'C-x v =' and 'C-x v D'. ^^^^^^^ I think this should be "changes", right? -- Sean Whitton