From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: is diff-fixup-modifs supposed to work on regular diff?
Date: Sat, 10 Aug 2013 22:58:55 -0400 [thread overview]
Message-ID: <jwva9kpkk84.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: mailman.2990.1376162656.12400.help-gnu-emacs@gnu.org
> I have been trying to edit diffs, which are in regular <> style, and
> run diff-fixup-modifs. My goal is to programmatically get rid of
> empty hunks and to renumber edited hunks.
> For this particular purpose, which is not a one-off that can be fixed
> manually but an ongoing need, I cannot use the otherwise superior
> unified or context diff.
diff-fixup-modifs (and most of diff-mode's editing functions such as
the killing of hunks) only works for context diffs, because it does not
preserve line numbers precisely.
Stefan
next parent reply other threads:[~2013-08-11 2:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.2990.1376162656.12400.help-gnu-emacs@gnu.org>
2013-08-11 2:58 ` Stefan Monnier [this message]
2013-08-19 3:46 ` is diff-fixup-modifs supposed to work on regular diff? Samuel Wales
2013-08-10 19:24 Samuel Wales
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwva9kpkk84.fsf-monnier+gnu.emacs.help@gnu.org \
--to=monnier@iro.umontreal.ca \
--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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).