From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pedro Andres Aranda Gutierrez Newsgroups: gmane.emacs.devel Subject: Question: How does color-lighten-name work? Date: Fri, 28 Oct 2022 08:23:16 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000988d9605ec124c56" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25185"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Oct 28 08:35:14 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 1ooIxW-0006P6-AF for ged-emacs-devel@m.gmane-mx.org; Fri, 28 Oct 2022 08:35:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ooIvQ-0005Wn-FH; Fri, 28 Oct 2022 02:33:04 -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 1ooIvN-0005S3-HT for emacs-devel@gnu.org; Fri, 28 Oct 2022 02:33:01 -0400 Original-Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ooImO-0000yO-9l for emacs-devel@gnu.org; Fri, 28 Oct 2022 02:23:45 -0400 Original-Received: by mail-ed1-x536.google.com with SMTP id v27so6494621eda.1 for ; Thu, 27 Oct 2022 23:23:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=i6ezGS74YTB/tQQGa0q4LD8JAObWLElWoOTB8dE0FaI=; b=gf5RGfOx9tgo0I2t9JMRYa4yfSzV9L3H0WDpKeVUdkcHZy3B2xvR2VLnUaJnxE+GgS HZyCr6Y2iXe/oWXlvyqJVOsAkqdxFDaantPyyT1ap0dVcJswBVeAmbFU7LLVUPBsPL6p 38jxPNXYP5FDqm26qJb9jKbmMeBxi+J1CxRp2i7+QZJg/rvin7OIyf1sEueoRIwVdHM5 3A4bLUjGHieeAGSYyy01NJqOytzclkTBMOu54KOKWpCbIPnnd2aysJACitdskUUkpOEF 1DRCsXRqm7FkblKJd6noFowmA3LFsoH67RaFpyPnzfBJJeKwa7nhTs0YxNfe3u7qx8EL R4RQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=i6ezGS74YTB/tQQGa0q4LD8JAObWLElWoOTB8dE0FaI=; b=0OA/K7Z67vJr/WIe1QuoybIxSgd88QRnpiZPIjs7udl+RZW6PV0SbiXDGuRORBxiq2 K7LDAcBMwkRFHB7o3dyKVeeYv6+Og0hP2v0l+siaOpo9bRHtee29zkQzAdryUivW0IPU UXpFfArhq/bvgSUzZ/8/IvShCvh2x4gh6Ii+DC183jyEnMQxsMDYNkSp4NuYHOeK1tcx Cos198CrIstHJH6l7ytm5Ghs+8KStgAbrW6V1O0R1GDY7Ye7BYk2QeY/nMtROrPtsT8h MJsGznlK3zf8dEVxLhOevKXUNssN+QYCTSGX//aARSML4+DMoN8U+Wc9oQuuZ/Wk1HTk vRGQ== X-Gm-Message-State: ACrzQf2M2zhdIlATniyWXeyRY4WgtnhbeWWpwz7qDJXYk73RM9VyxsXe v5INmlkQ9iHDZHMD68R5TpDzmQD3GjSELSAWqfxWWI0c0OE= X-Google-Smtp-Source: AMsMyM6fwM3fmxAh4rBogo7ZuHySniKYQ0Bn6y57lc1phzkPMgRqoI4UnWkIg4TCRU+xlp42qZaYCXzWhpiA8Zu6Vho= X-Received: by 2002:a05:6402:d62:b0:460:42c8:fc6d with SMTP id ec34-20020a0564020d6200b0046042c8fc6dmr40675497edb.182.1666938222184; Thu, 27 Oct 2022 23:23:42 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::536; envelope-from=paaguti@gmail.com; helo=mail-ed1-x536.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, HTML_MESSAGE=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:298656 Archived-At: --000000000000988d9605ec124c56 Content-Type: text/plain; charset="UTF-8" Hi folks, I'm a bit puzzled with color-lighten-name... This simple code: (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? Thanks for any enlightenment, because the docstrings are frugal /PA -- Fragen sind nicht da um beantwortet zu werden, Fragen sind da um gestellt zu werden Georg Kreisler Headaches with a Juju log: unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should run a leader-deposed hook here, but we can't yet --000000000000988d9605ec124c56 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi folks,

=
I'm a bit puzzled with color-lighten-name...

<= div>This simple code:

(require 'color)
(let ((newbg "#102030"))
=C2=A0 (message "= newbg: %s" newbg)
=C2=A0 (setq newbg (color-lighten-name new= bg 10))
=C2=A0 (message "newbg: %s" newbg))
<= br>
evaluated in the *scratch* buffer. will print the following:<= /div>

newbg: #102030
newbg: #11ab23563501=

Shouldn't the second colour spec have o= nly 3 bytes?

Thanks for any enlightenment, because= the docstrings are frugal
/PA
--
Frage= n sind nicht da um beantwortet zu werden,
Fragen sind da um gestel= lt zu werden
Georg Kreisler

Headaches wit= h a Juju log:
unit-basic-16: 09:17:36 WARNING juju.worker.uniter.= operation we should run a leader-deposed hook here, but we can't yet
--000000000000988d9605ec124c56--