GNU bug report logs -
#65380
[PATCH] Add command to copy contents in a diff-mode buffer
Previous Next
Reported by: Philip Kaludercic <philipk <at> posteo.net>
Date: Sat, 19 Aug 2023 09:55:01 UTC
Severity: normal
Tags: patch
Done: Philip Kaludercic <philipk <at> posteo.net>
Bug is archived. No further changes may be made.
Full log
Message #137 received at 65380 <at> debbugs.gnu.org (full text, mbox):
> From: Philip Kaludercic <philipk <at> posteo.net>
> Cc: juri <at> linkov.net, 65380 <at> debbugs.gnu.org
> Date: Wed, 21 Aug 2024 19:40:01 +0000
>
> 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?
Two comments:
. "copies text out of a diff" is hard to understand. My
understanding is that it takes the original text, modifies it using
the diff hunks in the region, and copies the result to kill-ring.
That's what I tried to describe in the first sentence that you now
want to split. If that interpretation is correct, then "copies
text out of a diff" makes it much less clear.
. The split version says "by default", but doesn't clearly say what
will happen "not by default". If the next sentence is that
"non-default" case, then it is better to join these two sentences:
"By default, ..., but if the selected text extends a hunk, ...".
And in that latter case, I'm not sure I understand the significance
of "by default", to tell the truth.
Or maybe I simply misunderstand what the patch does, as I'm not an
expert on diff-mode and don't know well enough what the various
functions you call do. But then neither will the prospective reader
of this NEWS entry.
Thanks.
This bug report was last modified 273 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.