From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Helmut Eller Newsgroups: gmane.emacs.bugs Subject: bug#64725: 30.0.50; set-face-foreground shows background colors Date: Wed, 19 Jul 2023 17:45:17 +0200 Message-ID: References: <83351k5aw5.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32982"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 64725@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 19 17:47:09 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 1qM9OP-0008KI-9J for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 Jul 2023 17:47:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qM9NO-00046d-Qg; Wed, 19 Jul 2023 11:46:08 -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 1qM9NL-00045z-Pc for bug-gnu-emacs@gnu.org; Wed, 19 Jul 2023 11:46:05 -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 1qM9NK-0002fR-0p for bug-gnu-emacs@gnu.org; Wed, 19 Jul 2023 11:46:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qM9NJ-0000sN-KN for bug-gnu-emacs@gnu.org; Wed, 19 Jul 2023 11:46:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Helmut Eller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 Jul 2023 15:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64725 X-GNU-PR-Package: emacs Original-Received: via spool by 64725-submit@debbugs.gnu.org id=B64725.16897815303327 (code B ref 64725); Wed, 19 Jul 2023 15:46:01 +0000 Original-Received: (at 64725) by debbugs.gnu.org; 19 Jul 2023 15:45:30 +0000 Original-Received: from localhost ([127.0.0.1]:57003 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qM9Mn-0000rb-L2 for submit@debbugs.gnu.org; Wed, 19 Jul 2023 11:45:29 -0400 Original-Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]:45458) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qM9Mj-0000rK-7a for 64725@debbugs.gnu.org; Wed, 19 Jul 2023 11:45:28 -0400 Original-Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-3fbc59de0e2so65973235e9.3 for <64725@debbugs.gnu.org>; Wed, 19 Jul 2023 08:45:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689781519; x=1690386319; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=e7Th5LJDCa5H+wmzghfx0lW71jC70ZPai+XwkyQ0a8o=; b=ASASj2yBrdevyt7RAug+bZHdIlQN4fpcMI0QRxGr6kmiilS9Y/5Q1fIZl69sLfZfds +5C99wHxHmXGPOTQM8efyuCKMpMC4hjuugeR3qVyaotzEoqJKagC7ueOHKjakwnuLbCz wNDKOZotODqEYlGiCGJXHZUnde6EchlgBZdmlUEfS+OgTNz5fG6XtTkvpwl2t0EtDoEp UaN97v2FQzMYjLv6NXNBK+Qm1ObjqwTqzZ/TLRijOBRfP7gjCH9ivya+LWSF0FmfBxuI DV3QAU3P86m03OZC671C6srxumL4DahkUQs7UpOi7kO9IGg/wxWeHGHOoOFTDdd8ToAI 2Xlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689781519; x=1690386319; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=e7Th5LJDCa5H+wmzghfx0lW71jC70ZPai+XwkyQ0a8o=; b=B6d/jC4A7AbbaQwIjXOWfhCg/iKOPD3j4nYP5mSQ0A+PKiE8350NdYEWEn8Fgcq4k3 w/EHq8Ok1Rt0fqZjVbkvX+k0PI6RZid2RgbyjADI1Rv9I8oehbsn3FMmCreAIaAWGD7E VKYNpIussdEW8IKrK/uF0Y6YV+RB2+W9rligJpjDHl3VMirI32EKp7bv9bybzuhjDbTk wcPB65/lLGPPNePG5sCCfzbL7xwp/1hKP6Z57NABUnIeC0sib84oJgL/6PQEDWRpcvtY PQwJBtNc6Z90kNuNFwQ3c8Wyym0qAJRDlMXxgppqbPFjgGbeMdrNGjtCrYST81QSGg49 4Y7Q== X-Gm-Message-State: ABy/qLYS2SBxr2CkRUIiKe9vghc7DtyK+REb6OOIlKBxkJ+W5W14PKZb VMz5YmS+KezJIMq5+rc3DsYh7sK01Eo= X-Google-Smtp-Source: APBJJlF+iRAqwdBf956+bi+igIWLl/SUgtEBW6pJavQawga9epdJHHJPZ5EpfSlwJxfgMyb1WOGiLw== X-Received: by 2002:a7b:cbd6:0:b0:3fd:45b:45f8 with SMTP id n22-20020a7bcbd6000000b003fd045b45f8mr1629603wmi.23.1689781518538; Wed, 19 Jul 2023 08:45:18 -0700 (PDT) Original-Received: from caladan ([212.46.176.29]) by smtp.gmail.com with ESMTPSA id i12-20020adffdcc000000b003142e438e8csm5630843wrs.26.2023.07.19.08.45.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jul 2023 08:45:18 -0700 (PDT) In-Reply-To: <83351k5aw5.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 19 Jul 2023 15:44:10 +0300") 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:265548 Archived-At: On Wed, Jul 19 2023, Eli Zaretskii wrote: >> It would be more useful to see the text with the candidate color as >> foreground on the default background. > > Why not use the actual foreground of the face being customized? Then > the user could see whether the background color being selected will > have good contrast (or just look well) with the face's foreground. I don't understand what you mean with "actual foreground". The problem I have, is that some color combinations are hard to read, like yellow on white. Then I usually want to change the foreground color and not the background. Assume that we have white as default background, black as default foreground, font-lock-string-face has foreground yellow and we want to change the foreground from yellow to brown. In this situation I would like to see how brown on white would look and not so much black on brown (or white on brown). Even better then displaying the candidate color on the default background would be to show the candidate color on the current background color of the face. But I guess that's harder to implement. Helmut