summaryrefslogtreecommitdiff
path: root/doc/emacs/files.texi
diff options
context:
space:
mode:
authorDima Kogan <dima@secretsauce.net>2020-10-30 14:04:06 +0100
committerLars Ingebrigtsen <larsi@gnus.org>2020-10-30 14:04:06 +0100
commit0836335cdff727142a8a2831942f42b18cb5c780 (patch)
tree911cd9ca1ef05fbdc20818b02015e52e403ef2fc /doc/emacs/files.texi
parent32c5f1c7a8da0c0dd9de126c966af8c7cd382970 (diff)
downloademacs-0836335cdff727142a8a2831942f42b18cb5c780.tar.gz
emacs-0836335cdff727142a8a2831942f42b18cb5c780.tar.bz2
emacs-0836335cdff727142a8a2831942f42b18cb5c780.zip
Add a new command to regenerate a hunk in diff-mode
* lisp/vc/diff-mode.el (diff-refresh-hunk): New function (bug#44312). (diff-mode-map): Bind C-c C-l.
Diffstat (limited to 'doc/emacs/files.texi')
-rw-r--r--doc/emacs/files.texi4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/emacs/files.texi b/doc/emacs/files.texi
index 51e8bd1382f..eb4353b6784 100644
--- a/doc/emacs/files.texi
+++ b/doc/emacs/files.texi
@@ -1629,6 +1629,10 @@ Convert the entire buffer to unified diff format
unified format to context format. When the mark is active, convert
only the hunks within the region.
+@item C-c C-l
+@findex diff-refresh-hunk
+Re-generate the current hunk (@code{diff-refresh-hunk}).
+
@item C-c C-w
@findex diff-ignore-whitespace-hunk
Re-generate the current hunk, disregarding changes in whitespace