GNU bug report logs -
#73387
30.0.90; C-x v v in diff-mode doesn't work after C-c C-n
Previous Next
Reported by: Sean Whitton <spwhitton <at> spwhitton.name>
Date: Fri, 20 Sep 2024 16:10:01 UTC
Severity: normal
Found in version 30.0.90
Done: Sean Whitton <spwhitton <at> spwhitton.name>
Bug is archived. No further changes may be made.
Full log
Message #65 received at 73387 <at> debbugs.gnu.org (full text, mbox):
Hello,
On Mon 30 Sep 2024 at 05:15pm +03, Eli Zaretskii wrote:
>> Cc: 73387 <at> debbugs.gnu.org, monnier <at> iro.umontreal.ca,
>> Juri Linkov <juri <at> linkov.net>
>> From: Sean Whitton <spwhitton <at> spwhitton.name>
>> Date: Mon, 30 Sep 2024 21:10:04 +0800
>>
>> +Delete all hunks other than the current hunk. If the region is active,
>> +then delete all hunks other than those the region overlaps.
>
> We usually describe what happens when the region is active, then what
> happens "otherwise".
I think in the case of this command it's better to describe the
region-inactive case first.
>> +*** New command 'diff-delete-other-hunks' bound to C-c RET k.
>> +This command deletes hunks other than the current hunk.
>> +It is useful to prepare a *vc-diff* buffer for committing a single hunk.
>
> This doesn't mention the active-region case.
Added that.
>> +(defun diff-delete-other-hunks (&optional beg end)
>> + "Delete hunks other than this one.
>
> Which "this hunk"? Did you mean "current hunk"?
Indeed I did, thank you.
--
Sean Whitton
This bug report was last modified 281 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.