all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* is diff-fixup-modifs supposed to work on regular diff?
@ 2013-08-10 19:24 Samuel Wales
  0 siblings, 0 replies; 3+ messages in thread
From: Samuel Wales @ 2013-08-10 19:24 UTC (permalink / raw)
  To: help-gnu-emacs

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.

===

Thanks.

Samuel

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com

The disease DOES progress.  MANY people have died from it.  ANYBODY can get it.

Denmark: free Karina Hansen NOW.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: is diff-fixup-modifs supposed to work on regular diff?
       [not found] <mailman.2990.1376162656.12400.help-gnu-emacs@gnu.org>
@ 2013-08-11  2:58 ` Stefan Monnier
  2013-08-19  3:46   ` Samuel Wales
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2013-08-11  2:58 UTC (permalink / raw)
  To: help-gnu-emacs

> 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: is diff-fixup-modifs supposed to work on regular diff?
  2013-08-11  2:58 ` Stefan Monnier
@ 2013-08-19  3:46   ` Samuel Wales
  0 siblings, 0 replies; 3+ messages in thread
From: Samuel Wales @ 2013-08-19  3:46 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: help-gnu-emacs

On 8/10/13, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
> 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.

Thanks for the explanation.  I will then somehow have to solve the
problem differently.

What I really want is a way to tell Ediff to make certain lines (not
difference regions) context lines instead of changes, even when they
are changes.

Samuel

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com

The disease DOES progress.  MANY people have died from it.  ANYBODY can get it.

Denmark: free Karina Hansen NOW.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-08-19  3:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-10 19:24 is diff-fixup-modifs supposed to work on regular diff? Samuel Wales
     [not found] <mailman.2990.1376162656.12400.help-gnu-emacs@gnu.org>
2013-08-11  2:58 ` Stefan Monnier
2013-08-19  3:46   ` Samuel Wales

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.