GNU bug report logs - #4368
23.1; diff-hunk-kill -vs- final hunk in a file

Previous Next

Package: emacs;

Reported by: Tom Tromey <tromey <at> redhat.com>

Date: Tue, 8 Sep 2009 04:20:05 UTC

Severity: normal

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Tom Tromey <tromey <at> redhat.com>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: 4368 <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
Subject: bug#4368: 23.1; diff-hunk-kill -vs- final hunk in a file
Date: Tue, 08 Sep 2009 09:43:30 -0600
>>>>> "Andreas" == Andreas Schwab <schwab <at> linux-m68k.org> writes:

>> I'm using diff-mode to edit a patch.
>> The patch was generated by "git diff".
>> I typed M-k to remove the last hunk in a file.
>> However, it left the "header" around:

Andreas> Use M-K instead, this will also remove the header.

Yeah, I knew about M-K.  I was editing the patch, deleting hunks
one-by-one, and I didn't notice that I was about to delete the last hunk
from a file.  It would be nicer if diff-mode handled this for me, so
that I didn't accidentally create a bogus patch.

Tom



This bug report was last modified 15 years and 341 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.