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: Fri, 10 Feb 2023 16:49:00 -0700 Message-ID: References: <868rh6yop8.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="2573"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61396@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 11 00:50:07 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 1pQd9b-0000TO-EA for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 11 Feb 2023 00:50:07 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQd9X-00045w-Il; Fri, 10 Feb 2023 18:50:03 -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 1pQd9W-00045j-0v for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2023 18:50: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 1pQd9V-0004nr-OJ for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2023 18:50:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pQd9V-00043U-Jk for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2023 18:50: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: Fri, 10 Feb 2023 23:50: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.167607295015503 (code B ref 61396); Fri, 10 Feb 2023 23:50:01 +0000 Original-Received: (at 61396) by debbugs.gnu.org; 10 Feb 2023 23:49:10 +0000 Original-Received: from localhost ([127.0.0.1]:38337 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQd8g-00041z-Eq for submit@debbugs.gnu.org; Fri, 10 Feb 2023 18:49:10 -0500 Original-Received: from mail-lj1-f170.google.com ([209.85.208.170]:37670) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQd8e-00041B-6g for 61396@debbugs.gnu.org; Fri, 10 Feb 2023 18:49:08 -0500 Original-Received: by mail-lj1-f170.google.com with SMTP id h17so8122694ljq.4 for <61396@debbugs.gnu.org>; Fri, 10 Feb 2023 15:49:08 -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=7Gotyj/eTl+SkfbBfXEWuRRIJP0Vb4MtNHh2FmkAmPg=; b=k6j2SeNgpFVoCVkpOa07S2G/wGNCCbJvUCecNmy+FYQPmP1lLx7lReZWGnF3d4/5Ij JqfCXHo+zKvmsYvCU2bl2LW6xuq1Iw0WvUtQdjd7uiNL9ATInpNzv+P4v3KqiCqZ8Sqh 1bKd1t5imDBynWxjvftIi/1Y+t57RpbLMNKitiAQwzwL5Y31XWhPZK9xh4XHCGUJnU4B xMh4NOfE1CGGcW5RVbBfFsnimGegXPCTuXTgt6EqrRqu2SNF/0IHlcEHFD/L2Hr+Nmw4 eE9xkWTiq5maqiJgXirIO+lJFwIdeWBQ70BO4bdq9qhaV4RnYIiuLaYzv5lo4Lqpqp9K t+LA== 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=7Gotyj/eTl+SkfbBfXEWuRRIJP0Vb4MtNHh2FmkAmPg=; b=sXUTzUGxX7KXFpuP0V1gP6Y1v035ruCWHHG4v/SaMp+O6BWttHSvYVKQcxxCDX7jE0 30p6fR2+F2mej3Mteh+DrZnw/RP+mGnvn9adbxqNSWanL3S1laOh8cBNt7ucCBrWXPyg XjNEnaecNqpzmibf58j7qq4pkxuK4vGGWbo7bD5MgtkolUrKX036ToluWKfStoZzvb6a iF68ZutIGjLhFxgYBGsHjoVu0quX9VYHiW7gc54Fp7z/5xYBT8dlXIy+3kZT8YbPJc39 TGUdD175qpSUtXuIyD8BxE+uUgIBBuN7WIvpbWdIRCa7Wk2jqp4xgqd7KbCkZziZ6IZ2 LHsg== X-Gm-Message-State: AO0yUKUOuSGDiAX6ndN0r+4vSOOMcw99fI55IM3K06F6gCwEUj2NEA0w IwLKwkpu8D7eR8AEA52nhaLu1EA0L649G1nVTqTqhY9SnzQwlw== X-Google-Smtp-Source: AK7set9wa+7QT5yowQyV1DhNuH4QdUpY7XeeKti19Pe2sOq+YKriRXZxQ2QAsFwPeh8LR7qjp1yMoYxa/XYlb4UbBFw= X-Received: by 2002:a2e:9f08:0:b0:290:67a6:38d2 with SMTP id u8-20020a2e9f08000000b0029067a638d2mr2860593ljk.184.1676072942033; Fri, 10 Feb 2023 15:49:02 -0800 (PST) Original-Received: by 2002:aa6:c266:0:b0:23b:5e81:46ba with HTTP; Fri, 10 Feb 2023 15:49:00 -0800 (PST) In-Reply-To: <868rh6yop8.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:255307 Archived-At: it is an interesting idea to change the gutter from - to !, but i'm not sure this is ok for diff -u, i think it could maybe break things?, and it would not distinguish - from +. On 2/10/23, Juri Linkov wrote: >> 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. > > We have a dedicated face to indicate the changed lines. > Its name is 'diff-changed' and it can be used for context diffs > that have a special indicator '!' at the beginning of changed lines. > Is it possible to output the same indicator for unified diffs? > -- The Kafka Pandemic A blog about science, health, human rights, and misopathy: https://thekafkapandemic.blogspot.com