[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: prefix argument for diff-mode C-c RET a
From: |
Juri Linkov |
Subject: |
Re: prefix argument for diff-mode C-c RET a |
Date: |
Tue, 11 Mar 2025 09:19:59 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) |
>> I remember that while implementing 'diff-revert-and-kill-hunk',
>> we added a new argument 'reverse' to 'diff-apply-buffer'.
>> Does its semantics differ from the 'reverse' argument
>> of 'diff-apply-hunk'?
>
> I believe the semantics are the same.
>
>> Or we could just add "P" to its interactive spec?
>
> (interactive (list nil nil t)) I think.
Probably (interactive (list nil nil current-prefix-arg))
Or even better to take into account region boundaries
on '(use-region-p)' like in other diff-mode commands.
> Let me know if this sounds fine and I can action it.
I agree, this would be nice to have.