help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [External] : diff-mode: kill various hunks at once, something like k


From: Drew Adams
Subject: RE: [External] : diff-mode: kill various hunks at once, something like kill-region?
Date: Thu, 20 Oct 2022 15:19:18 +0000

> Does somebody know about a package that would allow to kill serval hunk
> in one go or even having something like kill-region in a diff buffer?

If what you mean is kill/delete several stretches
of text at once, where you provide the limits of
each such stretch, then you can do that with an
iteration.  "At once" here would refer to the
overall effect, but maybe you have something else
in mind?
___

If you use library zones.el then you can use
`zz-do-zones', which just does such an iteration,
applying a function to a list of zones (start +
end positions).  But for this simple an operation
you can as easily use `dolist' over such a list.

https://elpa.gnu.org/packages/zones.html



reply via email to

[Prev in Thread] Current Thread [Next in Thread]