From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Question: How does color-lighten-name work? Date: Fri, 28 Oct 2022 10:09:34 +0300 Message-ID: <83r0ysjufl.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15121"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Pedro Andres Aranda Gutierrez Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Oct 28 09:10:40 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 1ooJVn-0003n7-KV for ged-emacs-devel@m.gmane-mx.org; Fri, 28 Oct 2022 09:10:39 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ooJV2-0002hI-AY; Fri, 28 Oct 2022 03:09:52 -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 1ooJUr-0002On-92 for emacs-devel@gnu.org; Fri, 28 Oct 2022 03:09:42 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ooJUr-0007xg-06; Fri, 28 Oct 2022 03:09:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=gT5UtHPULc6FXMmpw75/1+bvEwuzEmjHrDmxwx2irY4=; b=KoBL1JVNCE/R dJSodhIDiMJcvRRPGFxEGmZjdTwdELT7VrVyWI8olxkfwF43XRBGORr6fp6M13KjWcOed4e9k2CwS Fnp6hPGCp0DfiZLU5EdLjH6ywskPxzK8fcK8DQI+PTHWK/t9HaeBQXijIkplf58ssDFy4KMTeQoFM ZUMFhRdScfoBECVAuQ6fy7BFeArNGsCe05V1QlUZZyBroa3DIvI56PG9n9LOxL+YkS9NulnCcKgXB aeCkLnQLzV/ud3hKTDm6yLzkGDRk82EslHuRuIgOML8GlhEghI1iBj80SSFVfOnFlgRXnbZMpsNkC /97VhEydT/46o5lK9vYHJw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ooJUq-0001JO-2g; Fri, 28 Oct 2022 03:09:40 -0400 In-Reply-To: (message from Pedro Andres Aranda Gutierrez on Fri, 28 Oct 2022 08:23:16 +0200) 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:298660 Archived-At: > 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? No, it uses the default format of 4 digits per component. We could perhaps add an additional optional argument to specify how many digits per component to produce.