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: Mon, 24 Jul 2023 16:39:04 -0700 Message-ID: References: <86y1p4m9cg.fsf@mail.linkov.net> <86bklzs2su.fsf@mail.linkov.net> <86fsbbnlaq.fsf@mail.linkov.net> <87bkg1lied.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3756"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61396@debbugs.gnu.org, rms@gnu.org, Juri Linkov To: Robert Pluim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 25 01:40:20 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 1qO5A4-0000oB-5s for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 25 Jul 2023 01:40:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qO59o-0006k3-K9; Mon, 24 Jul 2023 19:40:04 -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 1qO59n-0006jT-BQ for bug-gnu-emacs@gnu.org; Mon, 24 Jul 2023 19:40:03 -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 1qO59m-0003t0-N1 for bug-gnu-emacs@gnu.org; Mon, 24 Jul 2023 19:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qO59m-0002Vr-Ip for bug-gnu-emacs@gnu.org; Mon, 24 Jul 2023 19:40:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Samuel Wales Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Jul 2023 23:40:02 +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.16902419559590 (code B ref 61396); Mon, 24 Jul 2023 23:40:02 +0000 Original-Received: (at 61396) by debbugs.gnu.org; 24 Jul 2023 23:39:15 +0000 Original-Received: from localhost ([127.0.0.1]:44331 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qO590-0002Ub-SM for submit@debbugs.gnu.org; Mon, 24 Jul 2023 19:39:15 -0400 Original-Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]:39390) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qO58x-0002UM-Iq for 61396@debbugs.gnu.org; Mon, 24 Jul 2023 19:39:12 -0400 Original-Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-4fdb205baccso1355677e87.1 for <61396@debbugs.gnu.org>; Mon, 24 Jul 2023 16:39:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690241945; x=1690846745; h=content-transfer-encoding:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=KALy7x72Cu3LTS4+TnMYJlTdh6pK+pIQ9a5pltXG/Ns=; b=lhNP5AwN2m0BALR61mUQXpYSKwuu9YJMropL8ARkgw4s9fPCbg//3T8MB/ihpmKhSt vmpu+gbsXArgKthEXdkFhYbv0M6XBozAi4y1Fa+qcePdUmZBCbGmePicKpK8hWrKcixV waiFeixpCOUeuikhtPVoMCokC2UIwWWG5ynsQlNF7SVs5xipiX8XnLsbRA25vk0JowfH 4t6MvO9hDZ9a2FrKvUyPFBRr3Ve7XBSbkGQlPlJtjXdkmzIjB2/9ZhGh3EwfkJ9axzae +ytaPuvXTc+kRgqfzJ36pS4IsR8v7d/ORDsyqYWlT8AA2XeoEk/cWGYGkpYeZFBtXS+e CiMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690241946; x=1690846746; h=content-transfer-encoding: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=KALy7x72Cu3LTS4+TnMYJlTdh6pK+pIQ9a5pltXG/Ns=; b=KD3FYh59rabX9thZP5+a91yYw8PprKpE4IGYNDsyO1i6ZYcLBQRDyX/GQwwsHJZI9y kn/2viREFUae81R3lAQklH1pRFv5cree6rj7wjSfeobFoaHzFRGuLYLZtq29QFnq/br7 Bdd7AQReQv3EZ+M9ii+2C1KVHZEbWeZb13+TirUhU3f1s9xbAdgFD48OP9PY9G2YqZ0Z 6LCT5+d12Vshu6gi1Pk+elv8nqNorxCrI5IjNgCW+jofnTwWJCNieVYZyJnDlFrQCRcZ ltnAz6b+7kXNlC6gYHvWgyJduUYawrxr50nVVa682F4ayEx29rzsKmqGhub15JNJfODW IuWg== X-Gm-Message-State: ABy/qLYBjFMdI8LlV4Hivz4okirMi4CpNQKoVvSXwrTOCoRtbW6QdnWk qJCEORalkCZ3Pqu7X3xofp/D9OcPOYDnToRu+jTAAPpdaoTmZg== X-Google-Smtp-Source: APBJJlFb9WbU2jkdiEvZFXH1/fN6/+V9VyXIwjIIUoZTd4SbaqVoBZC63hJa4XG4tdn3S3Z6P4WEcpAuN9kqIUcT1bo= X-Received: by 2002:a19:ac4a:0:b0:4fb:9507:8d99 with SMTP id r10-20020a19ac4a000000b004fb95078d99mr4861081lfc.2.1690241945551; Mon, 24 Jul 2023 16:39:05 -0700 (PDT) Original-Received: by 2002:a05:6520:11e2:b0:268:94be:fdc7 with HTTP; Mon, 24 Jul 2023 16:39:04 -0700 (PDT) In-Reply-To: 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:266006 Archived-At: applying a face to line 1 does not make sense in this context. there is no text to apply a face to because it was deleted. On 7/24/23, Samuel Wales wrote: > in 27.1 i am not getting this. > > i am getting this: > > file aaa: now is the time > file bbb: now is the time for all good men > > now you diff this > with result: > > line 1: -now is the time > line 2: +now is the time /for all good men/ > > line 1 does not indicate that anything was deleted. i request that > diff-mode do so, if possible. line 2 is correct. > > what i need is an indication that something is lacking in line 1. i > do not need the text that is lacking. > > > On 7/24/23, Robert Pluim wrote: >>>>>>> On Sat, 22 Jul 2023 23:04:10 -0700, Samuel Wales >>>>>>> said: >> >> Samuel> so basically, >> Samuel> -this is a line that ^looks deleted, but it is changed >> Samuel> ... >> Samuel> +this is a line that REALLY looks deleted, but it is >> changed >> >> Samuel> what is not indicated for the user is at the ^. i woul dlik= e >> it >> if >> Samuel> diff mode if possible showed that text was deleted there. >> >> That=CA=BCs what diff-mode does, if `diff-refine' is non-nil (which is t= he >> default nowadays), by applying the `diff-refine-removed' face. >> >> Robert >> -- >> > > > -- > The Kafka Pandemic > > A blog about science, health, human rights, and misopathy: > https://thekafkapandemic.blogspot.com > --=20 The Kafka Pandemic A blog about science, health, human rights, and misopathy: https://thekafkapandemic.blogspot.com