unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefan@marxist.se>
To: 唐治洋 <markta31@icloud.com>
Cc: 40433-done@debbugs.gnu.org
Subject: bug#40433: 26.1; list-colors-print throw Lisp error wrong-number-of-arguments
Date: Thu, 1 Oct 2020 05:50:31 -0700	[thread overview]
Message-ID: <CADwFkmkBBQauTCzcdUR17rwN9q1qUN+H10nsnT9cYT=DxfnX9w@mail.gmail.com> (raw)
In-Reply-To: <CADwFkm=4Q3ZJJLNw6TkTE=Z4Z6a_ce4_Vr3OXTJoWw7c09CYNQ@mail.gmail.com> (Stefan Kangas's message of "Wed, 26 Aug 2020 07:57:20 -0700")

Stefan Kangas <stefan@marxist.se> writes:

> 唐治洋 <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.

More information was requested, but none was given within 5 weeks, so
I'm closing this bug.  If this is still an issue, please reply to this
email (use "Reply to all" in your email client) and we can reopen the
bug report.

Best regards,
Stefan Kangas





      reply	other threads:[~2020-10-01 12:50 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
2020-10-01 12:50   ` Stefan Kangas [this message]

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='CADwFkmkBBQauTCzcdUR17rwN9q1qUN+H10nsnT9cYT=DxfnX9w@mail.gmail.com' \
    --to=stefan@marxist.se \
    --cc=40433-done@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).