all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#74055: 31.0.50; color-lighten-name not lightening black
@ 2024-10-28  8:27 Gerd Möllmann
  2024-10-28 12:39 ` Eli Zaretskii
  0 siblings, 1 reply; 9+ messages in thread
From: Gerd Möllmann @ 2024-10-28  8:27 UTC (permalink / raw)
  To: 74055

The function color-lighten-name doesn't work as I would expect for
black:

  (color-lighten-name "#000000" 50)
  => "#000000000000"

I think there is even a test that checks that, in color-tests.el:

(ert-deftest color-tests-lighten-name ()
  (should (equal (color-lighten-name "black" 100) "#000000000000"))

I don't understand this, and it is different from what I'd expect, and
tools for the web return, for example

  https://mdigi.tools/lighten-color/#000000

In GNU Emacs 31.0.50 (build 1, aarch64-apple-darwin24.0.0, NS
 appkit-2566.00 Version 15.0.1 (Build 24A348)) of 2024-10-28 built on
 pro2
Repository revision: ea685170063b59855322ceffdeaaab4acaf8e388
Repository branch: master
Windowing system distributor 'Apple', version 10.3.2566
System Description:  macOS 15.0.1





^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-10-29 18:27 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-28  8:27 bug#74055: 31.0.50; color-lighten-name not lightening black Gerd Möllmann
2024-10-28 12:39 ` Eli Zaretskii
2024-10-28 15:18   ` Ship Mints
2024-10-28 16:57   ` Mattias Engdegård
2024-10-28 17:24     ` Eli Zaretskii
2024-10-29  4:41       ` Gerd Möllmann
2024-10-29  8:25         ` Gerd Möllmann
2024-10-29 12:54       ` Mattias Engdegård
2024-10-29 18:27         ` Gerd Möllmann

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.