From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#29165: 26.0.90; can't use some code byte-compiled under emacs 24 Date: Mon, 6 Nov 2017 06:24:04 -0800 (PST) Message-ID: <9f1e7a1f-bfc0-43a4-9acb-cf69b85587be@default> References: <6eh8u7x5be.fsf@just-testing.permabit.com> <87375r7f0g.fsf@users.sourceforge.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1509978318 21915 195.159.176.226 (6 Nov 2017 14:25:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 6 Nov 2017 14:25:18 +0000 (UTC) Cc: Philipp Stephani , 29165@debbugs.gnu.org To: Noam Postavsky , Ken Raeburn Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 06 15:25: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 1eBiKv-0005MA-0r for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Nov 2017 15:25:13 +0100 Original-Received: from localhost ([::1]:48446 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eBiKz-0006gS-8Q for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Nov 2017 09:25:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32915) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eBiKq-0006eZ-H6 for bug-gnu-emacs@gnu.org; Mon, 06 Nov 2017 09:25:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eBiKk-0007So-SX for bug-gnu-emacs@gnu.org; Mon, 06 Nov 2017 09:25:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44493) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eBiKk-0007Si-PC for bug-gnu-emacs@gnu.org; Mon, 06 Nov 2017 09:25:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eBiKk-0007yR-JM for bug-gnu-emacs@gnu.org; Mon, 06 Nov 2017 09:25:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 Nov 2017 14:25:02 +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: notabug Original-Received: via spool by 29165-submit@debbugs.gnu.org id=B29165.150997825630592 (code B ref 29165); Mon, 06 Nov 2017 14:25:02 +0000 Original-Received: (at 29165) by debbugs.gnu.org; 6 Nov 2017 14:24:16 +0000 Original-Received: from localhost ([127.0.0.1]:53174 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eBiK0-0007xM-Bt for submit@debbugs.gnu.org; Mon, 06 Nov 2017 09:24:16 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:19109) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eBiJy-0007x8-KW for 29165@debbugs.gnu.org; Mon, 06 Nov 2017 09:24:15 -0500 Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id vA6EO7X3006435 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 6 Nov 2017 14:24:08 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id vA6EO6Vq014513 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 6 Nov 2017 14:24:07 GMT Original-Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id vA6EO5Jm023610; Mon, 6 Nov 2017 14:24:06 GMT In-Reply-To: <87375r7f0g.fsf@users.sourceforge.net> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4600.0 (x86)] X-Source-IP: aserv0022.oracle.com [141.146.126.234] 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:139502 Archived-At: > 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. >=20 > We should perhaps put something about throwing error on '&option &rest' > into NEWS though. I don't understand. In Common Lisp it is perfectly correct to use both &optional and &rest. If Emacs's emulation of CL's `defun' is defective in this regard, is that not a bug? https://www.cs.cmu.edu/Groups/AI/html/cltl/clm/node64.html Or are you saying that there was a bug in Emacs 24's handling of the CL `defun' emulation, where it expanded &key into &rest, producing multiple &optional or &rest, and that now this has been fixed - hence Emacs 24 byte-code does not work in Emacs 26? If you do add something to NEWS, please make clear just what the problem is/was. Does Emacs now correctly emulate CL `defun' wrt &* keywords? Is it an error to repeat &optional or &rest? If not, what is the behavior in that case? Whatever the explanation is, please make it very clear in NEWS. Thx.