From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#61396: diff mode could distinguish changed from deleted lines Date: Fri, 10 Feb 2023 09:17:07 +0200 Organization: LINKOV.NET Message-ID: <868rh6yop8.fsf@mail.linkov.net> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6847"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: 61396@debbugs.gnu.org To: Samuel Wales Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 10 08:20:18 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 1pQNhi-0001eb-Nk for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 10 Feb 2023 08:20:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQNhU-0001G7-8D; Fri, 10 Feb 2023 02:20: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 1pQNhS-0001FV-F0 for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2023 02:20: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 1pQNhS-0007o6-5q for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2023 02:20:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pQNhR-0007yi-TS for bug-gnu-emacs@gnu.org; Fri, 10 Feb 2023 02:20:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Feb 2023 07:20: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.167601358830638 (code B ref 61396); Fri, 10 Feb 2023 07:20:01 +0000 Original-Received: (at 61396) by debbugs.gnu.org; 10 Feb 2023 07:19:48 +0000 Original-Received: from localhost ([127.0.0.1]:34212 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQNhD-0007y6-WB for submit@debbugs.gnu.org; Fri, 10 Feb 2023 02:19:48 -0500 Original-Received: from relay10.mail.gandi.net ([217.70.178.230]:49799) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQNhB-0007xo-Qh for 61396@debbugs.gnu.org; Fri, 10 Feb 2023 02:19:46 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id EA89A240007; Fri, 10 Feb 2023 07:19:36 +0000 (UTC) In-Reply-To: (Samuel Wales's message of "Thu, 9 Feb 2023 20:25:25 -0700") 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:255277 Archived-At: > 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?