[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#65380: [PATCH] Add command to copy contents in a diff-mode buffer
From: |
Eli Zaretskii |
Subject: |
bug#65380: [PATCH] Add command to copy contents in a diff-mode buffer |
Date: |
Tue, 22 Aug 2023 14:29:34 +0300 |
> From: Philip Kaludercic <philipk@posteo.net>
> Cc: juri@linkov.net, 65380@debbugs.gnu.org
> Date: Tue, 22 Aug 2023 11:06:28 +0000
>
> Eli Zaretskii <eliz@gnu.org> writes:
>
> >> From: Philip Kaludercic <philipk@posteo.net>
> >> Cc: Juri Linkov <juri@linkov.net>, 65380@debbugs.gnu.org
> >> Date: Sun, 20 Aug 2023 18:24:53 +0000
> >>
> >> Eli Zaretskii <eliz@gnu.org> writes:
> >>
> >> >> From: Juri Linkov <juri@linkov.net>
> >> >> Cc: Philip Kaludercic <philipk@posteo.net>, 65380@debbugs.gnu.org
> >> >> Date: Sun, 20 Aug 2023 19:30:03 +0300
> >> >>
> >> >> Regarding the implementation, there is the function
> >> >> 'diff-hunk-text', but it's limited to one hunk only.
> >> >
> >> > So is the proposed new function, isn't it?
> >>
> >> No, the current proposal doesn't have any special handling for text
> >> between hunks.
> >
> > AFAIU, the function you proposed removes the first character from each
> > line in the region, so how will it handle multiple hunks?
> >
> > Or maybe I misunderstood what you meant by "No"?
>
> The command does not error when the region selects more than just a
> sub-region of a hunk, but it doesn't do anything useful either.
Then how about making a command that is basically a wrapper around
diff-hunk-text, and allows to copy bodies of N hunks, given an
argument of N? Wouldn't that be more useful?
- bug#65380: [PATCH] Add command to copy contents in a diff-mode buffer, (continued)
- bug#65380: [PATCH] Add command to copy contents in a diff-mode buffer, Eli Zaretskii, 2023/08/19
- bug#65380: [PATCH] Add command to copy contents in a diff-mode buffer, Philip Kaludercic, 2023/08/19
- bug#65380: [PATCH] Add command to copy contents in a diff-mode buffer, Sean Whitton, 2023/08/19
- bug#65380: [PATCH] Add command to copy contents in a diff-mode buffer, Rudolf Adamkovič, 2023/08/19
- bug#65380: [PATCH] Add command to copy contents in a diff-mode buffer, Daniel Martín, 2023/08/19
- bug#65380: [PATCH] Add command to copy contents in a diff-mode buffer, Juri Linkov, 2023/08/20
- bug#65380: [PATCH] Add command to copy contents in a diff-mode buffer, Eli Zaretskii, 2023/08/20
- bug#65380: [PATCH] Add command to copy contents in a diff-mode buffer, Philip Kaludercic, 2023/08/20
- bug#65380: [PATCH] Add command to copy contents in a diff-mode buffer, Eli Zaretskii, 2023/08/20
- bug#65380: [PATCH] Add command to copy contents in a diff-mode buffer, Philip Kaludercic, 2023/08/22
- bug#65380: [PATCH] Add command to copy contents in a diff-mode buffer,
Eli Zaretskii <=
- bug#65380: [PATCH] Add command to copy contents in a diff-mode buffer, Jim Porter, 2023/08/20
- bug#65380: [PATCH] Add command to copy contents in a diff-mode buffer, Gregory Heytings, 2023/08/20
- bug#65380: [PATCH] Add command to copy contents in a diff-mode buffer, Jim Porter, 2023/08/20
- bug#65380: [PATCH] Add command to copy contents in a diff-mode buffer, Gregory Heytings, 2023/08/20
- bug#65380: [PATCH] Add command to copy contents in a diff-mode buffer, Jim Porter, 2023/08/20
- bug#65380: [PATCH] Add command to copy contents in a diff-mode buffer, Gregory Heytings, 2023/08/20
- bug#65380: [PATCH] Add command to copy contents in a diff-mode buffer, Gregory Heytings, 2023/08/20
- bug#65380: [PATCH] Add command to copy contents in a diff-mode buffer, Jim Porter, 2023/08/20