]> git.eshelyaron.com Git - emacs.git/commit
New command diff-delete-other-hunks
authorSean Whitton <spwhitton@spwhitton.name>
Mon, 30 Sep 2024 13:08:38 +0000 (21:08 +0800)
committerEshel Yaron <me@eshelyaron.com>
Thu, 3 Oct 2024 06:39:29 +0000 (08:39 +0200)
commit10b07e01c037e90dcfee97e087f88beae4833415
tree2d83099357a9824c84de71119305ae4101e2e47c
parenta872090b8fd3c00386517ace31579a7ae219d9e1
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.

(cherry picked from commit b64f69f6dcc08e5aeea0464f6d8b560ed7002d36)
doc/emacs/files.texi
etc/NEWS
lisp/vc/diff-mode.el
lisp/vc/vc.el