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: Tue, 20 Aug 2024 21:43:00 +0300 Message-ID: <86v7zvujbf.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> <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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1978"; 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 Tue Aug 20 20:43:37 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 1sgTpQ-0000KD-Ns for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 20 Aug 2024 20:43:36 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sgTpA-00084D-P0; Tue, 20 Aug 2024 14:43:20 -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 1sgTp8-00083p-K0 for bug-gnu-emacs@gnu.org; Tue, 20 Aug 2024 14: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 1sgTp8-0003Wp-Bb for bug-gnu-emacs@gnu.org; Tue, 20 Aug 2024 14: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=0IGw91y5erps5RM2LTPUmK/JTIjzSgUAAHZfKTwL4Tw=; b=O8DV/D4kdUVHxmYP7g4TQpr5+P/i88AIbK7Ua+lIgjGZg4SZPBB7oxC2HM3Wx7eRefQtoZ+5BWK9HqGWdNStNSW1jYMZ3r3hUVm3LIOzVBdvL84NEgrY42OhvA1/rpanwehhKV7ULJ14ZklIS0LKFvGcnU5/V6KL5W7LhMtwLtNINO5TeQ9QmlOBGq2l6xJ61rTn1Kt1Boq442SAIcmYOuX8x6EX1rtl3x4ET01OR4bY4UNquhsa3rCaTFBAEQeSM2SfXEQtNZdPDEOMbJeLN4CBwoD/SDEsSaBXP5LNQjcZ9dZor6Xyqt1GilhWXrLau5gcuYVBfzRKbtkOFfp6uQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sgTpp-0002g6-L1 for bug-gnu-emacs@gnu.org; Tue, 20 Aug 2024 14: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: Tue, 20 Aug 2024 18: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.172417943810276 (code B ref 65380); Tue, 20 Aug 2024 18:44:01 +0000 Original-Received: (at 65380) by debbugs.gnu.org; 20 Aug 2024 18:43:58 +0000 Original-Received: from localhost ([127.0.0.1]:33649 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sgTpm-0002ff-42 for submit@debbugs.gnu.org; Tue, 20 Aug 2024 14:43:58 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:46534) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sgTpj-0002fR-1Q for 65380@debbugs.gnu.org; Tue, 20 Aug 2024 14:43:56 -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 1sgTou-0003WE-VH; Tue, 20 Aug 2024 14:43:05 -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=0IGw91y5erps5RM2LTPUmK/JTIjzSgUAAHZfKTwL4Tw=; b=HTe8ujpbCC3B N7KbKSZPAypQOp1G8wiqmZBKk4KJCyRjgfXBIgyEhipp/nBU8RC4AhkqRHIOBdXVGea7sPkFVsecy z3cij5YnLMNbh1sPkj386m1h2RYOtuDqgnej80k9DNzgcOHUGEMnIFF5RPTNQfbLC0gLPrTjSCQlC ooVHSKmSvVGloEa9HZ3T6sxLfmoT9jMGUhxUX9uGPtWr3cSWRaUUMBghOvJmszQCBuvxlHb2ukVQK 7jSGh0pqxdImDSho37IgaRvfCmafrGLsTVDUK0HzdywxI6xnVbAxG9oBqRoQLsunFOHUf0zbcdq9T 4vOhFmNjwO3ovBNa6EbE8w==; In-Reply-To: <87ttffupsi.fsf@posteo.net> (message from Philip Kaludercic on Tue, 20 Aug 2024 16:23:09 +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:290463 Archived-At: > From: Philip Kaludercic > Cc: juri@linkov.net, 65380@debbugs.gnu.org > Date: Tue, 20 Aug 2024 16:23:09 +0000 > > Eli Zaretskii writes: > > > I think "copy the text removed by the diffs", and perhaps say > > explicitly that those are the lines in the hunks preceded with "-". > > According to `diff-font-lock-keywords' diff-mode also supports the "<" > syntax for removed parts of a hunk (I believe this comes from RCS?). No, that's the original Diff format, before we had -c and -u. By all means mention the "<" lines as well. > Then again, I would assume that the structure and contents of a diff > should be familiar to anyone using diff-mode seriously enough to be > interested in a command like this one? Yes, but the connection between that and what you mean by "deleted text" might not be obvious to everyone.