]> git.eshelyaron.com Git - emacs.git/commit
New command diff-revert-and-kill-hunk
authorSean Whitton <spwhitton@spwhitton.name>
Tue, 24 Sep 2024 08:38:43 +0000 (09:38 +0100)
committerEshel Yaron <me@eshelyaron.com>
Fri, 27 Sep 2024 10:22:59 +0000 (12:22 +0200)
commit8a0219e3754295da9a00f5fa07f875c3657faebb
tree38af43f4407f9949027a1b83bcac8b66e8a4d2a0
parent70234fdb7405b36d7ab95a08577aaf6ac44dee15
New command diff-revert-and-kill-hunk

* lisp/vc/diff-mode.el (diff-revert-and-kill-hunk): New
command (bug#73407).
(diff-ask-before-revert-and-kill-hunk): New user option.
(diff-apply-buffer): New optional BEG, END and REVERSE
arguments.  Return nil if buffers were saved, or the number of
failed applications.
(diff-mode-map): Bind the new command to C-c M-r.
(diff-mode-menu): New entry for the new command.
* doc/emacs/files.texi (Diff Mode):
* etc/NEWS: Document the change.

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