Eli Zaretskii writes: >> From: Philip Kaludercic >> Cc: juri@linkov.net, 65380@debbugs.gnu.org >> Date: Tue, 20 Aug 2024 21:35:06 +0000 >> >> > Yes, but the connection between that and what you mean by "deleted >> > text" might not be obvious to everyone. >> >> OK on both counts, here is the updated version: > > Thanks. > >> +*** New command 'diff-kill-ring-save' >> +This command copies out the modified contents out of a diff, without > ^^^ ^^^ > One of these two "outs"s should be removed, I think. > >> +having to apply it first. If the selected range extends a hunk, the >> +commands attempts to look up and copy the text between from the >> +referenced file. > > I think it is better to say "copies to the kill-ring the modified > contents..." Ugh, I forgot to amend by last patch, this is the current version: This command copies to the 'kill-ring' a region of text modified according to diffs in the current buffer, but without applying the diffs to the original text. If the selected range extends a hunk, the commands attempts to look up and copy the text in-between the hunks. I am thinking about splitting the first sentence up into This command copies text out of a diff to the 'kill-ring'. By default it will use the text the diff would modify, without having to apply a hunk. If the selected range extends a hunk, the commands attempts to look up and copy the text in-between the hunks. WDYT? Here is the patch as it is: