unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Anders Lindgren <andlind@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 35695@debbugs.gnu.org
Subject: bug#35695: 27.0.50; Faces diff-added and diff-removed look the same in a 256 color terminal
Date: Sun, 12 May 2019 20:48:03 +0200	[thread overview]
Message-ID: <CABr8ebaX5qJWqpX2btQeDsAL00mOU6OW5EGbu3qQA9bk_hXmwQ@mail.gmail.com> (raw)
In-Reply-To: <83v9ygb4dm.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1882 bytes --]

Hi!

On Sun, May 12, 2019 at 7:59 AM Eli Zaretskii <eliz@gnu.org> wrote:

>   I think we should go back to the old values when min-colors is 256
>   or less.
>

Sounds good to me.

I just gave the following a try. It seems to be working, but I'd like to
double check the details so that I haven't missed a face. (Dark mode isn't
affected, as far as I can see.)

diff --git a/lisp/vc/diff-mode.el b/lisp/vc/diff-mode.el

index a26e9ee..079806d 100644--- a/lisp/vc/diff-mode.el
+++ b/lisp/vc/diff-mode.el@@ -314,8 +314,10 @@ diff-hunk-header
(defface diff-removed
   '((default
      :inherit diff-changed)-    (((class color) (min-colors 88)
(background light))+    (((class color) (min-colors 257) (background
light))      :background "#ffeeee")+    (((class color) (min-colors
88) (background light))+     :background "#ffdddd")     (((class
color) (min-colors 88) (background dark))
      :background "#553333")
     (((class color))@@ -325,8 +327,10 @@ diff-removed (defface diff-added
   '((default
      :inherit diff-changed)-    (((class color) (min-colors 88)
(background light))+    (((class color) (min-colors 257) (background
light))      :background "#eeffee")+    (((class color) (min-colors
88) (background light))+     :background "#ddffdd")     (((class
color) (min-colors 88) (background dark))
      :background "#335533")
     (((class color))@@ -2040,8 +2044,10 @@ diff-refine-changed
(defface diff-refine-removed
   '((default
      :inherit diff-refine-changed)-    (((class color) (min-colors
88) (background light))+    (((class color) (min-colors 257)
(background light))      :background "#ffcccc")+    (((class color)
(min-colors 88) (background light))+     :background "#ffbbbb")
(((class color) (min-colors 88) (background dark))
      :background "#aa2222"))
   "Face used for removed characters shown by `diff-refine-hunk'."


    -- Anders Lindgren

[-- Attachment #2: Type: text/html, Size: 4908 bytes --]

  reply	other threads:[~2019-05-12 18:48 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-12  5:03 bug#35695: 27.0.50; Faces diff-added and diff-removed look the same in a 256 color terminal Anders Lindgren
2019-05-12  5:39 ` Eli Zaretskii
2019-05-12  5:58   ` Eli Zaretskii
2019-05-12 18:48     ` Anders Lindgren [this message]
2019-05-12 19:24       ` Juri Linkov
2019-05-13 20:45         ` Anders Lindgren
2019-05-14 20:06           ` Juri Linkov
2019-05-15 19:10             ` Anders Lindgren

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CABr8ebaX5qJWqpX2btQeDsAL00mOU6OW5EGbu3qQA9bk_hXmwQ@mail.gmail.com \
    --to=andlind@gmail.com \
    --cc=35695@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).