From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs Subject: bug#74055: 31.0.50; color-lighten-name not lightening black Date: Tue, 29 Oct 2024 05:41:59 +0100 Message-ID: References: <86plnk766i.fsf@gnu.org> <86cyjk6sz7.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19496"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: julien@danjou.info, Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= , noah@splode.com, 74055@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 29 05:44:32 2024 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 1t5e5o-0004xy-6t for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 29 Oct 2024 05:44:32 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t5e5O-0001DX-62; Tue, 29 Oct 2024 00:44:06 -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 1t5e5L-0001DD-5w for bug-gnu-emacs@gnu.org; Tue, 29 Oct 2024 00:44:04 -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 1t5e5K-0006wc-TG for bug-gnu-emacs@gnu.org; Tue, 29 Oct 2024 00:44:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=Auf4+vvpd7xSyx8mGqK3o8YsnbubGJ9lxecgX4IHmdc=; b=lse86D5x1BJCWYnN+Pb5v0w6MU+JOjM/ZrtjYAjMzhq+TZKq2HWDnlU5+8MbiPc5tPXt+beRNW0uRwoS06849nhiaz1uyj5M6i4PFJKGRkdAL774FZoAbsLtEXaxYwGN7TMyeooC836hlt9cBu1jKtUsvoYX4KtbhVkm5OoFwjdI+RmOEfoMxlS+6sZCMpq+/qPOOvmlw3ucjb9eshHyPkgiXppy/bCe4IYLc77S8Hmd1pSDZixqMYfMaXG8Zd/CGqN6SZ1lkPqxb8vLogk/hLx6e/q/02l9lfbXkUrIT/qM7mTn8XpqJFWqkWv22ptCEWZp3OkwlsYMYpP7LfoXxQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t5e5K-0000P2-GC for bug-gnu-emacs@gnu.org; Tue, 29 Oct 2024 00:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Oct 2024 04:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74055 X-GNU-PR-Package: emacs Original-Received: via spool by 74055-submit@debbugs.gnu.org id=B74055.17301769851464 (code B ref 74055); Tue, 29 Oct 2024 04:44:02 +0000 Original-Received: (at 74055) by debbugs.gnu.org; 29 Oct 2024 04:43:05 +0000 Original-Received: from localhost ([127.0.0.1]:55507 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t5e4P-0000NX-9G for submit@debbugs.gnu.org; Tue, 29 Oct 2024 00:43:05 -0400 Original-Received: from mail-wm1-f43.google.com ([209.85.128.43]:47405) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t5e4M-0000NP-Tn for 74055@debbugs.gnu.org; Tue, 29 Oct 2024 00:43:04 -0400 Original-Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-431481433bdso49910435e9.3 for <74055@debbugs.gnu.org>; Mon, 28 Oct 2024 21:43:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730176922; x=1730781722; darn=debbugs.gnu.org; h=content-transfer-encoding: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=Auf4+vvpd7xSyx8mGqK3o8YsnbubGJ9lxecgX4IHmdc=; b=kaBUQUoAElPN9Qy8JnFxVGVDd994N9p8TXq03axjNZic+6tTadxVnRGs95gB24OjHD uSDtRKbsWf133YYSkWweAXLa5V/+Xy0I4S6Xnle0/USzWW68MQ0+Mew2/pmUBUQeo/4I hM4ypZ4djTxk/66EemPzNEuFwqniUjBGH3OGivtyvd8jBteD4zKxrMaUEQiZ6euRuk6b nbDEJgYW6H0xpFCrR82WjNAT1y1TjFQL5X+3nBCRyigsS8VSwUfVSMqYZwvhqtuNBHdZ vcwB7b0eaaGsBA44C8e0zwpx8hyi5x1B7fBZN0tGgLSF/LRSE3EKyFGVwRMtRMuR5Dgx Dc2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730176922; x=1730781722; h=content-transfer-encoding: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=Auf4+vvpd7xSyx8mGqK3o8YsnbubGJ9lxecgX4IHmdc=; b=DOyWXZoqqfJYbeeJ2NXxmIoEgos2y6L4shmbitaPxOgxiaP6d+07X5qqn78JXuY2M2 1uvqo8ViwNaKSoBLDln6Fb2BNqztaEP2x2jIG0q2ihYJR6E++bVuDwyGX0hU8CHp/cSx z+ViEk3S/+spMHKGRP88+rqCEI14aGqAKbsejm947nCCtuy7cG+y/Kn4avAY/4rVJYpt kC2wyLGULXRIhSMaXW7gDM6+hgmQn+yuz2iUdbQ94WLlBlEZ8epBMT5ffVBF5tlexrVy 5+ax9kdItQk6Q6ucxsZZgxP4hkZjhfqPU8wmX2NxrOLI7C1J/BMA5CjvlPZrdjqyf2l6 a5tQ== X-Forwarded-Encrypted: i=1; AJvYcCVcvzJ5+KMeX8MAeNR7m3bOSVwY8vuvYNmauGKYbBuqexKvfLWQe21kG+v6MCPRotS1QIZZ9Q==@debbugs.gnu.org X-Gm-Message-State: AOJu0YxSlwOaJeSKT7vaVoKf/JLOfXCMkS3BwXw4UcnzWoBufstqh/dQ qoQXoQ+/z9lYFreUSDD7E17s+93XeShp/6MRBCIEmG3YxCKcwtmT X-Google-Smtp-Source: AGHT+IH+iDuCSAFB/1TiXG3b3mDObjQ/Tf5X1VApeV21owZoCPf5p3NOPvrzMM9U9/ZEC29GzxJjzA== X-Received: by 2002:a05:600c:444b:b0:42c:a8cb:6a75 with SMTP id 5b1f17b1804b1-4319acb19a6mr106621205e9.17.1730176921860; Mon, 28 Oct 2024 21:42:01 -0700 (PDT) Original-Received: from pro2 (p4fe3a9b1.dip0.t-ipconnect.de. [79.227.169.177]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4318b55f689sm161306075e9.16.2024.10.28.21.42.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Oct 2024 21:42:01 -0700 (PDT) In-Reply-To: <86cyjk6sz7.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 28 Oct 2024 19:24:28 +0200") 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:294467 Archived-At: Eli Zaretskii writes: >> From: Mattias Engdeg=C3=A5rd >> Date: Mon, 28 Oct 2024 17:57:49 +0100 >> Cc: Gerd M=C3=B6llmann , >> Julien Danjou , >> 74055@debbugs.gnu.org, >> Noah Friedman >>=20 >> 28 okt. 2024 kl. 13.39 skrev Eli Zaretskii : >>=20 >> > Our notion of "lighten color" seems to be to increase the color's >> > luminance by P percent. Since the black color's luminance is zero, >> > increasing that by 50% still yields zero. >> >=20 >> > By contrast, the page you point to seems to interpret "lighten" to >> > mean that P is the percentage of the full scale, not of the original >> > color's luminance. >> >=20 >> > This goes back to commit 656c2dd66e, which was supposed to fix >> > bug#54514. But maybe Noah's interpretation of "lighten" was >> > incorrect, and we should revert that change? OTOH, if we do revert >> > it, then Noah's example will disagree with the above page. >>=20 >> That change may have been made in haste. For example, it didn't >> touch the corresponding saturate and desaturate functions which use >> similar mechanics, so there is now an inconsistency in that respect. >>=20 >> But which interpretation is better isn't obvious. It doesn't have >> much to do with colour theory per se. As luminance is already a >> percentage of sorts, it's not at all clear what it means by >> increasing it by a certain percentage. Personally I wouldn't use >> either function because of how ill-defined they are. > > Maybe there are widely-accepted de-facto standards for that? I think HSL colors (Hue Saturation Luminescence) are used by CSS for example, so that's good, and color.el has support for HSL colors. Except that something is currently not working right, I guess.