From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.bugs Subject: bug#4368: 23.1; diff-hunk-kill -vs- final hunk in a file Date: Tue, 08 Sep 2009 09:43:30 -0600 Message-ID: References: Reply-To: Tom Tromey , 4368@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1252426421 15156 80.91.229.12 (8 Sep 2009 16:13:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Sep 2009 16:13:41 +0000 (UTC) Cc: 4368@emacsbugs.donarmstrong.com, bug-gnu-emacs@gnu.org To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 08 18:13:34 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Ml3K1-0005vL-Pb for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Sep 2009 18:13:34 +0200 Original-Received: from localhost ([127.0.0.1]:58442 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ml3K1-0003K2-61 for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Sep 2009 12:13:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ml3Dp-0005OR-QE for bug-gnu-emacs@gnu.org; Tue, 08 Sep 2009 12:07:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ml3Dl-0005MD-4S for bug-gnu-emacs@gnu.org; Tue, 08 Sep 2009 12:07:09 -0400 Original-Received: from [199.232.76.173] (port=41812 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ml3Dk-0005M6-Tg for bug-gnu-emacs@gnu.org; Tue, 08 Sep 2009 12:07:04 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:60096) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ml3Dk-0001b9-7R for bug-gnu-emacs@gnu.org; Tue, 08 Sep 2009 12:07:04 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n88G6wIv015936; Tue, 8 Sep 2009 09:06:59 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n88Fo5A4012275; Tue, 8 Sep 2009 08:50:05 -0700 Resent-Date: Tue, 8 Sep 2009 08:50:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Tom Tromey Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Tue, 08 Sep 2009 15:50:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4368 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4368-submit@emacsbugs.donarmstrong.com id=B4368.125242462011245 (code B ref 4368); Tue, 08 Sep 2009 15:50:05 +0000 Original-Received: (at 4368) by emacsbugs.donarmstrong.com; 8 Sep 2009 15:43:40 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n88FhdPR011238 for <4368@emacsbugs.donarmstrong.com>; Tue, 8 Sep 2009 08:43:40 -0700 Original-Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n88Fha2D027228; Tue, 8 Sep 2009 11:43:36 -0400 Original-Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n88FhYdA013684; Tue, 8 Sep 2009 11:43:35 -0400 Original-Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n88FhVnj031466; Tue, 8 Sep 2009 11:43:31 -0400 Original-Received: by opsy.redhat.com (Postfix, from userid 500) id EF58837817D; Tue, 8 Sep 2009 09:43:30 -0600 (MDT) X-Attribution: Tom In-Reply-To: (Andreas Schwab's message of "Tue, 08 Sep 2009 11:14:25 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.17 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Tue, 08 Sep 2009 12:07:09 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:30851 Archived-At: >>>>> "Andreas" == Andreas Schwab 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