From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ikumi Keita Newsgroups: gmane.emacs.bugs Subject: bug#42919: 27.1; Strange byte compile error with `cond' involving cons Date: Wed, 19 Aug 2020 04:00:16 +0900 Message-ID: <1304.1597777216@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-2022-jp Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14613"; mail-complaints-to="usenet@ciao.gmane.io" To: 42919@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 18 21:01:16 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 1k86r9-0003bF-DK for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 18 Aug 2020 21:01:11 +0200 Original-Received: from localhost ([::1]:38244 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k86r8-0005bH-EJ for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 18 Aug 2020 15:01:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53086) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k86r0-0005aE-4g for bug-gnu-emacs@gnu.org; Tue, 18 Aug 2020 15:01:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53714) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k86qz-0002jQ-Pz for bug-gnu-emacs@gnu.org; Tue, 18 Aug 2020 15:01:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k86qz-000646-Oo for bug-gnu-emacs@gnu.org; Tue, 18 Aug 2020 15:01:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ikumi Keita Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 18 Aug 2020 19:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42919 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.159777723123262 (code B ref -1); Tue, 18 Aug 2020 19:01:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Aug 2020 19:00:31 +0000 Original-Received: from localhost ([127.0.0.1]:37025 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k86qV-000638-IK for submit@debbugs.gnu.org; Tue, 18 Aug 2020 15:00:31 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:46108) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k86qU-000631-41 for submit@debbugs.gnu.org; Tue, 18 Aug 2020 15:00:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52862) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k86qT-0005Sl-Ln for bug-gnu-emacs@gnu.org; Tue, 18 Aug 2020 15:00:29 -0400 Original-Received: from smtp1a.inetd.co.jp ([210.129.88.11]:55482) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k86qP-0002Wf-Th for bug-gnu-emacs@gnu.org; Tue, 18 Aug 2020 15:00:29 -0400 Original-Received: from localhost (203-165-82-99.rev.home.ne.jp [203.165.82.99]) by smtp1a.inetd.co.jp (Postfix) with ESMTPA id 78D686A for ; Wed, 19 Aug 2020 04:00:18 +0900 (JST) X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 27.1 Received-SPF: pass client-ip=210.129.88.11; envelope-from=ikumi@ikumi.que.jp; helo=smtp1a.inetd.co.jp X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/18 15:00:18 X-ACL-Warn: Detected OS = Linux 3.1-3.10 X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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:185541 Archived-At: I encountered a strange byte compile error with simple elisp code. [How to reproduce] 1. Save the following file as /tmp/foo.el: --- /tmp/foo.el ---------------------------- (defun xyz (arg) (cond ; ((member '("image") arg) ; OK ; ((member '(rel "image") arg) ; OK ; ((remove '(rel . "image") arg) ; OK ; ((memq '(rel . "image") arg) ; NG ((member '(rel . "image") arg) ; NG 1))) -------------------------------------------- 2. emacs-27.1 -Q 3. M-x byte-compile-file /tmp/foo.el RET 4. Then byte compile fails with the following error: Compiling file /tmp/foo.el at Wed Aug 19 03:38:06 2020 Entering directory ‘/tmp/’ foo.el:1:13:Error: Wrong type argument: listp, "image" in *Compile-Log* buffer. I don't see foo.elc in /tmp after that. Expected result is that byte compile finishes without error and foo.elc is generated. [Additional info] a. As written in the above code, only cons (rel . "image") causes this error. Both lists (rel "image") and ("image") are OK. b. As written in the above code, both `member' and `memq' fail while `remove' succeeds. c. Emacs 26.3 works as expected. Regards, Ikumi Keita In GNU Emacs 27.1 (build 1, x86_64-unknown-freebsd12.1, GTK+ Version 3.24.20) of 2020-08-19 built on freebsd.vmware Windowing system distributor 'The X.Org Foundation', version 11.0.12008000 System Description: 12.1-RELEASE-p8 Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Compiling /tmp/foo.el... (xyz) You can run the command ‘byte-compile-file’ with M-x by-c RET Compiling /tmp/foo.el... (xyz) Mark set next-line: End of buffer [2 times] Mark set Making completion list... Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND DBUS GSETTINGS GLIB NOTIFY KQUEUE ACL GNUTLS LIBXML2 FREETYPE HARFBUZZ XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS JSON PDUMPER LCMS2 GMP Important settings: value of $EMACSLOADPATH: /home/keita/elisp: value of $LANG: C locale-coding-system: nil Major mode: Emacs-Lisp Minor modes in effect: tooltip-mode: t global-eldoc-mode: t 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: /home/keita/elisp/reftex-parse hides /home/keita/scr/emacs-27.1/lisp/textmodes/reftex-parse Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search seq gv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date subr-x cl-loaddefs cl-lib warnings byte-opt compile comint ansi-color ring bytecomp byte-compile cconv tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd 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 dbusbind kqueue lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 51013 10241) (symbols 48 6580 1) (strings 32 16915 1623) (string-bytes 1 565681) (vectors 16 10152) (vector-slots 8 141502 12592) (floats 8 25 119) (intervals 56 304 125) (buffers 1000 16))