From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#40433: 26.1; list-colors-print throw Lisp error wrong-number-of-arguments Date: Thu, 1 Oct 2020 05:50:31 -0700 Message-ID: References: <2D790792-1D75-4A5F-9462-229AFE0F32C9@icloud.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6141"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 40433-done@debbugs.gnu.org To: =?UTF-8?Q?=E5=94=90=E6=B2=BB=E6=B4=8B?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 01 14:51:14 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1kNy3G-0001UP-9w for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 01 Oct 2020 14:51:14 +0200 Original-Received: from localhost ([::1]:48604 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kNy3F-0002e9-9W for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 01 Oct 2020 08:51:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39322) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kNy36-0002bO-UT for bug-gnu-emacs@gnu.org; Thu, 01 Oct 2020 08:51:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51400) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kNy36-0003Y3-KF for bug-gnu-emacs@gnu.org; Thu, 01 Oct 2020 08:51:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kNy36-0006g8-JA for bug-gnu-emacs@gnu.org; Thu, 01 Oct 2020 08:51:04 -0400 Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Oct 2020 12:51:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 40433 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Mail-Followup-To: 40433@debbugs.gnu.org, stefan@marxist.se, markta31@icloud.com Original-Received: via spool by 40433-done@debbugs.gnu.org id=D40433.160155664125506 (code D ref 40433); Thu, 01 Oct 2020 12:51:04 +0000 Original-Received: (at 40433-done) by debbugs.gnu.org; 1 Oct 2020 12:50:41 +0000 Original-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 Original-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 Original-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) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 1 Oct 2020 05:50:31 -0700 In-Reply-To: (Stefan Kangas's message of "Wed, 26 Aug 2020 07:57:20 -0700") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:189509 Archived-At: 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