From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Samuel Wales Newsgroups: gmane.emacs.bugs Subject: bug#61396: diff mode could distinguish changed from deleted lines Date: Sun, 12 Feb 2023 02:03:59 -0700 Message-ID: References: <86y1p4m9cg.fsf@mail.linkov.net> <86bklzs2su.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21541"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61396@debbugs.gnu.org, rms@gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 12 10:05:27 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 1pR8IY-0005Lp-M4 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Feb 2023 10:05:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pR8IC-000304-42; Sun, 12 Feb 2023 04:05:04 -0500 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 1pR8IA-0002zt-BP for bug-gnu-emacs@gnu.org; Sun, 12 Feb 2023 04:05:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pR8IA-0000T7-0B for bug-gnu-emacs@gnu.org; Sun, 12 Feb 2023 04:05:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pR8I9-0000Fc-OM for bug-gnu-emacs@gnu.org; Sun, 12 Feb 2023 04:05:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Samuel Wales Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 12 Feb 2023 09:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61396 X-GNU-PR-Package: emacs Original-Received: via spool by 61396-submit@debbugs.gnu.org id=B61396.1676192649899 (code B ref 61396); Sun, 12 Feb 2023 09:05:01 +0000 Original-Received: (at 61396) by debbugs.gnu.org; 12 Feb 2023 09:04:09 +0000 Original-Received: from localhost ([127.0.0.1]:44036 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pR8HJ-0000EP-8Y for submit@debbugs.gnu.org; Sun, 12 Feb 2023 04:04:09 -0500 Original-Received: from mail-lf1-f54.google.com ([209.85.167.54]:34438) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pR8HG-0000DX-Hb for 61396@debbugs.gnu.org; Sun, 12 Feb 2023 04:04:07 -0500 Original-Received: by mail-lf1-f54.google.com with SMTP id cf42so14923058lfb.1 for <61396@debbugs.gnu.org>; Sun, 12 Feb 2023 01:04:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=QpJHooLZyow5cSa3dRWJ9Gt/Pk3c2iTLcnMDk5xrkus=; b=guE/GtJCbJSxR1X6ZKDWz5lyOeap+77SWjsXoS/AAczIFUtB/TfHrgoTFdR922Td3t fidg9zLTHn9eJLuiyeoKTZIksjS2q/N6TCPVEA6jSwKNn3xUHgnAj5cu19aus+TklwoJ uBXYq+VLsWRshtNpEMFFyp8PPAjLvq7LXspfqio6MlKbGsPM2cWHAT0IP/fimEybjXJ5 79TiV4oKph0rLkHs8ck9j6zffqSZfS1DzUOe1fldwG2Y3bRCyvMj/IH3HHkaV6jgd1lC AF3cNjJbwg7rny90CQBFb/JKxSUH8HTdi73SV1c4q4GKo6VmmMSBDi70PZfT7jkwtqzr 8J3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=QpJHooLZyow5cSa3dRWJ9Gt/Pk3c2iTLcnMDk5xrkus=; b=rgdngYb6nBSJy4Fp4VLtJYDrMNZNF5wahtKc5/r/lQ0rWXgX2r67IFcaPQSt/WqMdr //Hy+x1lFHyhRNRQjrjVz9o3v/W/SfB9V+daTGZwQ1Ikxfh0N+PKqyyWRgITnJJZwAnv QDVN1xTXcxogCy+bwYtdyEsqcJuVsT5XACvy9UgfCm5EHrAznfon6uXUwZHRCNvp7O74 wg26pK2oBd0UDcO9T362ytgBaGwgQYrj0dqFt2w2tpr1UOO1bJBy7MxMm0/StIclcPOb VrjmXPJPpeRvkGcaUn/V9b8vP11obGSxtQBcL3EV5UYaKn+ejj8PoHRGjC9j4Se4DTbL rC4w== X-Gm-Message-State: AO0yUKXavpdZQO1JW5x+r/SaNY3WdE6e7RVKU1POdOp0c5inVF3asFds b30OIh8QDrtKx/TUkqmQFS9Od4MoYv7FiAfVpig= X-Google-Smtp-Source: AK7set9JmawAhPxyJpQxDQu2eaArKUPvjy3LroeDjx93B3vN4otUJ0ZV+m3Azx3ZkM9Fv2erImkhSs1gOYJdZmYv5Fw= X-Received: by 2002:ac2:4891:0:b0:4cc:db38:d84e with SMTP id x17-20020ac24891000000b004ccdb38d84emr3099382lfc.180.1676192640335; Sun, 12 Feb 2023 01:04:00 -0800 (PST) Original-Received: by 2002:aa6:c266:0:b0:23b:5e81:46ba with HTTP; Sun, 12 Feb 2023 01:03:59 -0800 (PST) In-Reply-To: <86bklzs2su.fsf@mail.linkov.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:255390 Archived-At: i'm not sure that will work with alternate presentatin f difflll. what woul dbe good is for the internal diffing to notate not merely additions and deleteions but also absence of addionts. a marker that something will be deleted. no matter where. On 2/12/23, Juri Linkov wrote: >> this is a bug against emacs diff-mode. >> >> diff is not responsible for diff-mode colors. diff-mode is. > > You can use such a heuristics that when the region with deleted lines > borders the region with added lines this means that both regions show > the changed lines. So adjacent regions in the hunk = changed lines, > disconnected regions of added or deleted lines = separate > additions/deletions. > -- The Kafka Pandemic A blog about science, health, human rights, and misopathy: https://thekafkapandemic.blogspot.com