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: Thu, 9 Feb 2023 20:25:25 -0700 Message-ID: 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="40346"; mail-complaints-to="usenet@ciao.gmane.io" To: 61396@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 10 04:26:34 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 1pQK3V-000AHB-IF for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 10 Feb 2023 04:26:33 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQK35-0000UN-Rp; Thu, 09 Feb 2023 22:26:07 -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 1pQK31-0000Tr-6P for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2023 22:26:03 -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 1pQK30-0007Rt-OE for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2023 22:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pQK30-0001HK-2O for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2023 22:26:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Samuel Wales Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Feb 2023 03:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61396 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16759995334875 (code B ref -1); Fri, 10 Feb 2023 03:26:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Feb 2023 03:25:33 +0000 Original-Received: from localhost ([127.0.0.1]:34022 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQK2X-0001GZ-3d for submit@debbugs.gnu.org; Thu, 09 Feb 2023 22:25:33 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:42246) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQK2W-0001GR-CW for submit@debbugs.gnu.org; Thu, 09 Feb 2023 22:25:32 -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 1pQK2W-0000Sb-29 for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2023 22:25:32 -0500 Original-Received: from mail-lj1-x22d.google.com ([2a00:1450:4864:20::22d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pQK2U-0007D1-6g for bug-gnu-emacs@gnu.org; Thu, 09 Feb 2023 22:25:31 -0500 Original-Received: by mail-lj1-x22d.google.com with SMTP id d8so4531513ljq.9 for ; Thu, 09 Feb 2023 19:25:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=fE8CO7q23Sf8YU5x+4rZ3G9cjhV//BJMTscsRtehcz4=; b=ZTQrLRNFSq8LT25YbTEQjAG5NO/pHcTo9YbToouEW9xDQVJ0nHLQm7BawQfZW2LLor fZ6FpM7yPacpYzRcVEo9EKSuomrxcWDdhATx4xfiymG3nupWHxEnRNpmJl0fjIqqD7Bi QRJAiT6rg86eAcgw/bYYk18XgPFFNBnZIz8tkcGDwsl+lwNdZca7K/P9Cec9ma+d25Br J9TnB89jaqPwlELnpvSKbxSsC130UxCV0Ux67QjIIDteVNYJxhZ+wGtLsNnA8hNGxqce 12PTGjVKHuEccGBNNO8t5E17J2zRBMw5SIoVtVpajiJZbEbCQ3EbQEKdCrf1ZEhN7cXZ GvfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=fE8CO7q23Sf8YU5x+4rZ3G9cjhV//BJMTscsRtehcz4=; b=7BTaew5enGyHcfgCrXRNcxy2Tlsb10HI2kJDYev+qoPBhs7iTDZkIeyuyf5asuXlMI ilz0CTAwrNxK/UFRTGmLXBlaXUrAdD81jePtucdhczT/++SoAyIJTiqFUNGeorwnRAKJ HEZkyDUPAfAguCI8e1kjnGbhF7f6H5h7XBG5NZ2XIFXxltRj/KU60D+RMdB9hppeRPJ8 QlxIUV9CTBTo1neQkrKz8X2EWLlen1uebzmmfg7WZLQNGgqwS5kkO8hMhq3ppROiIauB 8AzckNQ+0HCD7G94IQu+c5uk9HoIBQa3rMZ8okbVlUZ/G1epHXl3AigOm7Lao/riqa5M +bow== X-Gm-Message-State: AO0yUKVgVWoRM/sqCOxwPg3RM/ZGzf7SzRtvbzrmKgHGv0D1qVBLIGvJ nmmvgBuhSXeDDIPM7rFNdwzlgRZMcOs3KqCNKDr+B6t3lru4fA== X-Google-Smtp-Source: AK7set9vjUCZvFix4u3LRLsEgO5Nm1SkAnltMELVheWrM5G9sv5IIRjT+l2wOX0JM/crq+rMh4kB3vEOsPnEeOJsT0w= X-Received: by 2002:a2e:aa1c:0:b0:290:7d15:464b with SMTP id bf28-20020a2eaa1c000000b002907d15464bmr2111461ljb.146.1675999526855; Thu, 09 Feb 2023 19:25:26 -0800 (PST) Original-Received: by 2002:aa6:c266:0:b0:23b:5e81:46ba with HTTP; Thu, 9 Feb 2023 19:25:25 -0800 (PST) Received-SPF: pass client-ip=2a00:1450:4864:20::22d; envelope-from=samologist@gmail.com; helo=mail-lj1-x22d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:255267 Archived-At: in diff mode, with diff -u, if a line in A was added to in B, you can't tell by looking at the A version whether it was =deleted= in B or =changed= from A to B. you have to manually find it in B and then compare. here is an example: -now is the time +now is the time FOR ALL GOOD MEN the - line is in del face. there is no indication on that line that the line is not deleted. if the lines are separated sufficiently, it is not obvious to the user whether it is a line that was deleted, or, as above, added to. the del face is therefore ambiguous and can be potentially misleading to the user. === the only thing that tells you non-confusingly that A was changed, or where, is if you look at B. this is not practical when there are many lines. a fix is to have a different face for changed lines. i suggest a muted bg face. another fix is to stick a colored marker INDICATOR in A where changes in B exist. -now is the time^ +now is the time FOR ALL GOOD MEN where ^ is a colored marker -- actually just a changed bg for the newline in this case would work, but i don't think emacs supports that. thank you. -- The Kafka Pandemic A blog about science, health, human rights, and misopathy: https://thekafkapandemic.blogspot.com