From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: Question: How does color-lighten-name work? Date: Fri, 28 Oct 2022 10:09:48 +0200 Message-ID: <875yg4s71v.fsf@gmail.com> References: <83r0ysjufl.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="14158"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Pedro Andres Aranda Gutierrez , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Oct 28 10:11:00 2022 Return-path: Envelope-to: ged-emacs-devel@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 1ooKSB-0003Wa-UJ for ged-emacs-devel@m.gmane-mx.org; Fri, 28 Oct 2022 10:10:59 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ooKR9-00047d-SV; Fri, 28 Oct 2022 04:09:55 -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 1ooKR7-00044N-Qo for emacs-devel@gnu.org; Fri, 28 Oct 2022 04:09:53 -0400 Original-Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ooKR6-0002zC-As; Fri, 28 Oct 2022 04:09:53 -0400 Original-Received: by mail-wm1-x32d.google.com with SMTP id bg9-20020a05600c3c8900b003bf249616b0so2963498wmb.3; Fri, 28 Oct 2022 01:09:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:gmane-reply-to-list:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=12E6DwSjQ9Bej4CSX8VYjVHEmNL1aSkCDmDgdAJG2O4=; b=EPC+j1mRfks9r2eb2RqQ7Mxczin6yZoD1I5yO89x1tqqf0jk1j+CJAS/D/WJhqlFGY VoSIABOrUh/Z49YPbjZ1PvSQe6XWOcq/rzXCifeLRZCDyVGFcLh7s087Hg+Cx81w4biT YnIkvdLl/9jF9VE9liibK80dQPBPiIsR08RcOUWTPwRAF2NmI3LKMMU2C0Ls/mqLvz1b ySZce11kq+48iqjJXj7YoY5V4QkcS9kqpgLRNbwg6lDyK+GOGRBFJ/+teT6QHn5aejSa Ukgp/jRYMq/rA50lfAYwtY5JQrqgq7PTchhR0xn3CGNuFxQugz8hN6jedDU1I4kA6WDH C9mA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:gmane-reply-to-list:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=12E6DwSjQ9Bej4CSX8VYjVHEmNL1aSkCDmDgdAJG2O4=; b=K5RIjWvXjWhAMjBNAAyorcd4EOyJsrSL3nkbC1Bd3k89cLxFag53XRXHiQpKyhsaXs th5nLw/QARL+ggR5cSGS2g5+ue/zzHD2Bnia6opO4b+gjkwgrHQbSVgwBzINJz4xzUrR Yya4AWobtFH+9Ff+ppxnb5I6vMTvyjuGdHjqaoN09zO1Rvp4OfcWQGSz5zcROpy1mWdx nBmVUwwc2j/wLzIiDedUvjRLgWxg8tkmIjEmrDvKK4+MFWZBzD7qofZFq/CRASmWzLru Wp4SCmswStIM9dWb4M8+oo6y9gtxT8sXfLf245Y62lPlYeJM3BURbU1jEXchyu3knLWs 491g== X-Gm-Message-State: ACrzQf2tgmi4IGtBGmMR4h7UV5g0tvAp7VNKu3CC6RzS1MdwJqGYREpD JuVjmHgMSZTwQYK6ThGsE3SM485TeAukVA== X-Google-Smtp-Source: AMsMyM43dx4ldBWqiXfw0TND6rH1enaZ484F0JMxEsU7aeTrq1mOhzDW4HvsHqzQJTIH4hmEql7weg== X-Received: by 2002:a05:600c:1c1e:b0:3c6:fa3c:32a9 with SMTP id j30-20020a05600c1c1e00b003c6fa3c32a9mr8403710wms.203.1666944589791; Fri, 28 Oct 2022 01:09:49 -0700 (PDT) Original-Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id 6-20020a05600c230600b003cf37c5ddc0sm3420710wmo.22.2022.10.28.01.09.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Oct 2022 01:09:49 -0700 (PDT) In-Reply-To: <83r0ysjufl.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 28 Oct 2022 10:09:34 +0300") Gmane-Reply-To-List: yes Received-SPF: pass client-ip=2a00:1450:4864:20::32d; envelope-from=rpluim@gmail.com; helo=mail-wm1-x32d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: "Emacs-devel" Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:298662 Archived-At: >>>>> On Fri, 28 Oct 2022 10:09:34 +0300, Eli Zaretskii said: >> From: Pedro Andres Aranda Gutierrez >> Date: Fri, 28 Oct 2022 08:23:16 +0200 >> >> (require 'color) >> (let ((newbg "#102030")) >> (message "newbg: %s" newbg) >> (setq newbg (color-lighten-name newbg 10)) >> (message "newbg: %s" newbg)) >> >> evaluated in the *scratch* buffer. will print the following: >> >> newbg: #102030 >> newbg: #11ab23563501 >> >> Shouldn't the second colour spec have only 3 bytes? Eli> No, it uses the default format of 4 digits per component. Eli> We could perhaps add an additional optional argument to specify how Eli> many digits per component to produce. By the principle of least surprise, perhaps default to the same number of digits as the input? Robert --