From unknown Wed Jun 18 00:09:49 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#40433 <40433@debbugs.gnu.org> To: bug#40433 <40433@debbugs.gnu.org> Subject: Status: 26.1; list-colors-print throw Lisp error wrong-number-of-arguments Reply-To: bug#40433 <40433@debbugs.gnu.org> Date: Wed, 18 Jun 2025 07:09:49 +0000 retitle 40433 26.1; list-colors-print throw Lisp error wrong-number-of-argu= ments reassign 40433 emacs submitter 40433 =E5=94=90=E6=B2=BB=E6=B4=8B severity 40433 normal tag 40433 moreinfo thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 04 12:35:19 2020 Received: (at submit) by debbugs.gnu.org; 4 Apr 2020 16:35:19 +0000 Received: from localhost ([127.0.0.1]:44651 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jKllO-0008Ow-I9 for submit@debbugs.gnu.org; Sat, 04 Apr 2020 12:35:19 -0400 Received: from lists.gnu.org ([209.51.188.17]:43668) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jKlGA-0006ae-IS for submit@debbugs.gnu.org; Sat, 04 Apr 2020 12:03:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52053) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jKlG7-00084K-NT for bug-gnu-emacs@gnu.org; Sat, 04 Apr 2020 12:03:01 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.4 required=5.0 tests=BAYES_50, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jKlG6-0002E2-6r for bug-gnu-emacs@gnu.org; Sat, 04 Apr 2020 12:02:59 -0400 Received: from pv50p00im-ztdg10021801.me.com ([17.58.6.56]:39573) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jKlG5-0002B1-UZ for bug-gnu-emacs@gnu.org; Sat, 04 Apr 2020 12:02:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1586016173; bh=yGAEmNRhnnhJWY8Ekrl35bvp+NCLz6sVjwCFl8TWT9M=; h=From:Content-Type:Subject:Message-Id:Date:To; b=j6b3wMzQrkmbXuV7HL4o21igEmo6SSOGTaCZIIY2nYo3qe208vr/mfTZwdo3m7ybF n3W/7qJr6OyG63j4JqTjnskRJEtK4sbACYNd/cOmCWcqGVdolEIWLlbUSup6rdctjt JrIeCn3mPQ8lS1mJWHuGx4tV7XlYeUm6sJlU0ZqQ/ybFBtu3HdvR4/n+HEep8g7Suc BQ+6lTBGpxNn/0Q5/LN4njvUem5QJy1lkjuZ/gfVKuOgwMIVVFkvwuOggd/y7Q6gpC P56G6jLL/gq6SrUZD0dKivWHPUvZzjZ0k/YOIgYoZlc+Ifv450W92tRpgZLNAeJrpd V47I9Kl9BOo+Q== Received: from [172.20.10.5] (unknown [117.136.46.238]) by pv50p00im-ztdg10021801.me.com (Postfix) with ESMTPSA id 175F636017A for ; Sat, 4 Apr 2020 16:02:40 +0000 (UTC) From: =?utf-8?B?5ZSQ5rK75rSL?= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Subject: 26.1; list-colors-print throw Lisp error wrong-number-of-arguments Message-Id: <2D790792-1D75-4A5F-9462-229AFE0F32C9@icloud.com> Date: Sat, 4 Apr 2020 23:59:38 +0800 To: bug-gnu-emacs@gnu.org X-Mailer: Apple Mail (2.3608.40.2.2.4) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2020-04-04_12:, , signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000 definitions=main-2004040148 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 17.58.6.56 X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 04 Apr 2020 12:35:17 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) 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 (>=3D (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. In GNU Emacs 26.1 (build 1, x86_64-apple-darwin14.5.0, NS appkit-1348.17 = Version 10.10.5 (Build 14F2511)) of 2018-05-31 built on builder10-10.porkrind.org Windowing system distributor 'Apple', version 10.3.1894 Recent messages: Mark set nil Mark set [2 times] (65280 64000 64000) Quit [2 times] Mark set [3 times] Beginning of buffer [5 times] Undo! Redo! funcall-interactively: End of buffer Configured using: 'configure --with-ns '--enable-locallisppath=3D/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp' --with-modules' Configured features: NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS Important settings: value of $LANG: en_CN.UTF-8 locale-coding-system: utf-8-unix Major mode: Debugger Minor modes in effect: helm-mode: t shell-dirtrack-mode: t show-paren-mode: t yas-global-mode: t yas-minor-mode: t global-linum-mode: t async-bytecomp-package-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t column-number-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny rfc822 mml mml-sec epa epg gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils cl-print debug dabbrev eieio-opt speedbar sb-image ezimage dframe helm-elisp helm-eval edebug help-fns radix-tree color cus-theme cus-edit cus-start cus-load wid-edit goto-addr view misearch multi-isearch jka-compr winner super-init helm-mode helm-files rx image-dired image-mode tramp tramp-compat tramp-loaddefs trampver shell parse-time dired-x dired-aux ffap thingatpt helm-buffers helm-tags helm-bookmark helm-adaptive helm-info bookmark pp helm-locate helm-grep helm-regexp helm-external helm-net browse-url xml url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap helm-utils compile helm-help helm-types helm helm-source eieio-compat helm-multi-match helm-lib wdired dired dired-loaddefs ido ob-R ob-dot ob-plantuml ob-ditaa ob-python ob-gnuplot org-element avl-tree generator org org-macro org-footnote org-pcomplete pcomplete org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob ob-tangle org-src ob-ref ob-lob ob-table ob-keys ob-exp ob-comint comint ansi-color ring ob-core ob-eval org-compat org-macs org-loaddefs format-spec find-func cal-menu calendar cal-loaddefs paren my-utils subr-x my-org-fixup yasnippet cl-extra derived elec-pair help-mode linum-off linum helm-config helm-easymenu edmacro kmacro async-bytecomp easy-mmode advice async pcase finder-inf info package easymenu epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib time-date tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 621878 79782) (symbols 48 39726 8) (miscs 40 2066 995) (strings 32 109126 3528) (string-bytes 1 3292695) (vectors 16 58602) (vector-slots 8 1016893 17282) (floats 8 331 877) (intervals 56 20865 4746) (buffers 992 26)) From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 26 10:57:29 2020 Received: (at 40433) by debbugs.gnu.org; 26 Aug 2020 14:57:29 +0000 Received: from localhost ([127.0.0.1]:40436 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAwrh-0004lD-2z for submit@debbugs.gnu.org; Wed, 26 Aug 2020 10:57:29 -0400 Received: from mail-yb1-f177.google.com ([209.85.219.177]:44814) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAwre-0004kz-Uk for 40433@debbugs.gnu.org; Wed, 26 Aug 2020 10:57:27 -0400 Received: by mail-yb1-f177.google.com with SMTP id i10so1110722ybt.11 for <40433@debbugs.gnu.org>; Wed, 26 Aug 2020 07:57:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc :content-transfer-encoding; bh=6pJimadTjOGJQ0XiC3CkqyDFRh6IG17o0laDrq1Zx6g=; b=VKylUiptz6Soyu5HnER2nLQ3Lvmz2Jz405BoUY/95wAexzAzdEQ+nJIm59JUrPWb5r 3tbeaeX+9kDF+pnRrli68G6BXhidl+N3Q+TDRZfwMtdnC5hN3uIyN2FhfXrKiQegnQaa WoRvVZsPXIU44nfcX7oCr8CjaYvay8gMjvDqrBIpo6VNNct42oO7pRz/0PCk8jvzLX8h /CHhPYXYJJbG4dNAL9Bo7RkdSD6Hi8NQORJLlrqUstCGwIOJHLEx81LZ9t3v7RvfH4LC fBCKFw64RNB03AWMe/dpCVKy9B1A82zWusE3zQAkezTwcfEwJZq2nBw0W6D2XYZpzcSm As6w== X-Gm-Message-State: AOAM5313ztnxaed6r6NMOxeqERZj4fMQ4KMMVD1zoIokev2vPvfKIpgv ZTQPtJskwtMpnz3d8+4S5l9jN5AuJvgUVJ00BU4= X-Google-Smtp-Source: ABdhPJwSq44QcvLCdsHDHVkD5p1eQU/C6S//NWRS58KndSCZ1uT0hodRM/m4Pxu0fl3k11hEKJ9tQKko29gWYwOjNhQ= X-Received: by 2002:a25:880e:: with SMTP id c14mr22253557ybl.181.1598453841282; Wed, 26 Aug 2020 07:57:21 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 26 Aug 2020 07:57:20 -0700 From: Stefan Kangas In-Reply-To: =?UTF-8?B?PDJENzkwNzkyLTFENzUtNEE1Ri05NDYyLTIyOUFGRTBGMzJDOUBpY2xvdWQuY29t?= =?UTF-8?B?PiAoIuWUkOayu+a0iyIncyBtZXNzYWdlIG9mICJTYXQsIDQgQXByIDIwMjAgMjM6NTk6MzggKzA4MDAi?= =?UTF-8?B?KQ==?= References: <2D790792-1D75-4A5F-9462-229AFE0F32C9@icloud.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Date: Wed, 26 Aug 2020 07:57:20 -0700 Message-ID: Subject: Re: bug#40433: 26.1; list-colors-print throw Lisp error wrong-number-of-arguments To: =?UTF-8?B?5ZSQ5rK75rSL?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 40433 Cc: 40433@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) =E5=94=90=E6=B2=BB=E6=B4=8B 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 (>=3D (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 From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 26 10:57:38 2020 Received: (at control) by debbugs.gnu.org; 26 Aug 2020 14:57:38 +0000 Received: from localhost ([127.0.0.1]:40439 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAwrq-0004lZ-AL for submit@debbugs.gnu.org; Wed, 26 Aug 2020 10:57:38 -0400 Received: from mail-yb1-f180.google.com ([209.85.219.180]:45711) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAwro-0004lN-W1 for control@debbugs.gnu.org; Wed, 26 Aug 2020 10:57:37 -0400 Received: by mail-yb1-f180.google.com with SMTP id x2so1103949ybf.12 for ; Wed, 26 Aug 2020 07:57:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:date:message-id:subject:to; bh=ODiAkmv4JyoO3DCaqe98RZfPUQVG5CRgw5TYQj3XoYM=; b=Sb7omu2fl7VjEZM8/3z2/neGYI269eIFDEcvzdXuRfl/DjdWUnK4y68zlpmSKLLewo a4Z4kEmhUqZe8YRdUjQsR1C2C3SWgBiieAJsxTcPIOC1A2u5xhK2q5CwWDRzrqb2fhE/ e/ziNCqC5wGaJKFryduNzJSbYdG+PJ9oQHLyWUOUWncgpMzAkjzC0Y2LPfMcQYWbAWSu P/tw2bY/AV+XIbl+nolWdRziwkf/iYh7KdrC4DV4wOsF+wd95huSXF+GMAMy2uRHVerk RF+L9FlZmqS3uOJ0PC6yRZd25kb5034yESghn+dsD4SSRzptZ3lZ0lyf872QI0Vj0aA2 4c0w== X-Gm-Message-State: AOAM5314flJcECnU+QMvrkDP2re6IYhazyCunp+/gJkwugRM20Aa55Td KbGo6GhEeQ/EtneyfxkEdiqeKiOrT6BVRgg+A24ARgvsE70= X-Google-Smtp-Source: ABdhPJy8kPbGWha/Sym1cxSwvLHwYMIorbfvEbD85/Hews4zsIBGoEeCQyrEv5mWWl+/URYL+BmlP6Ym6I/hCIzsGFg= X-Received: by 2002:a25:4ed7:: with SMTP id c206mr22927737ybb.129.1598453851366; Wed, 26 Aug 2020 07:57:31 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 26 Aug 2020 07:57:31 -0700 From: Stefan Kangas MIME-Version: 1.0 Date: Wed, 26 Aug 2020 07:57:31 -0700 Message-ID: Subject: To: control@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 2.5 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: tags 40433 + moreinfo thanks Content analysis details: (2.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (stefankangas[at]gmail.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.219.180 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.219.180 listed in wl.mailspike.net] 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different 2.0 BLANK_SUBJECT Subject is present but empty 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: tags 40433 + moreinfo thanks Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.219.180 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.219.180 listed in list.dnswl.org] 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (stefankangas[at]gmail.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager 2.0 BLANK_SUBJECT Subject is present but empty 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines tags 40433 + moreinfo thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 01 08:50:41 2020 Received: (at 40433-done) by debbugs.gnu.org; 1 Oct 2020 12:50:41 +0000 Received: from localhost ([127.0.0.1]:34683 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNy2i-0006dI-Ly for submit@debbugs.gnu.org; Thu, 01 Oct 2020 08:50:40 -0400 Received: from mail-ej1-f54.google.com ([209.85.218.54]:44063) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNy2f-0006d4-Mc for 40433-done@debbugs.gnu.org; Thu, 01 Oct 2020 08:50:39 -0400 Received: by mail-ej1-f54.google.com with SMTP id a3so7081376ejy.11 for <40433-done@debbugs.gnu.org>; Thu, 01 Oct 2020 05:50:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc :content-transfer-encoding; bh=P5ggaTXQEw1eKCIII91weeX1DcDKHJf13VgBp4zhJBg=; b=BK8ove0vkwCAcU3M8ey09p2mslg09z6SCTY7ibEfrDjDIj2W4zT4YtGxj6dMayl6S/ u9QVtNB4jKMb0eM8YNoqCMQOZaQlB5p6lIuW73v675bYznAF1AJ9IpQ3va+xtAeiSHBt IlPXW19JG+6NTi3pOXDIKbVRZzY6e3i+JcFd8jx17TdXCTt0ezgRdMMpxpq/A9VXNc1W RcmgMcxIMbC5aMk64SVQZFWqe2DmiDwZeilpwJRn+3H6LvzIKSMwvpun9XqtEhLJUTrm l4MX+P5tLfjGkAI9ZaXtB2c4ZmE4rH94aCifKI5D8jh5Vbx4xdnvhHDWx3zdgavbpn+Z 4Lcg== X-Gm-Message-State: AOAM531OsJohG9WAvmN6tT2mNF0edH0CaXy/z7yfnv27Utij4I84MS9p 6Idl0OOv7Mlo/1vC7tuAtTUfGBqSu7RFE/bgok0= X-Google-Smtp-Source: ABdhPJwCZV1HJCMz0ct2ELSp2ElLUj5WyXLIOk0OM8tRo7azfq1lzetenXlgUhqsdacnM/kS1tDYdxZYAFt1eONFwzs= X-Received: by 2002:a17:906:11d2:: with SMTP id o18mr7776389eja.420.1601556631819; Thu, 01 Oct 2020 05:50:31 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 1 Oct 2020 05:50:31 -0700 From: Stefan Kangas In-Reply-To: (Stefan Kangas's message of "Wed, 26 Aug 2020 07:57:20 -0700") References: <2D790792-1D75-4A5F-9462-229AFE0F32C9@icloud.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Date: Thu, 1 Oct 2020 05:50:31 -0700 Message-ID: Subject: Re: bug#40433: 26.1; list-colors-print throw Lisp error wrong-number-of-arguments To: =?UTF-8?B?5ZSQ5rK75rSL?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 40433-done Cc: 40433-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Stefan Kangas writes: > =E5=94=90=E6=B2=BB=E6=B4=8B 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 (>=3D (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 From unknown Wed Jun 18 00:09:49 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 30 Oct 2020 11:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator