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#72556: 29.1.90; vc-diff does not undo hunk in end of source file Date: Sat, 14 Sep 2024 18:50:33 +0300 Message-ID: References: <87ttfs60ir.fsf@posteo.net> 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="5311"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird To: Tomas Nordin , 72556@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 14 17:51:00 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 1spV35-0001D6-9I for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 14 Sep 2024 17:50:59 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1spV2y-00083u-AN; Sat, 14 Sep 2024 11:50:52 -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 1spV2x-00083k-Es for bug-gnu-emacs@gnu.org; Sat, 14 Sep 2024 11:50:51 -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 1spV2x-0005Xc-5A for bug-gnu-emacs@gnu.org; Sat, 14 Sep 2024 11:50:51 -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:From:References:MIME-Version:Date:To:Subject; bh=58WHvjwndl31J3rn56hSA2OZfS2TQQY8CzuLfhwWl/s=; b=Rk8KU60ClS8XldIqDNQZgj1BGFCVpPbhGncah0s3rzxUY2oylvCCgm5muHxG39O/eSmPcbQWpmYD9fIz0srrDNb/TngLLq1eKRcX20VICcdl0r/nZL3E7nSBCGElXTm7tIgADo9mmNEdu74hEgA9nyQYdAERI2hEA09LGJumeCUXgAhOHvGxEY1uLAzevsWZnFlp+w9O8y+22Rh+CFoZKM/Sxy23foTKCVXGNFAHrb2WyM2sGxBJHZSyhZosPhiUkQ+nhgaCizpPvk+Nv240qFdtaFnpAKxIrhnxAlc0PHd86wObh6DDAZOj5Iav2W0ip80f3rojpZSyHnsgQ1AsQQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1spV37-0006pV-Pd for bug-gnu-emacs@gnu.org; Sat, 14 Sep 2024 11:51:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Sep 2024 15:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72556 X-GNU-PR-Package: emacs Original-Received: via spool by 72556-submit@debbugs.gnu.org id=B72556.172632905526234 (code B ref 72556); Sat, 14 Sep 2024 15:51:01 +0000 Original-Received: (at 72556) by debbugs.gnu.org; 14 Sep 2024 15:50:55 +0000 Original-Received: from localhost ([127.0.0.1]:47674 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1spV30-0006p3-Kr for submit@debbugs.gnu.org; Sat, 14 Sep 2024 11:50:54 -0400 Original-Received: from fhigh6-smtp.messagingengine.com ([103.168.172.157]:42429) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1spV2y-0006oj-Rd for 72556@debbugs.gnu.org; Sat, 14 Sep 2024 11:50:53 -0400 Original-Received: from phl-compute-09.internal (phl-compute-09.phl.internal [10.202.2.49]) by mailfhigh.phl.internal (Postfix) with ESMTP id 80E16114013F; Sat, 14 Sep 2024 11:50:36 -0400 (EDT) Original-Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-09.internal (MEProxy); Sat, 14 Sep 2024 11:50:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=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=fm3; t=1726329036; x=1726415436; bh=58WHvjwndl31J3rn56hSA2OZfS2TQQY8CzuLfhwWl/s=; b= hTF0p8UMIZ6UEFPKpr51KbmEcKdFCO6EoMdf/FNi5kmJ5bFjU7SvzrtXlRwjkJWu XUN25EahhoLiJ9ktzx/dVEx2YU4SIPay/AqFVsH8nIgqlfWRPKkkFnMg4e39xshq MXCl9p9wlokC4aGujl8raa4DzWYewXTYLnZ20PMgc9rRBc5FEtPgmjs+TCxlKSCd R978892snzNjupfsaIWNkR4ZBxS5gISFIuu+wAw66Bj/8NAZleedJZRKPJhGy8hJ h21akLnnhCNTNFkYxXq5SkIX5dwGZNsreDnXiTrxeUEMbR6c5FQwgjk5eEG0OshZ UFWsspy/7Css/brN6bPuLQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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=fm1; t=1726329036; x= 1726415436; bh=58WHvjwndl31J3rn56hSA2OZfS2TQQY8CzuLfhwWl/s=; b=E 5V9MB6Cv9VxJQSySLF0RwZniQPHMx/m4+b4erE66aCjXSx9YiEfXZ59gJl0SCeal 8HEwc5vRoACxF3za+EP3OVVQQQsf649qVhzrOzGIf0GurvBp/levbufwkU6WPDTo x+N8xcQbTIu2skbgE+eoEg8LfcAQjfnn00gCsX+g+456EMFbiWExlb5d/eRAiFMs F2XTo5EK7mjfcuKymjxPIkUEufwNQ6Q2nDj2F/WzZjusZu6AKmyZD2t1Ma4NNSmy 86tbiVC8rdHJkDLjn3AjLW94VxryEUnmWU90zkpbEvLpajCtx0PsOrabpipsw3tv p4trRGV1QJhbjBOrtj8bw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrudektddgleehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepkfffgggfuffvfhfhjggtgfesthejredttddvjeen ucfhrhhomhepffhmihhtrhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvg hvqeenucggtffrrghtthgvrhhnpedthfeuvddtveelgeeuleevvdejveehffevveehvdeu ffdtfefhvdeugefgtefgtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpegumhhithhrhiesghhuthhovhdruggvvhdpnhgspghrtghpthhtohep vddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepthhomhgrshhnsehpohhsthgvoh drnhgvthdprhgtphhtthhopeejvdehheeiseguvggssghughhsrdhgnhhurdhorhhg X-ME-Proxy: Feedback-ID: i07de48aa:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 14 Sep 2024 11:50:35 -0400 (EDT) Content-Language: en-US In-Reply-To: <87ttfs60ir.fsf@posteo.net> 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:291783 Archived-At: Hi! On 10/08/2024 15:11, Tomas Nordin wrote: > I have > noticed that if the diff hunk is an addition in the end of the source > file, I dont get the expected question if I want to undo the hunk. > Instead, the hunk is applied again. No matter the resolution of this bug, just wanted to make sure you know that you can force the reverse direction by adding the prefix to the command. So while 'C-c C-a' applies the hunk, 'C-u C-c C-a' reverses it (with a similar check that sees whether the hunk has been applied already).