From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#65380: [PATCH] Add command to copy contents in a diff-mode buffer Date: Wed, 21 Aug 2024 16:42:40 +0300 Message-ID: <86bk1muh4f.fsf@gnu.org> References: <87wmxrwe6h.fsf@posteo.net> <83lee7z3xs.fsf@gnu.org> <87jztrvxx2.fsf@posteo.net> <83r0nyyhlz.fsf@gnu.org> <86o7j2qgmc.fsf@mail.linkov.net> <83cyzhwpcj.fsf@gnu.org> <87a5ultvuy.fsf@posteo.net> <83a5ulwos6.fsf@gnu.org> <87fs4bgwuj.fsf@posteo.net> <83fs4btiw1.fsf@gnu.org> <871q2n152u.fsf@posteo.net> <87frr1zw6i.fsf@posteo.net> <864j7hzviv.fsf@gnu.org> <87bk1pztsr.fsf@posteo.net> <861q2lzp70.fsf@gnu.org> <87ed6kxq5j.fsf@posteo.net> <86le0rwhlx.fsf@gnu.org> <87y14rv1ie.fsf@posteo.net> <86bk1nwdcj.fsf@gnu.org> <87ttffupsi.fsf@posteo.net> <86v7zvujbf.fsf@gnu.org> <87plq2vpx1.fsf@posteo.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24198"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65380@debbugs.gnu.org, juri@linkov.net To: Philip Kaludercic Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 21 15:43:38 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 1sglcf-000652-Ke for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 21 Aug 2024 15:43:37 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sglcP-0003XS-AA; Wed, 21 Aug 2024 09:43:21 -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 1sglcM-0003XK-In for bug-gnu-emacs@gnu.org; Wed, 21 Aug 2024 09:43:18 -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 1sglcL-00013K-K9 for bug-gnu-emacs@gnu.org; Wed, 21 Aug 2024 09:43:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=OKmPDql1X/NumhjJDkOQ0lRKbs0Lp1PcwZC7QPCu9Os=; b=umhFSE7dSlJpVexYunERBZ9ByOp3MnsWOLD87bm/yYKRHlqmdmvPxbRjDQhr5YztfGCFZGfltOsphV1+T5xL4U8oJToOHxAop9t1yograbfx1fJkqHEz41hxaqixTCsYuGcO0jHtM+i6JeMmB2K0YRVnYKCJgJY2PmIYuV6+2Hyq3q/Y8poVzChgjC+uRy8UofrVnUNxIh2InOQ5fWYXO0QwEGJo6SO4SAPueYueEgwIkmSBs/cgbIuIdNfnKTPuEL1Ni4fRbfIDDf2zepccpp/NXsR9Se0NcBD5SsM3ixX8d4zzKau6fGHEa9Okn5J4XumqK1gLXePbx+uRCQc3wA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sgld3-0003LE-Ri for bug-gnu-emacs@gnu.org; Wed, 21 Aug 2024 09:44:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 21 Aug 2024 13:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65380 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 65380-submit@debbugs.gnu.org id=B65380.172424781912793 (code B ref 65380); Wed, 21 Aug 2024 13:44:01 +0000 Original-Received: (at 65380) by debbugs.gnu.org; 21 Aug 2024 13:43:39 +0000 Original-Received: from localhost ([127.0.0.1]:35214 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sglcg-0003KG-Rv for submit@debbugs.gnu.org; Wed, 21 Aug 2024 09:43:39 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:54268) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sglcd-0003Jz-By for 65380@debbugs.gnu.org; Wed, 21 Aug 2024 09:43:37 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sglbn-0000o6-K1; Wed, 21 Aug 2024 09:42:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=OKmPDql1X/NumhjJDkOQ0lRKbs0Lp1PcwZC7QPCu9Os=; b=b73Xs4zif+40 51Oh4+g3xAthTuNq9VRJh5qPZJN9/5/bK/UbyWIM3ynHI+fDyyZQYhhrA/VpNWg0KyPoJqquQQF7z mXsdE6Qu0Ec2IIRih6idEcKNOkGeXh6E/N0UySrxjfUoPrg3N9fk2fM/ESqVuW2BtiROaKB5ZCcYt 2IizhIVxbjOtkNfEOZ6BNuMj0HYB19EmKNP3ZUcaUHRQnviejLUkf4WiBYB8HpDtt6APU/JYvFjVZ 1sruCelL4uGBoVJoZ0NLjFaf81x0eBtEfHYz3IGU0IYOBj166g9wItOpOKqvjrogJ19OHygIG0ppf BZiA8Ue5ZEbOCrtObP/SsQ==; In-Reply-To: <87plq2vpx1.fsf@posteo.net> (message from Philip Kaludercic on Tue, 20 Aug 2024 21:35:06 +0000) 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:290490 Archived-At: > From: Philip Kaludercic > Cc: juri@linkov.net, 65380@debbugs.gnu.org > Date: Tue, 20 Aug 2024 21:35:06 +0000 > > > Yes, but the connection between that and what you mean by "deleted > > text" might not be obvious to everyone. > > OK on both counts, here is the updated version: Thanks. > +*** New command 'diff-kill-ring-save' > +This command copies out the modified contents out of a diff, without ^^^ ^^^ One of these two "outs"s should be removed, I think. > +having to apply it first. If the selected range extends a hunk, the > +commands attempts to look up and copy the text between from the > +referenced file. I think it is better to say "copies to the kill-ring the modified contents..."