From: Sean Whitton Date: Thu, 26 Sep 2024 19:02:05 +0000 (+0100) Subject: ; * etc/NEWS: Don't say that C-c M-r can undo whole commits. X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1b1e01fe856acc7957597654c6530fb9b6cdfd6d;p=emacs.git ; * etc/NEWS: Don't say that C-c M-r can undo whole commits. (cherry picked from commit 37bed70f4c0a2e33de238eab90d7470d34366f13) --- diff --git a/etc/NEWS b/etc/NEWS index 19bc9c3c43f..65b7475272a 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -331,8 +331,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 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'. +hunk), and then removes the hunk from the diffs. +This is useful to undo or revert changes, committed and uncommitted, when +you are in buffers generated by 'C-x v =' and 'C-x v D'. ** php-ts-mode