From: Stefan Kangas <stefan@marxist.se>
To: 唐治洋 <markta31@icloud.com>
Cc: 40433@debbugs.gnu.org
Subject: bug#40433: 26.1; list-colors-print throw Lisp error wrong-number-of-arguments
Date: Wed, 26 Aug 2020 07:57:20 -0700 [thread overview]
Message-ID: <CADwFkm=4Q3ZJJLNw6TkTE=Z4Z6a_ce4_Vr3OXTJoWw7c09CYNQ@mail.gmail.com> (raw)
In-Reply-To: <2D790792-1D75-4A5F-9462-229AFE0F32C9@icloud.com> ("唐治洋"'s message of "Sat, 4 Apr 2020 23:59:38 +0800")
唐治洋 <markta31@icloud.com> writes:
> hi,
>
> I have a color name called "alternateSelectedControlColor", which has
> nil color value if called with color-values function. when I click the
> Color button in customize-create-themes, it will finally call
> list-color-print function, and this function has some lisp lines as
> follow:
>
> (let* ((opoint (point))
> (color-values (color-values (car color)))
> (light-p (>= (apply 'max color-values)
> (* (car (color-values "white")) .5))))
>
> color-values got a nil value, which cause max function called with a nil
> value, and then throw wrong-number-of-arguments error.
What is the bug in Emacs here? Is it the return value of color-values?
Could you please show a minimal example of the error, without any
reference to your own code? Thanks.
Best regards,
Stefan Kangas
next prev parent reply other threads:[~2020-08-26 14:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-04 15:59 bug#40433: 26.1; list-colors-print throw Lisp error wrong-number-of-arguments Unknown
2020-08-26 14:57 ` Stefan Kangas [this message]
2020-10-01 12:50 ` Stefan Kangas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CADwFkm=4Q3ZJJLNw6TkTE=Z4Z6a_ce4_Vr3OXTJoWw7c09CYNQ@mail.gmail.com' \
--to=stefan@marxist.se \
--cc=40433@debbugs.gnu.org \
--cc=markta31@icloud.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).