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#73387: 30.0.90; C-x v v in diff-mode doesn't work after C-c C-n Date: Tue, 24 Sep 2024 01:41:50 +0300 Message-ID: <83c3658a-ab73-4d85-82ea-63298c7fdb78@yandex.ru> References: <87zfo28fzu.fsf@zephyr.silentflame.com> <87y13jq2iz.fsf@zephyr.silentflame.com> 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="29399"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: monnier@iro.umontreal.ca, juri@linkov.net To: Sean Whitton , 73387@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 24 00:42:49 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 1ssrlY-0007V3-NI for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 24 Sep 2024 00:42:48 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ssrlQ-0004k0-6Y; Mon, 23 Sep 2024 18:42:40 -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 1ssrlP-0004hv-13 for bug-gnu-emacs@gnu.org; Mon, 23 Sep 2024 18:42:39 -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 1ssrlO-0004Ik-Eh for bug-gnu-emacs@gnu.org; Mon, 23 Sep 2024 18:42:38 -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=Z69PtS59wZXGQAfVruZyogP3SSZNbPuWm1yR1EsmPBI=; b=EL35u/F3MFqzjyA7k5uwUUhCSZWBDPymvMh0mnInkJYMvoUsey+dePSwjiGQsHnJilidI3GqdKyXR1TH5YcVQgVmjDBERoGroJ2HkKSBnlhG1Wb1BuWaLBa91CBAR4EMO3CLW69mMyVp5zX6ofsdcuXqNUjilYL16EsxpOq/K2BHYGjfkTNXbT2DN/0yCUQwBafUUzT86MG1rod9X471R2a3vTvv8uQeVmIzw2fENqmGVI/hj6CHk4ZCkBOcZN6STq2H3qE/yBRlH00W0NA10+8qL/6GwreHmwgFb/ftAhG+I3776KrJ06yo94BDQrDdqRTagu+0LJ0lRH8FVgnN2w==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ssrll-000378-VN for bug-gnu-emacs@gnu.org; Mon, 23 Sep 2024 18:43: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: Mon, 23 Sep 2024 22:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73387 X-GNU-PR-Package: emacs Original-Received: via spool by 73387-submit@debbugs.gnu.org id=B73387.172713134511897 (code B ref 73387); Mon, 23 Sep 2024 22:43:01 +0000 Original-Received: (at 73387) by debbugs.gnu.org; 23 Sep 2024 22:42:25 +0000 Original-Received: from localhost ([127.0.0.1]:44890 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ssrlB-00035p-BK for submit@debbugs.gnu.org; Mon, 23 Sep 2024 18:42:25 -0400 Original-Received: from forward501d.mail.yandex.net ([178.154.239.209]:33832) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ssrl8-00035Z-Bu for 73387@debbugs.gnu.org; Mon, 23 Sep 2024 18:42:23 -0400 Original-Received: from mail-nwsmtp-smtp-production-main-99.klg.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-99.klg.yp-c.yandex.net [IPv6:2a02:6b8:c42:94a0:0:640:af90:0]) by forward501d.mail.yandex.net (Yandex) with ESMTPS id 543B260CD1; Tue, 24 Sep 2024 01:41:57 +0300 (MSK) Original-Received: by mail-nwsmtp-smtp-production-main-99.klg.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id sfbBOv05OGk0-L36OvzzR; Tue, 24 Sep 2024 01:41:56 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1727131316; bh=Z69PtS59wZXGQAfVruZyogP3SSZNbPuWm1yR1EsmPBI=; h=In-Reply-To:From:Subject:Message-ID:Cc:References:Date:To; b=XssYxp4sLN0MkCDgzesPUiZAIP/Vr4MwEW0IoNqfIoYco47Cc7jfGD+O+33k8XIXu fLRjRO79VD2LUE34O9DBwbSWZrShLQD51wAl9AdP/1nd9c1PZKcsLegfCvoT8E2RL7 /ZeH14JL+oOIpHxuY93LGVvklV+ncqFpclhouiM0= Authentication-Results: mail-nwsmtp-smtp-production-main-99.klg.yp-c.yandex.net; dkim=pass header.i=@yandex.ru Original-Received: from phl-compute-09.internal (phl-compute-09.phl.internal [10.202.2.49]) by mailfauth.phl.internal (Postfix) with ESMTP id E20381200066; Mon, 23 Sep 2024 18:41:53 -0400 (EDT) Original-Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-09.internal (MEProxy); Mon, 23 Sep 2024 18:41:53 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrvddttddgudegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdej necuhfhrohhmpeffmhhithhrhicuifhuthhovhcuoegughhuthhovheshigrnhguvgigrd hruheqnecuggftrfgrthhtvghrnhepiefhjeeuveetffffvdefteffffekhfeuudejieeh heeiudelgfehgffffeduffdunecuvehluhhsthgvrhfuihiivgepudenucfrrghrrghmpe hmrghilhhfrhhomhepughguhhtohhvodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhi thihqddufeeffeelleehhedvqddvleegjeejjeejiedqughguhhtohhvpeephigrnhguvg igrdhruhesfhgrshhtmhgrihhlrdgtohhmpdhnsggprhgtphhtthhopeegpdhmohguvgep shhmthhpohhuthdprhgtphhtthhopehsphifhhhithhtohhnsehsphifhhhithhtohhnrd hnrghmvgdprhgtphhtthhopeejfeefkeejseguvggssghughhsrdhgnhhurdhorhhgpdhr tghpthhtohepjhhurh X-ME-Proxy: Feedback-ID: ib1d9465d:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 23 Sep 2024 18:41:52 -0400 (EDT) Content-Language: en-US In-Reply-To: <87y13jq2iz.fsf@zephyr.silentflame.com> 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:292297 Archived-At: On 22/09/2024 15:46, Sean Whitton wrote: > Attempting to commit a single hunk still fails because after C-c C-n the > file name header is not present, and 'git apply' can't handle a hunk > without a file name header. > > We have diff-find-file-name to get the name; I wonder if we should try > to construct a fake file header? Temporarily killing the "outside" hunks might be a little easier to implement. This was the narrowing could also span multiple files, for example.