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: Sun, 20 Aug 2023 21:29:29 +0300 Message-ID: <83a5ulwos6.fsf@gnu.org> References: <87wmxrwe6h.fsf@posteo.net> <83o7j3z4wm.fsf@gnu.org> <87pm3jwboc.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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14736"; 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 Sun Aug 20 20:30:13 2023 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 1qXnBk-0003dZ-Mn for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 20 Aug 2023 20:30:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qXnBa-0001Cq-63; Sun, 20 Aug 2023 14:30:02 -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 1qXnBY-0001CG-I3 for bug-gnu-emacs@gnu.org; Sun, 20 Aug 2023 14:30:00 -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 1qXnBY-0006YX-AC for bug-gnu-emacs@gnu.org; Sun, 20 Aug 2023 14:30:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qXnBa-0003L9-0V for bug-gnu-emacs@gnu.org; Sun, 20 Aug 2023 14:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 20 Aug 2023 18:30: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.169255616612774 (code B ref 65380); Sun, 20 Aug 2023 18:30:01 +0000 Original-Received: (at 65380) by debbugs.gnu.org; 20 Aug 2023 18:29:26 +0000 Original-Received: from localhost ([127.0.0.1]:54857 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qXnAz-0003Jy-Vf for submit@debbugs.gnu.org; Sun, 20 Aug 2023 14:29:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51172) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qXnAx-0003Jl-KG for 65380@debbugs.gnu.org; Sun, 20 Aug 2023 14:29:24 -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 1qXnAp-0006TJ-Vj; Sun, 20 Aug 2023 14:29:16 -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=rFPHEapnxTIP6CPmqPPv75F4Tf5/b7J2LppVP04b8KY=; b=HyOBXMSswe7D 5i4gPHBV1ZuG0gaqoAqyq/m1DaAuXcmMyLfDH99ad/5p6GWCd8aWSvKNgv4HdNl+wO/2CEQ3FfT+N RAyJpdAQodfnHbHx00fIkVXzWDTHfD3PwSIfzPe9tl1QWuMnF30vnqYEU4mJbxa3zj6WTQM6Z4zub MXOg0N8Bg+rvYI9i/iwXJwddzI/wUPA1FiegZydPRUzGeCTJKGos9i6emqh9Un//hacaKMHH4uz3F 9fyrrloy4Kl18kiOwOPUm9bl+op6pWpBa0yAXiEPl+kLQYMtiKm9N76RPeWWERbJJ8u51UnryF/aH rTDcn8kGagkYQfbcq5wvrg==; In-Reply-To: <87a5ultvuy.fsf@posteo.net> (message from Philip Kaludercic on Sun, 20 Aug 2023 18:24:53 +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:268025 Archived-At: > From: Philip Kaludercic > Cc: Juri Linkov , 65380@debbugs.gnu.org > Date: Sun, 20 Aug 2023 18:24:53 +0000 > > Eli Zaretskii writes: > > >> From: Juri Linkov > >> Cc: Philip Kaludercic , 65380@debbugs.gnu.org > >> Date: Sun, 20 Aug 2023 19:30:03 +0300 > >> > >> Regarding the implementation, there is the function > >> 'diff-hunk-text', but it's limited to one hunk only. > > > > So is the proposed new function, isn't it? > > No, the current proposal doesn't have any special handling for text > between hunks. AFAIU, the function you proposed removes the first character from each line in the region, so how will it handle multiple hunks? Or maybe I misunderstood what you meant by "No"?