From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: is diff-fixup-modifs supposed to work on regular diff? Date: Sat, 10 Aug 2013 22:58:55 -0400 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1376190019 29687 80.91.229.3 (11 Aug 2013 03:00:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 11 Aug 2013 03:00:19 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Aug 11 05:00:22 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V8LtF-0000oJ-Qx for geh-help-gnu-emacs@m.gmane.org; Sun, 11 Aug 2013 05:00:21 +0200 Original-Received: from localhost ([::1]:33502 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V8LtF-0007d2-Fo for geh-help-gnu-emacs@m.gmane.org; Sat, 10 Aug 2013 23:00:21 -0400 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 14 Injection-Info: mx05.eternal-september.org; posting-host="bef50a77c8482b3cee00ee60292ca3f1"; logging-data="14298"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18wOnKrMlWV4SWnJaE7jtOa" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:0DaYe3z4yqmTjLBzSWKoE50a7OA= sha1:ptU5jeztpI7TfVCwEf763d/7Uxo= Original-Xref: usenet.stanford.edu gnu.emacs.help:200551 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:92817 Archived-At: > 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