From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky 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 07:44:47 -0500 Message-ID: <87375r7f0g.fsf@users.sourceforge.net> References: <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 1509972320 4882 195.159.176.226 (6 Nov 2017 12:45:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 6 Nov 2017 12:45:20 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) Cc: Philipp Stephani , 29165@debbugs.gnu.org To: Ken Raeburn Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 06 13:45:13 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 1eBgm7-0000jV-Hk for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Nov 2017 13:45:11 +0100 Original-Received: from localhost ([::1]:47779 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eBgm8-0003qi-V4 for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Nov 2017 07:45:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56206) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eBgm2-0003pr-Dg for bug-gnu-emacs@gnu.org; Mon, 06 Nov 2017 07:45:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eBgly-00075t-FQ for bug-gnu-emacs@gnu.org; Mon, 06 Nov 2017 07:45:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44437) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eBgly-00075g-BF for bug-gnu-emacs@gnu.org; Mon, 06 Nov 2017 07:45:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eBglx-0003aQ-Sa for bug-gnu-emacs@gnu.org; Mon, 06 Nov 2017 07:45:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 Nov 2017 12:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29165 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 29165-submit@debbugs.gnu.org id=B29165.150997229813762 (code B ref 29165); Mon, 06 Nov 2017 12:45:01 +0000 Original-Received: (at 29165) by debbugs.gnu.org; 6 Nov 2017 12:44:58 +0000 Original-Received: from localhost ([127.0.0.1]:53118 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eBglt-0003Zq-T4 for submit@debbugs.gnu.org; Mon, 06 Nov 2017 07:44:58 -0500 Original-Received: from mail-io0-f169.google.com ([209.85.223.169]:44199) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eBgls-0003ZW-56; Mon, 06 Nov 2017 07:44:56 -0500 Original-Received: by mail-io0-f169.google.com with SMTP id m16so15552197iod.1; Mon, 06 Nov 2017 04:44:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=Zj7Hezz8zgwiOhZQDOYfrtDhOGIJgc2Rh+JvkABAa8U=; b=myZSQZ2Gh1mRdddaK1qRqjyP15scDN2yYaYb8kKGY5sEKuV8n+kSUWGYw8xNZYiLU4 9p+1VQ5w46MNKl49ahjHm/wiYK930oEeSOi0loBRbQeATr0noaP8P7YeZKo2iWf9X1vR nvSxSVkWGBwBIRZeAABLzp1d4rkXRTLg9vepTjqOwB+CK84zrrcQ8l4W3rK2rXnNi7uR Ap0FZKIhJAy6kXC5vX7xHGFP1D0A6hBjnr6RHY/D7Pw6ZGz2REXu1FUoeSryCHeHiBwW OY7FY4QC0QUaXUdX8rGsiAPOMA6vIvDYm+x/CmT1v+/a+d0mvCfbmsiTCtyRwE52Uekt Wrvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=Zj7Hezz8zgwiOhZQDOYfrtDhOGIJgc2Rh+JvkABAa8U=; b=uMAcbKarovA/LD+Gx/7JylUW7gOW2nTHGLzviTn3q0iOEVzbo3eu7R8jMHVUZKskHY /a/15TTQyRzcCgvYTeGLKPzDFw2v2eAK3J2kpZOljKEiqaTnqAyjr7Y1cIRl0z/KNvZO 670ulC+F12hdlruVF0V6hgfo0T8Z9fe3Xk07Hcu/VEDk/fJhqE/G2yFpWYOntvSP49SX +dYcCSmEMgdCTSdYpk0KZQsQTiF1oYoyqSUZjiDR4C25BGYGcfzuUC1Uuzgd2BRg/Xxz dtChHxLiTZJ7bq8WdAtRRK5ocZHipqbPAf9Khy6ct5rxpG3rxNgCtdefPLvXplkrzM3y ga/w== X-Gm-Message-State: AJaThX7gcSJIxSUj082H864Q2LUTsAXywlbQanwYvVu0g/Kn+NaUtuT6 /DVYmlMGcddPki9NkkcbisnJ2A== X-Google-Smtp-Source: ABhQp+SueHSJeyF1ECirfSwRqdxzicsXHTR1DTK944A3cBtyIKyfDON8tPKnMrz3Lplp74llGlHpQQ== X-Received: by 10.107.53.42 with SMTP id c42mr19644209ioa.254.1509972290037; Mon, 06 Nov 2017 04:44:50 -0800 (PST) Original-Received: from zebian ([45.2.119.34]) by smtp.googlemail.com with ESMTPSA id q191sm6130998itb.1.2017.11.06.04.44.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 06 Nov 2017 04:44:48 -0800 (PST) In-Reply-To: <6eh8u7x5be.fsf@just-testing.permabit.com> (Ken Raeburn's message of "Mon, 06 Nov 2017 01:57:25 -0500") 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:139500 Archived-At: tags 29165 + notabug quit Ken Raeburn writes: > (defun* foobar (init-fun test-fun cleanup-fun > &optional &key > Use Emacs 24.3 to byte-compile the file. > > Start the Emacs 26 pretest, and load the .elc file. > Debugger entered--Lisp error: (invalid-function #f(compiled-function (init-fun test-fun cleanup-fun &optional &rest --cl-rest--) "Blah blah blah" > 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. Yes, see Bug#24912 and Bug#24913. > But in this case, the byte compiler from version 24 does generate > that. In version 25, only &rest is put into the list. It's not the byte compiler specifically, the defun* macro (aka cl-defun) expands &key into &rest, so the expansion has &optional &rest. At any rate, using &optional is meaningless there, so the solution is just to remove it. We should perhaps put something about throwing error on '&option &rest' into NEWS though.