From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Unknown Newsgroups: gmane.emacs.bugs Subject: bug#40433: 26.1; list-colors-print throw Lisp error wrong-number-of-arguments Date: Sat, 4 Apr 2020 23:59:38 +0800 Message-ID: <2D790792-1D75-4A5F-9462-229AFE0F32C9@icloud.com> Reply-To: =?UTF-8?Q?Reply-to=3A_=C3=A5=C2=94=C2=90=C3=A6=C2=B2=C2=BB=C3=A6=C2=B4?= =?UTF-8?Q?=C2=8B_=3Cmarkta31=40icloud=2Ecom=3E=0A?= Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="49088"; mail-complaints-to="usenet@ciao.gmane.io" To: 40433@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Apr 04 18:36: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 1jKlmI-000CfF-3A for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Apr 2020 18:36:14 +0200 Original-Received: from localhost ([::1]:40422 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jKlmH-0007vN-63 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Apr 2020 12:36:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55729) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jKlm8-0007vA-DU for bug-gnu-emacs@gnu.org; Sat, 04 Apr 2020 12:36:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jKlm6-00036R-UR for bug-gnu-emacs@gnu.org; Sat, 04 Apr 2020 12:36:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33105) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jKlm6-00036I-Qs for bug-gnu-emacs@gnu.org; Sat, 04 Apr 2020 12:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jKlm6-0008RE-MF for bug-gnu-emacs@gnu.org; Sat, 04 Apr 2020 12:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=E5=94=90=E6=B2=BB=E6=B4=8B?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Apr 2020 16:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 40433 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.158601811932304 (code B ref -1); Sat, 04 Apr 2020 16:36:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Apr 2020 16:35:19 +0000 Original-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 Original-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 Original-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 Original-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 Original-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== Original-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) 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-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 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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" Original-From: Xref: news.gmane.io gmane.emacs.bugs:178028 Archived-At: 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))