From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#62731: 29.0.60; diff-apply-hunk doesn't work for creating new files Date: Tue, 8 Oct 2024 02:28:57 +0300 Message-ID: <5afef01c-a8a8-485c-aa12-0b19e5bf21ba@gutov.dev> References: <87jzyln9g0.fsf@catern.com> <86ldz70z4i.fsf@gnu.org> <36712130-53f5-4515-a887-d8df3175b271@gutov.dev> <86zfnmz40b.fsf@gnu.org> <92fc2d1f-492d-4d42-914f-b6a4cd712306@gutov.dev> <86wmipzqis.fsf@gnu.org> <235ffe61-d6af-4edb-9367-58f1b685b038@gutov.dev> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39792"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: sbaugh@catern.com, 62731-done@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 08 01:30:24 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sxxBI-000A2C-6l for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 08 Oct 2024 01:30:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sxxAr-0004Bz-Ec; Mon, 07 Oct 2024 19:29:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sxxAp-0004BO-Hr for bug-gnu-emacs@gnu.org; Mon, 07 Oct 2024 19:29:55 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sxxAp-0006NM-9L for bug-gnu-emacs@gnu.org; Mon, 07 Oct 2024 19:29:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:References:From:MIME-Version:Date:To:Subject; bh=uxI03mPRft5zlnSbWXtI81IiLHFQLUzS0HM+I4lQZLc=; b=IlaI5fe6qQD8OgFja1ty37jcBWMOuuuwi2GsJXSWbka7ItYj4LJwl3EtotrxIsr6uNmpa8BaPgJSAopNunyLXMMunR1h2+4qoB8HGURf0gPepv2yJF7GZ5tIy42qemWjkdugJfUMgRdcrJnCKfvSIg6z92jESEwz0fd9Ox1XFMrVz02s4vYhvwI9Ict+7cPa6czsWcoqIevPAkfq5dhb6RmLNKfGGGuJqdWqMseV6HESfsK79oOoeSOvOX8zaAk9xHoVpHISSKpcpmoXR2RueCjCD2U8a4J3XvxiBxaRGIjVoyRXAu6oY6lzFggINQk8YNvF+cRiXe5v3+Z1unonlg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sxxAw-0003qI-66 for bug-gnu-emacs@gnu.org; Mon, 07 Oct 2024 19:30:02 -0400 Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Mon, 07 Oct 2024 23:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 62731 X-GNU-PR-Package: emacs Mail-Followup-To: 62731@debbugs.gnu.org, dmitry@gutov.dev, sbaugh@catern.com Original-Received: via spool by 62731-done@debbugs.gnu.org id=D62731.172834375714682 (code D ref 62731); Mon, 07 Oct 2024 23:30:02 +0000 Original-Received: (at 62731-done) by debbugs.gnu.org; 7 Oct 2024 23:29:17 +0000 Original-Received: from localhost ([127.0.0.1]:49393 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sxxAC-0003ok-P5 for submit@debbugs.gnu.org; Mon, 07 Oct 2024 19:29:16 -0400 Original-Received: from fout-a3-smtp.messagingengine.com ([103.168.172.146]:59051) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sxxAA-0003oV-MO for 62731-done@debbugs.gnu.org; Mon, 07 Oct 2024 19:29:15 -0400 Original-Received: from phl-compute-10.internal (phl-compute-10.phl.internal [10.202.2.50]) by mailfout.phl.internal (Postfix) with ESMTP id 9C39413804CE; Mon, 7 Oct 2024 19:29:01 -0400 (EDT) Original-Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-10.internal (MEProxy); Mon, 07 Oct 2024 19:29:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1728343741; x=1728430141; bh=uxI03mPRft5zlnSbWXtI81IiLHFQLUzS0HM+I4lQZLc=; b= XcMmIPWbVuTRfOwHXhlNbIJNabpIIXckcOOQ38iUxAzBv0U3Y6vl/ibXcWjzfTT6 JzgWMiBu70e2wro+gszt0K4Q7ajI/jZCBKRk+iF4oryGvH8gAHP5HYNgsLFulcAs 134ks5rDdNhX+SQnFUY5PR0Mh0o3Nx2cQ2JYP402EwFIsN/zVeLcSaIpLd8Luu05 LcMxdARQ30hvO5E90sf/mGD5uriY7fUCMs2pHf3rzkH0wxXm1jK8eGhm8NVMpmhf CK4Z7c3z5V4MKzC3WFa3ISQniG7Q3ZVAk3rQKznTnxheAZlybVoUd97+l62faGjs DZcBgQlFsfDaRffg+lBr3w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1728343741; x= 1728430141; bh=uxI03mPRft5zlnSbWXtI81IiLHFQLUzS0HM+I4lQZLc=; b=j 7EtumuC/cfeMMQo4MVcijXuunWM4ITVS0lBb82JQyKp+CQpIVZ6rMM/6cLIgsxbP M2jFpyhPu5H9m0g6vIvoIiw1L7bSJ7EYff4UEQr13t6fblwAMZfPvthusxRnRbXQ DxT7EMXl2bu0IJvxvB/vPbvC04HIhehP/lidTe0rDGWjAaH5L1DAKYT3vEvUxh3V /fQ4M31pIGnmcpVvEgloEWDmg8dB0DSTxMf+4rJOM0yJ+PFOZeOhka7YuJhepXZL gOZdQEcCApc1Vm4LowR0HmJ5uI7u8gjRoNU28K/wUrTRjOtf41+gdr0uPjx8BCpl GHedSMM9O9qjooY+U3qNg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrvdeftddgvddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepkfffgggfuffhvfevfhgjtgfgsehtjeertddtvdej necuhfhrohhmpeffmhhithhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdrug gvvheqnecuggftrfgrthhtvghrnhepkeefudefgfejffefvdfhteegveevhfekkeekhffg udfhveejteffhfegueetgefgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomhepughmihhtrhihsehguhhtohhvrdguvghvpdhnsggprhgtphhtthho peefpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegvlhhiiiesghhnuhdrohhrgh dprhgtphhtthhopehssggruhhghhestggrthgvrhhnrdgtohhmpdhrtghpthhtohepiedv jeefuddqughonhgvseguvggssghughhsrdhgnhhurdhorhhg X-ME-Proxy: Feedback-ID: i07de48aa:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 7 Oct 2024 19:28:59 -0400 (EDT) Content-Language: en-US In-Reply-To: <235ffe61-d6af-4edb-9367-58f1b685b038@gutov.dev> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:293133 Archived-At: On 04/10/2024 04:14, Dmitry Gutov wrote: > All right, the attached seems to support both creation and deletion, > including applying hunks in reverse direction. > > Things got trickier but not by a lot. Now pushed to master, seems useful enough. Let's see if some unforeseen problems are reported.