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: Sat, 11 Feb 2023 17:52:36 -0700 Message-ID: References: <86y1p4m9cg.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="30099"; 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 01:53:39 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 1pR0cd-0007dd-MJ for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Feb 2023 01:53:39 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pR0c4-0008NK-1A; Sat, 11 Feb 2023 19:53: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 1pR0c2-0008JV-R1 for bug-gnu-emacs@gnu.org; Sat, 11 Feb 2023 19:53: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 1pR0c2-0007XU-IQ for bug-gnu-emacs@gnu.org; Sat, 11 Feb 2023 19:53:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pR0c2-0001Pk-7d for bug-gnu-emacs@gnu.org; Sat, 11 Feb 2023 19:53: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: Sun, 12 Feb 2023 00:53: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.16761631685403 (code B ref 61396); Sun, 12 Feb 2023 00:53:02 +0000 Original-Received: (at 61396) by debbugs.gnu.org; 12 Feb 2023 00:52:48 +0000 Original-Received: from localhost ([127.0.0.1]:43596 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pR0bn-0001P4-JW for submit@debbugs.gnu.org; Sat, 11 Feb 2023 19:52:47 -0500 Original-Received: from mail-lf1-f52.google.com ([209.85.167.52]:47059) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pR0bk-0001Oo-55 for 61396@debbugs.gnu.org; Sat, 11 Feb 2023 19:52:46 -0500 Original-Received: by mail-lf1-f52.google.com with SMTP id bp15so14025010lfb.13 for <61396@debbugs.gnu.org>; Sat, 11 Feb 2023 16:52:44 -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=8qnzHRz6otycoG4v/eHfatxwJE/oOF1jrZaxs9PDJEU=; b=YXDtpki7Kfi6tyT+Z6UW5mlOjBq1hfXGdG+bGAiy4zjqO4we3RMUz8Tfwm5VPRldLj f3wIaia66aQhNi2xDM1y7IPb60lIq6bLc5OqI8EKjfcI6Ip6AJjE2GDlU0gT2WuZwZHd aDneiO88+Md41FamjQpmzRKp2uWHkCrO/m5/oKOcOn6JRpzPrSLy3KBO9an1xEVbXLUk ZwU0PKUWv/3QuxBqnJ+eZz9klBg3+6Dc3UYycg/GEZEjkeZU9xIuB3a8nHvfA+oUFkjx gvq7GpycwmnwiffnCCNe+UhiLF+5dzwFE1zNv5E8Y2wuqURmYnsg0y8ftunk8ZebsTPr ZGIw== 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=8qnzHRz6otycoG4v/eHfatxwJE/oOF1jrZaxs9PDJEU=; b=Wk0RRw372jR3EIA6uJlLGo1XI6cSpa/R4f3gM5vTSB50pyIlcVP1hMSyuTQ1c0Wnh9 tCSOZUYf1Zlm5I7vrYl9zeDuWv9gkQQLzJuov04f56XPP2fc9RXEcGsnmqxmgn09zW1x 7x/on8NTGsU0TIP18eRdlXF+JId3PchiKjVpF1OLa5IQJFG4fdIo6Bq+cH+3Li6sQGJV /7y3ulLXsYeb1dIxAzlsR2Gz7UYZoUZ/Ybe6jUm83LD7JEKS3hd4gP3JpKPlSUHzWotH pJzFY82i31tqd0w6ec+uXCsRtzK3DWqrqtLxNTZR/+Q/P1H7E6ko5xfkN+Xi7sjTyU9l Vyqw== X-Gm-Message-State: AO0yUKUIJfSWKQxnR9lP8234kbKRHYOYdkzZ24CGOO5XB2dLT4GzQ4ay MyFXFTSh+eM/Vki2Pd7E4SGVse78QzVf+aBA02U= X-Google-Smtp-Source: AK7set/Db30yGcmtDrXiFrE4exTOTbf1rSmo4ernr5qU/omiB6GhEy4eOyUHpbrTZvN5ZxtJdo/YKK/ZeE/jCLpKX/A= X-Received: by 2002:ac2:4c0b:0:b0:4db:3a6e:de30 with SMTP id t11-20020ac24c0b000000b004db3a6ede30mr88596lfq.78.1676163157641; Sat, 11 Feb 2023 16:52:37 -0800 (PST) Original-Received: by 2002:aa6:c266:0:b0:23b:5e81:46ba with HTTP; Sat, 11 Feb 2023 16:52:36 -0800 (PST) In-Reply-To: <86y1p4m9cg.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:255354 Archived-At: this is a bug against emacs diff-mode. diff is not responsible for diff-mode colors. diff-mode is. On 2/11/23, Juri Linkov wrote: >> i think it is in diff-mode in emacs, at least when it is displaying diff >> -u. >> >> in particular, the idea is whether it can be solved using emacs >> features such as faces. >> >> it is true that diff and friends can often do colors, but to my >> knowledge, diff-mode uses raw text as its input. > > But diff has no color for changed lines, only for added/removed lines: > > '--palette=PALETTE' > Specify what color palette to use when colored output is enabled. > It defaults to 'rs=0:hd=1:ad=32:de=31:ln=36' for red deleted lines, > green added lines, cyan line numbers, bold header. > > Supported capabilities are as follows. > > 'ad=32' > SGR substring for added lines. The default is green foreground. > > 'de=31' > SGR substring for deleted lines. The default is red foreground. > > 'hd=1' > SGR substring for chunk header. The default is bold foreground. > > 'ln=36' > SGR substring for line numbers. The default is cyan foreground. > -- The Kafka Pandemic A blog about science, health, human rights, and misopathy: https://thekafkapandemic.blogspot.com