From: Uwe Brauer <oub@mat.ucm.es>
To: Drew Adams <drew.adams@oracle.com>
Cc: Uwe Brauer <oub@mat.ucm.es>,
"help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: [External] : diff-mode: kill various hunks at once, something like kill-region?
Date: Thu, 20 Oct 2022 18:32:49 +0200 [thread overview]
Message-ID: <87fsfio3pq.fsf@mat.ucm.es> (raw)
In-Reply-To: SJ0PR10MB5488492FDA2737CE9D04A0A5F32A9@SJ0PR10MB5488.namprd10.prod.outlook.com
[-- Attachment #1: Type: text/plain, Size: 1202 bytes --]
>>> "DA" == Drew Adams <drew.adams@oracle.com> writes:
>> 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?
> ___
Workflow and motivation:
I use HG (but for git the workflow is very similar)
1. I call vc-dir
2. I select the files I want to commit
3. I use vc-diff
4. In the diff file I manipulate hunks
5. I either use
1. commit-patch, a perl script that allows to submit
the edit diff file as patch.
2. Or the solution implemented by Dmitry which currently dwells
in Emacs master
Now sometimes if the diff file is huge, I might only want to commit 2
out of say 20 hunks.
So instead of killing 18 hunks, I'd like to mark the hunks I would like
to delete and somehow delete them in one go (kill-region-hunk is not
implemented)
So what you propose, would serve this purpose?
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]
next prev parent reply other threads:[~2022-10-20 16:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-20 14:14 diff-mode: kill various hunks at once, something like kill-region? Uwe Brauer
2022-10-20 15:19 ` [External] : " Drew Adams
2022-10-20 16:32 ` Uwe Brauer [this message]
2022-10-21 18:45 ` [SOLVED, sort of] (was: [External] : diff-mode: kill various hunks at once, something like kill-region?) Uwe Brauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fsfio3pq.fsf@mat.ucm.es \
--to=oub@mat.ucm.es \
--cc=drew.adams@oracle.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.