aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorSean Whitton2024-09-30 21:08:38 +0800
committerSean Whitton2024-10-01 08:56:59 +0800
commitb64f69f6dcc08e5aeea0464f6d8b560ed7002d36 (patch)
treea76e63f2abbc3790af79d090ebf3b3c703165b03 /doc
parentf95d4208b6bcfbbf95c956d8a66faa92aa5e4965 (diff)
downloademacs-b64f69f6dcc08e5aeea0464f6d8b560ed7002d36.tar.gz
emacs-b64f69f6dcc08e5aeea0464f6d8b560ed7002d36.zip
New command diff-delete-other-hunks
* lisp/vc/diff-mode.el (diff-delete-other-hunks): New command (bug#73387). (diff-mode-map): Bind the new command to C-c RET n. (diff-mode-menu): New entry for the new command. (vc-next-action): Stop, and warn, if the user attempts to commit a patch from a narrowed buffer (bug#73387). * doc/emacs/files.texi (Diff Mode): * etc/NEWS: Document the new command.
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/files.texi5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/emacs/files.texi b/doc/emacs/files.texi
index a3a8c854aa6..67a1a3be3ff 100644
--- a/doc/emacs/files.texi
+++ b/doc/emacs/files.texi
@@ -1703,6 +1703,11 @@ confirm you really want to revert and kill the hunk. You can customize
1703Apply all the hunks in the buffer (@code{diff-apply-buffer}). If the 1703Apply all the hunks in the buffer (@code{diff-apply-buffer}). If the
1704diffs were applied successfully, save the changed buffers. 1704diffs were applied successfully, save the changed buffers.
1705 1705
1706@findex diff-delete-other-hunks
1707@item C-c @key{RET} n
1708Delete all hunks other than the current hunk. If the region is active,
1709then delete all hunks that the region does not overlap.
1710
1706@findex diff-refine-hunk 1711@findex diff-refine-hunk
1707@item C-c C-b 1712@item C-c C-b
1708Highlight the changes of the hunk at point with a finer granularity 1713Highlight the changes of the hunk at point with a finer granularity