[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: feature proposal diff-mode: kill various hunks or mark then and inve
From: |
Juri Linkov |
Subject: |
Re: feature proposal diff-mode: kill various hunks or mark then and invert the mark |
Date: |
Wed, 24 Aug 2022 20:49:46 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) |
> When using diff mode, I sometimes have say 10 hunks but only want to
> select one[1] and ignore the other. In the current implementation I have
> to kill all 9 I don't want, and that is a bit cumbersome.
>
> If I could select them all, un-select one and then kill the marked one,
> that would be great.
In such cases it's possible to resort to ordinary editing by disabling
the read-only state with `C-x C-q', then selecting the whole buffer `C-x h'
except the needed hunk, and then kill the remaining region.