From: Sean Whitton Date: Wed, 12 Mar 2025 02:33:55 +0000 (+0800) Subject: ; Document recent change to diff-apply-buffer X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=45bef4bd4e51d7f5d69339bbb51b84ab9a4c29e1;p=emacs.git ; Document recent change to diff-apply-buffer * doc/emacs/files.texi (Diff Mode): * etc/NEWS: Document diff-apply-buffer considering an active region and its new prefix argument. (cherry picked from commit 9838b88c2e154fd4a319e06612b385f20c286177) --- diff --git a/doc/emacs/files.texi b/doc/emacs/files.texi index 0d03e84a60d..d2889efc9d3 100644 --- a/doc/emacs/files.texi +++ b/doc/emacs/files.texi @@ -1782,7 +1782,9 @@ confirm you really want to revert and kill the hunk. You can customize @findex diff-apply-buffer @item C-c @key{RET} a Apply all the hunks in the buffer (@code{diff-apply-buffer}). If the -diffs were applied successfully, save the changed buffers. +region is active, apply all hunks that the region overlaps; otherwise, +apply all hunks. With a prefix argument, reverse-apply the hunks. +If the diffs were applied successfully, save the changed buffers. @findex diff-delete-other-hunks @item C-c @key{RET} n