|
From: | Glenn Morris |
Subject: | Re: diff-mode misinterprets empty lines. |
Date: | Mon, 14 Jan 2008 16:38:44 -0500 |
User-agent: | Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) |
Stefan Monnier wrote: >> In an effort to clear FOR-RELEASE, here is a simple-minded attempt to >> deal with this. It seems to fix the original problem at least. > > It is problematic when you try to apply a hunk via C-c C-a because any > empty line following your hunk (e.g. the last hunk in a C-x v =) will be > taken as being part of the hunk and C-c C-a will think that the original > text was just missing a newline and will add it (as a result of its > fuzzy matching feature). Oh dear. Would it suffice to back up over empty lines at the end of a unified diff? Ie treat empty-lines as part of a hunk unless they are at the very end of the diff?
[Prev in Thread] | Current Thread | [Next in Thread] |