diff options
| author | Sean Whitton | 2024-09-30 21:08:38 +0800 |
|---|---|---|
| committer | Sean Whitton | 2024-10-01 08:56:59 +0800 |
| commit | b64f69f6dcc08e5aeea0464f6d8b560ed7002d36 (patch) | |
| tree | a76e63f2abbc3790af79d090ebf3b3c703165b03 /doc | |
| parent | f95d4208b6bcfbbf95c956d8a66faa92aa5e4965 (diff) | |
| download | emacs-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.texi | 5 |
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 | |||
| 1703 | Apply all the hunks in the buffer (@code{diff-apply-buffer}). If the | 1703 | Apply all the hunks in the buffer (@code{diff-apply-buffer}). If the |
| 1704 | diffs were applied successfully, save the changed buffers. | 1704 | diffs were applied successfully, save the changed buffers. |
| 1705 | 1705 | ||
| 1706 | @findex diff-delete-other-hunks | ||
| 1707 | @item C-c @key{RET} n | ||
| 1708 | Delete all hunks other than the current hunk. If the region is active, | ||
| 1709 | then 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 |
| 1708 | Highlight the changes of the hunk at point with a finer granularity | 1713 | Highlight the changes of the hunk at point with a finer granularity |