From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Simon Katz Newsgroups: gmane.emacs.bugs Subject: bug#50094: 27.2; `M-x list-colors-display` fails with an error Date: Tue, 17 Aug 2021 14:57:25 +0100 Message-ID: Reply-To: sk@nomistech.com Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000003a3ea005c9c1b369" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2672"; mail-complaints-to="usenet@ciao.gmane.io" To: 50094@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 17 15:59:10 2021 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 1mFzcU-0000Q9-1z for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 17 Aug 2021 15:59:10 +0200 Original-Received: from localhost ([::1]:54366 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mFzcS-00030j-Px for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 17 Aug 2021 09:59:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41676) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mFzcM-0002za-UW for bug-gnu-emacs@gnu.org; Tue, 17 Aug 2021 09:59:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42153) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mFzcM-0002i7-N1 for bug-gnu-emacs@gnu.org; Tue, 17 Aug 2021 09:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mFzcM-00084H-KM for bug-gnu-emacs@gnu.org; Tue, 17 Aug 2021 09:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Simon Katz Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Aug 2021 13:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 50094 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.162920871030969 (code B ref -1); Tue, 17 Aug 2021 13:59:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 Aug 2021 13:58:30 +0000 Original-Received: from localhost ([127.0.0.1]:53699 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mFzbp-00083Q-RJ for submit@debbugs.gnu.org; Tue, 17 Aug 2021 09:58:30 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:41214) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mFzbo-00083J-Fk for submit@debbugs.gnu.org; Tue, 17 Aug 2021 09:58:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41562) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mFzbn-0002XR-Vq for bug-gnu-emacs@gnu.org; Tue, 17 Aug 2021 09:58:28 -0400 Original-Received: from s30.dg.net.uk ([91.224.108.30]:41428) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mFzbl-0001pX-Jx for bug-gnu-emacs@gnu.org; Tue, 17 Aug 2021 09:58:27 -0400 Original-Received: from mail-wm1-f43.google.com ([209.85.128.43]:35366) by s30.dg.net.uk with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1mFzay-00067s-Ri for bug-gnu-emacs@gnu.org; Tue, 17 Aug 2021 14:57:36 +0100 Original-Received: by mail-wm1-f43.google.com with SMTP id q11-20020a7bce8b0000b02902e6880d0accso2025072wmj.0 for ; Tue, 17 Aug 2021 06:57:36 -0700 (PDT) X-Gm-Message-State: AOAM533t5tMblKS+LgqIqxtZ1ptuDNFE5ZknNIvh6Vqx5xBuZJTuGZe7 bxwmhct6Ioe/ypikQcXFUFe30yBwERBUmfHMhsM= X-Google-Smtp-Source: ABdhPJzm8q9s/mOPxqjGP9Bpu4c0qFWs3HjHiFSEnKS042iGTbjDrNn0dVKMcgeQ9q91zx5/NP/1/etuLaatQ7aNagc= X-Received: by 2002:a05:600c:1ca7:: with SMTP id k39mr3648815wms.115.1629208656361; Tue, 17 Aug 2021 06:57:36 -0700 (PDT) X-Gmail-Original-Message-ID: X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - s30.dg.net.uk X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - nomistech.com X-Get-Message-Sender-Via: s30.dg.net.uk: authenticated_id: non-junk@nomistech.com X-Authenticated-Sender: s30.dg.net.uk: non-junk@nomistech.com Received-SPF: pass client-ip=91.224.108.30; envelope-from=sk@nomistech.com; helo=s30.dg.net.uk X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:212088 Archived-At: --0000000000003a3ea005c9c1b369 Content-Type: text/plain; charset="UTF-8" `M-x list-colors-display` fails with an error. I produced this bug report in Emacs 27.2.2 with no additional packages loaded. I also tried with Emacs 26.3, with the same result. The error is caused by `(apply 'max color-values)` being called when `color-values` is null. Debugger backtrace follows: Debugger entered--Lisp error: (wrong-number-of-arguments # 0) max() apply(max nil) list-colors-print((("LightGreen") ("DarkRed") ("DarkMagenta") ("DarkCyan") ("DarkBlue") ("DarkGray" "DarkGrey") ("grey100") ("grey99") ("grey98") ("grey97") ("grey96") ("grey95") ("grey94") ("grey93") ("grey92") ("grey91") ("grey90") ("grey89") ("grey88") ("gray85") ("grey84" "gray84") ("grey83" "gray83") ("grey82" "gray82") ("grey81" "gray81") ("grey80" "gray80") ("grey79" "gray79") ("grey78" "gray78") ("grey77" "gray77") ("grey76" "gray76") ("grey75" "gray75") ("grey74" "gray74") ("grey73" "gray73") ("grey72" "gray72") ("grey71" "gray71") ("grey70" "gray70") ("grey69" "gray69") ("grey68" "gray68") ("grey67" "gray67") ("grey66" "gray66") ("grey65" "gray65") ("grey64" "gray64") ("grey63" "gray63") ("grey62" "gray62") ("grey61" "gray61") ("grey60" "gray60") ("grey59" "gray59") ("grey58" "gray58") ("grey57" "gray57") ("grey56" "gray56") ("grey55" "gray55") ...) nil) list-colors-display() funcall-interactively(list-colors-display) call-interactively(list-colors-display record nil) command-execute(list-colors-display record) execute-extended-command(nil "list-colors-display" "list-colors-d") funcall-interactively(execute-extended-command nil "list-colors-display" "list-colors-d") call-interactively(execute-extended-command nil nil) command-execute(execute-extended-command) In GNU Emacs 27.2 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60 Version 10.14.6 (Build 18G95)) of 2021-03-27 built on builder10-14.porkrind.org Windowing system distributor 'Apple', version 10.3.1894 System Description: Mac OS X 10.15.7 Recent messages: Unable to load color "grey85" [2 times] For information about GNU Emacs and the GNU system, type C-h C-a. Unable to load color "grey85" [2 times] Entering debugger... Unable to load color "grey85" [6 times] s-b is undefined Mark activated command-execute: Command attempted to use minibuffer while in minibuffer Quit [5 times] Quit Configured using: 'configure --with-ns '--enable-locallisppath=/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp' --with-modules' Configured features: NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS JSON PDUMPER GMP Important settings: value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: Debugger Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-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 line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils help-fns radix-tree cl-print debug backtrace find-func color help-mode nomis-start-plain package easymenu browse-url url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib 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 tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer 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 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 threads kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 66352 8907) (symbols 48 7697 1) (strings 32 21267 2138) (string-bytes 1 709606) (vectors 16 13608) (vector-slots 8 168118 11158) (floats 8 180 244) (intervals 56 542 4) (buffers 1000 14)) --0000000000003a3ea005c9c1b369 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
`M-x list-colors-display` fails with an error.

I produced this bug report in Emacs 27.2.2 with no additional packa= ges loaded.

I also tried with Emacs 26.3, with the same result.
=
The error is caused by `(apply 'max color-values)` being called whe= n
`color-values` is null.

Debugger backtrace follows:

Debu= gger entered--Lisp error: (wrong-number-of-arguments #<subr max> 0)=C2=A0 max()
=C2=A0 apply(max nil)
=C2=A0 list-colors-print((("= ;LightGreen") ("DarkRed") ("DarkMagenta") ("D= arkCyan") ("DarkBlue") ("DarkGray" "DarkGrey&= quot;) ("grey100") ("grey99") ("grey98") (&qu= ot;grey97") ("grey96") ("grey95") ("grey94&qu= ot;) ("grey93") ("grey92") ("grey91") ("= grey90") ("grey89") ("grey88") ("gray85"= ) ("grey84" "gray84") ("grey83" "gray83&= quot;) ("grey82" "gray82") ("grey81" "gr= ay81") ("grey80" "gray80") ("grey79" &qu= ot;gray79") ("grey78" "gray78") ("grey77"= ; "gray77") ("grey76" "gray76") ("grey75= " "gray75") ("grey74" "gray74") ("g= rey73" "gray73") ("grey72" "gray72") (&q= uot;grey71" "gray71") ("grey70" "gray70"= ) ("grey69" "gray69") ("grey68" "gray68&= quot;) ("grey67" "gray67") ("grey66" "gr= ay66") ("grey65" "gray65") ("grey64" &qu= ot;gray64") ("grey63" "gray63") ("grey62"= ; "gray62") ("grey61" "gray61") ("grey60= " "gray60") ("grey59" "gray59") ("g= rey58" "gray58") ("grey57" "gray57") (&q= uot;grey56" "gray56") ("grey55" "gray55"= ) ...) nil)
=C2=A0 list-colors-display()
=C2=A0 funcall-interactively= (list-colors-display)
=C2=A0 call-interactively(list-colors-display reco= rd nil)
=C2=A0 command-execute(list-colors-display record)
=C2=A0 exe= cute-extended-command(nil "list-colors-display" "list-colors= -d")
=C2=A0 funcall-interactively(execute-extended-command nil &quo= t;list-colors-display" "list-colors-d")
=C2=A0 call-inter= actively(execute-extended-command nil nil)
=C2=A0 command-execute(execut= e-extended-command)




In GNU Emacs 27.2 (build 1, x86_64-a= pple-darwin18.7.0, NS appkit-1671.60 Version 10.14.6 (Build 18G95))
=C2= =A0of 2021-03-27 built on buil= der10-14.porkrind.org
Windowing system distributor 'Apple', = version 10.3.1894
System Description: =C2=A0Mac OS X 10.15.7

Rece= nt messages:
Unable to load color "grey85" [2 times]
For in= formation about GNU Emacs and the GNU system, type C-h C-a.
Unable to lo= ad color "grey85" [2 times]
Entering debugger...
Unable to = load color "grey85" [6 times]
s-b is undefined
Mark activat= ed
command-execute: Command attempted to use minibuffer while in minibuf= fer
Quit [5 times]
Quit
Configured using:
=C2=A0'configure = --with-ns '--enable-locallisppath=3D/Library/Application
=C2=A0Suppo= rt/Emacs/${version}/site-lisp:/Library/Application
=C2=A0Support/Emacs/s= ite-lisp' --with-modules'

Configured features:
NOTIFY KQU= EUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES
THREADS JSON = PDUMPER GMP

Important settings:
=C2=A0 value of $LANG: en_GB.UTF-= 8
=C2=A0 locale-coding-system: utf-8-unix

Major mode: Debugger
Minor modes in effect:
=C2=A0 tooltip-mode: t
=C2=A0 global-eldo= c-mode: t
=C2=A0 electric-indent-mode: t
=C2=A0 mouse-wheel-mode: t=C2=A0 tool-bar-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-sh= adow-mode: t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode: t=
=C2=A0 blink-cursor-mode: t
=C2=A0 auto-composition-mode: t
=C2= =A0 auto-encryption-mode: t
=C2=A0 auto-compression-mode: t
=C2=A0 bu= ffer-read-only: t
=C2=A0 line-number-mode: t
=C2=A0 transient-mark-mo= de: t

Load-path shadows:
None found.

Features:
(shadow = sort mail-extr emacsbug message rmc puny dired dired-loaddefs
format-spe= c rfc822 mml mml-sec epa derived epg epg-config gnus-util
rmail rmail-lo= addefs text-property-search time-date mm-decode mm-bodies
mm-encode mail= -parse rfc2231 mailabbrev gmm-utils mailheader sendmail
rfc2047 rfc2045 = ietf-drums mm-util mail-prsvr mail-utils help-fns
radix-tree cl-print de= bug backtrace find-func color help-mode
nomis-start-plain package easyme= nu browse-url url-handlers url-parse
auth-source cl-seq eieio eieio-core= cl-macs eieio-loaddefs
password-cache json subr-x map url-vars seq byte= -opt gv bytecomp
byte-compile cconv cl-loaddefs cl-lib tooltip eldoc ele= ctric 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<= br>regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode=
lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch<= br>timer select scroll-bar mouse jit-lock font-lock syntax facemenu
font= -core term/tty-colors frame minibuffer cl-generic cham georgian
utf-8-la= ng misc-lang vietnamese tibetan thai tai-viet lao korean
japanese eucjp-= ms cp51932 hebrew greek romanian slovak czech european
ethiopic indian c= yrillic chinese composite charscript charprop
case-table epa-hook jka-cm= pr-hook help simple abbrev obarray
cl-preloaded nadvice loaddefs button = faces cus-face macroexp files
text-properties overlay sha1 md5 base64 fo= rmat env code-pages mule
custom widget hashtable-print-readable backquot= e threads kqueue cocoa ns
multi-tty make-network-process emacs)

M= emory information:
((conses 16 66352 8907)
=C2=A0(symbols 48 7697 1)<= br>=C2=A0(strings 32 21267 2138)
=C2=A0(string-bytes 1 709606)
=C2=A0= (vectors 16 13608)
=C2=A0(vector-slots 8 168118 11158)
=C2=A0(floats = 8 180 244)
=C2=A0(intervals 56 542 4)
=C2=A0(buffers 1000 14))
--0000000000003a3ea005c9c1b369--