From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ken Raeburn Newsgroups: gmane.emacs.bugs Subject: bug#29165: 26.0.90; can't use some code byte-compiled under emacs 24 Date: Mon, 06 Nov 2017 01:57:25 -0500 Message-ID: <6eh8u7x5be.fsf@just-testing.permabit.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1509951763 2993 195.159.176.226 (6 Nov 2017 07:02:43 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 6 Nov 2017 07:02:43 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) To: 29165@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 06 08:02:39 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eBbQc-0000Xd-P8 for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Nov 2017 08:02:39 +0100 Original-Received: from localhost ([::1]:46736 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eBbQj-0002Fs-PO for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Nov 2017 02:02:45 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50023) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eBbMG-0006ne-6x for bug-gnu-emacs@gnu.org; Mon, 06 Nov 2017 01:58:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eBbMB-0001D2-Ct for bug-gnu-emacs@gnu.org; Mon, 06 Nov 2017 01:58:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44233) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eBbMB-0001Cc-8C for bug-gnu-emacs@gnu.org; Mon, 06 Nov 2017 01:58:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eBbMA-0001VW-Tx for bug-gnu-emacs@gnu.org; Mon, 06 Nov 2017 01:58:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ken Raeburn Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 Nov 2017 06:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 29165 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15099514665767 (code B ref -1); Mon, 06 Nov 2017 06:58:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Nov 2017 06:57:46 +0000 Original-Received: from localhost ([127.0.0.1]:52914 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eBbLs-0001Uv-Ch for submit@debbugs.gnu.org; Mon, 06 Nov 2017 01:57:46 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:58900) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eBbLq-0001Uf-IQ for submit@debbugs.gnu.org; Mon, 06 Nov 2017 01:57:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eBbLk-0000JC-6f for submit@debbugs.gnu.org; Mon, 06 Nov 2017 01:57:37 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:39974) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eBbLk-0000Ih-35 for submit@debbugs.gnu.org; Mon, 06 Nov 2017 01:57:36 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49842) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eBbLi-0006MW-19 for bug-gnu-emacs@gnu.org; Mon, 06 Nov 2017 01:57:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eBbLd-0008Uv-89 for bug-gnu-emacs@gnu.org; Mon, 06 Nov 2017 01:57:34 -0500 Original-Received: from mail-qt0-x229.google.com ([2607:f8b0:400d:c0d::229]:51869) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eBbLd-0008Tu-2E for bug-gnu-emacs@gnu.org; Mon, 06 Nov 2017 01:57:29 -0500 Original-Received: by mail-qt0-x229.google.com with SMTP id h4so9708106qtk.8 for ; Sun, 05 Nov 2017 22:57:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=permabit.com; s=google; h=from:to:subject:date:message-id:user-agent:mime-version; bh=ywykzxbFSZhlRYS5WDdfalCdVmxVDhe1yujfuPE7KO0=; b=VK4BBUnJhZr6Af+e84aYLjYpZob+ECwPDNlWqYh5PoT+YamqM5OAzPVcnm/iqXiNBA STgxICb080YkDxPj7+oyCBWBcMruZbXDf7eFRMjSq+3pX6d6UAOLy6nMlQqDUjLmxhHE bNZdRZY3nM6h61DGkJSrAENv/mcU5C/5oYjYA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version; bh=ywykzxbFSZhlRYS5WDdfalCdVmxVDhe1yujfuPE7KO0=; b=tHW2HqdAWAmpE3jof2l3Ru7bIVqY45405cQykVFvYVXqH8m8RYd3fjFHUQ9eUi5Dh+ ADw7Bi5mU2sLpkn16XgWXmuK5WE0iozr3o5lJwPQ9sIxFSjPwprrZbIvqeaumi1wdYLB zkznDu8gcbAfMYbYbOFpscu+p789uZ3q0ITm5XahMP64F77Y65MbgBhF9a8GnkA6CJ9Z tCMOynRiKRpITuJUPcjQ1uzNh2TZ/6im0aYNoqFEo7M4yC9kvEfL0JbDrl0szsCiny9U W+Rz7lqXZzxC0JVbYvdmk5UMmhu4wQrTekIiZmX+VQR2fEKeyYLmCoXioXVyHv0BbC0g 7Inw== X-Gm-Message-State: AMCzsaXu1pYK2XE/+7iyvCPMgOx/TMOcyEvXZb8xaIapHu8jHzzEBjVT 182AcpIQ7cZdoaE9ZwoX+WCP/w== X-Google-Smtp-Source: ABhQp+RertEOhh9G4sEOFDeNpYNLfEPnpQDPomqaw9uyt3pDG6DYBFG31MDLGKvKvA/55BFEFtW1Fw== X-Received: by 10.200.56.83 with SMTP id r19mr20718656qtb.293.1509951448011; Sun, 05 Nov 2017 22:57:28 -0800 (PST) Original-Received: from just-testing.permabit.com (96-86-89-185-static.hfc.comcastbusiness.net. [96.86.89.185]) by smtp.gmail.com with ESMTPSA id n50sm8140003qtc.44.2017.11.05.22.57.26 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Sun, 05 Nov 2017 22:57:26 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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: 208.118.235.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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:139494 Archived-At: Create a file with the contents: (require 'cl) (defun* foobar (init-fun test-fun cleanup-fun &optional &key (test #'eql) (size 65)) "Blah blah blah" (list 'x init-fun test-fun cleanup-fun test size)) Use Emacs 24.3 to byte-compile the file. Start the Emacs 26 pretest, and load the .elc file. Type into the scratch buffer: (foobar 1 2 3 :test 4) And use eval-last-sexp to try to evaluate it. You should get a list back. I get an invalid-function error instead. With the debugger enabled, I see: Debugger entered--Lisp error: (invalid-function #f(compiled-function (init-fun test-fun cleanup-fun &optional &rest --cl-rest--) "Blah blah blah" #)) foobar(1 2 3 :test 4) eval((foobar 1 2 3 :test 4) nil) elisp--eval-last-sexp(nil) eval-last-sexp(nil) funcall-interactively(eval-last-sexp nil) call-interactively(eval-last-sexp nil nil) command-execute(eval-last-sexp) It appears that the eval.c code of 26.0.90 doesn't like to see &optional and &rest together in the argument list of a compiled function. But in this case, the byte compiler from version 24 does generate that. In version 25, only &rest is put into the list. In GNU Emacs 26.0.90 (build 1, x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2017-10-27 built on just-testing.permabit.com Windowing system distributor 'The X.Org Foundation', version 11.0.11804000 System Description: Ubuntu 14.04.4 LTS Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Loading /tmp/foo.elc...done Entering debugger... Back to top level Configured using: 'configure --prefix=/u1/ken/install/emacs-26.0.90 --with-x-toolkit=lucid --enable-checking --without-sound --without-gif' Configured features: XAW3D XPM JPEG TIFF PNG RSVG DBUS GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS LUCID X11 Important settings: locale-coding-system: nil Major mode: Lisp Interaction 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 line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny seq dired dired-loaddefs format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config 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 help-mode easymenu cl-print byte-opt bytecomp byte-compile cconv debug cl gv cl-loaddefs cl-lib elec-pair time-date mule-util 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 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 dbusbind inotify dynamic-setting system-font-setting font-render-setting x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 98378 10227) (symbols 48 20669 1) (miscs 40 45 197) (strings 32 29669 1021) (string-bytes 1 765521) (vectors 16 14315) (vector-slots 8 495072 6314) (floats 8 53 146) (intervals 56 314 138) (buffers 992 12) (heap 1024 32780 1041))