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, 13 Nov 2017 13:06:42 -0500 Message-ID: References: <6eh8u7x5be.fsf@just-testing.permabit.com> <87375r7f0g.fsf@users.sourceforge.net> <9f1e7a1f-bfc0-43a4-9acb-cf69b85587be@default> <5C8038D7-FF85-4C42-A728-F3F85CDAC85C@permabit.com> <87efpb46sp.fsf@linux-m68k.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="001a1148dfd601b4f4055de122ce" X-Trace: blaine.gmane.org 1510596431 11668 195.159.176.226 (13 Nov 2017 18:07:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 13 Nov 2017 18:07:11 +0000 (UTC) Cc: Andreas Schwab , 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 13 19:07:07 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 1eEJ8S-0002fU-QM for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Nov 2017 19:07:05 +0100 Original-Received: from localhost ([::1]:55756 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eEJ8a-000373-5R for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Nov 2017 13:07:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42761) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eEJ8T-00036d-VW for bug-gnu-emacs@gnu.org; Mon, 13 Nov 2017 13:07:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eEJ8Q-0002L6-Qr for bug-gnu-emacs@gnu.org; Mon, 13 Nov 2017 13:07:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58355) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eEJ8Q-0002Ku-KN for bug-gnu-emacs@gnu.org; Mon, 13 Nov 2017 13:07:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eEJ8Q-0003kK-Dc for bug-gnu-emacs@gnu.org; Mon, 13 Nov 2017 13:07:02 -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, 13 Nov 2017 18:07: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.151059641014381 (code B ref 29165); Mon, 13 Nov 2017 18:07:02 +0000 Original-Received: (at 29165) by debbugs.gnu.org; 13 Nov 2017 18:06:50 +0000 Original-Received: from localhost ([127.0.0.1]:38803 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eEJ8E-0003jt-BQ for submit@debbugs.gnu.org; Mon, 13 Nov 2017 13:06:50 -0500 Original-Received: from mail-wm0-f53.google.com ([74.125.82.53]:35995) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eEJ8C-0003je-Nw for 29165@debbugs.gnu.org; Mon, 13 Nov 2017 13:06:49 -0500 Original-Received: by mail-wm0-f53.google.com with SMTP id r68so16609405wmr.1 for <29165@debbugs.gnu.org>; Mon, 13 Nov 2017 10:06:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=WIuybNEUg7YYeWsaxBeAO8HvTluhgKOcUUFbYRpzHzY=; b=PQJDBRkpSPUOu8py72sCBa3BdevX0VUECLA8/fnzsM4z6ODSA8LkD93y2eBkgxzAaH /VoFhsS+K0LtN5Era0oE+wXo7YFdp9nUH1sxBOjGBkeWgwElJAbnb3Az14fPvFjpSg5W Fq373njAG9IslnNRHSYS/ooRGVCIyr+VdzhwEPE0yIrOBHWj5c7B3Tr1gXHCIf7eoA0Z 7bF/T2uk8xje0tJheDao2h94HyLdepHML+jGoymCt+acIbN8FjffD9Gjw8JQ1ZneOv1k gx4RVKZdBLDW4HvPuYuJfNtynW0KE8iPTH2V7KERsnfDvghnwVlur8eGPrixOZNvZ4Yt RNtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=WIuybNEUg7YYeWsaxBeAO8HvTluhgKOcUUFbYRpzHzY=; b=OoxJ7w82XQute3PjSxhtcF+3gzy5hpLpGRurK0L/ytWDlcBTK8WG4W+Rv4OR1KBG9o YNpPzIwcQNTEkTmS0yUHAk0iW/29NRsexxb1cHwuTu7efLNAtoEkjkmcL6VLRIPxJ7WJ WvgtmQ3ecKsplbHrMnwuq1kfqTTE88pBQRnjL9N0C+9x4TzN/E9fVxkJyzJx0w+S3Fq5 tzfsOJ8EQxigSOjfjWYPmVe+SjzAF2xHAptIRWhA3aSckJcoO/+GxGdzm9eIhtppufjL QCHI50aPnwIoZ/PMZcM7fYVE43o6UZbTR3ke5MDHpaplW6P+Ot3Ys4nevk11+6ULKAWy zchw== X-Gm-Message-State: AJaThX6R+3bBG4RDExsebKukxD1GJoarTz3lq9mL3chnX8zmEonK6BJM XpUmkDCH2B92wZnI084kyWo8ifYhO7XkW+vciek= X-Google-Smtp-Source: AGs4zMaZB6uuyNuR18m2aTOPD+mnrXsK9isZj4uaxpDPIOmEfUzFZhsF7f22ilXbCJBSPUZeAFbJ+5ZHYGQD3mqjhTQ= X-Received: by 10.28.99.86 with SMTP id x83mr4916162wmb.114.1510596403102; Mon, 13 Nov 2017 10:06:43 -0800 (PST) Original-Received: by 10.223.151.116 with HTTP; Mon, 13 Nov 2017 10:06:42 -0800 (PST) In-Reply-To: X-Google-Sender-Auth: z1h227HTLcbAg1MMgjIIRqWudSk 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:139835 Archived-At: --001a1148dfd601b4f4055de122ce Content-Type: text/plain; charset="UTF-8" On Mon, Nov 6, 2017 at 2:16 PM, Noam Postavsky wrote: > On Mon, Nov 6, 2017 at 2:10 PM, Ken Raeburn wrote: > >> It appears that the emacs-26 version of defun* is happy with it (the >> original Lisp code I posted, using &optional &key) as well, as long as I >> provide the source, or a byte-compiled file from Emacs 25 or 26 > > It looks like the cl-defun in newer Emacs throws away the &optional > for you in this case. I think we should make cl-defun reject this kind of code, to be consistent with plain defun. See attached. --001a1148dfd601b4f4055de122ce Content-Type: application/octet-stream; name="v1-0001-Mention-new-strictness-for-optional-rest-in-argli.patch" Content-Disposition: attachment; filename="v1-0001-Mention-new-strictness-for-optional-rest-in-argli.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_j9yhy4xp0 RnJvbSA4MmFmNjdiODRhNjYzZmE3NTBiMzc1ZTQ4M2Q0YjNlOGUxZjI2YTZlIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwM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GFtYmRhCiAgICAgICAgICAgICAgICAgICAob3IgKG5vdCBvcHRpb25hbCkKICAg ICAgICAgICAgICAgICAgICAgICA7OyBPcHRpb25hbCBhcmdzIHdob3NlIGRlZmF1bHQgaXMgbmls IGFyZSBzaW1wbGUuCiAgICAgICAgICAgICAgICAgICAgICAgKG51bGwgKG50aCAxIChhc3NxIChj YXIgYXJncykgKGNkciBjbC0tYmluZC1kZWZzKSkpKSkKLSAgICAgICAgICAgICAgICAgIChub3Qg KGFuZCAoZXEgKGNhciBhcmdzKSAnJm9wdGlvbmFsKSAoc2V0cSBvcHRpb25hbCB0KQotICAgICAg ICAgICAgICAgICAgICAgICAgICAgIChjYXIgY2wtLWJpbmQtZGVmcykpKSkKKyAgICAgICAgICAg ICAgICAgIChub3QgKGFuZCAoZXEgKGNhciBhcmdzKSAnJm9wdGlvbmFsKQorICAgICAgICAgICAg ICAgICAgICAgICAgICAgIChwcm9nbgorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKHdo ZW4gKG1lbXEgKGNhZHIgYXJncykKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICcobmlsICZyZXN0ICZib2R5ICZrZXkgJmF1eCkpCisgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgIChlcnJvciAiVmFyaWFibGUgbWlzc2luZyBhZnRlciAmb3B0aW9uYWwiKSkK KyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChzZXRxIG9wdGlvbmFsIHQpCisgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAoY2FyIGNsLS1iaW5kLWRlZnMpKSkpKQogICAgICAgICAo cHVzaCAocG9wIGFyZ3MpIHNpbXBsZS1hcmdzKSkKICAgICAgICh3aGVuIG9wdGlvbmFsCiAgICAg ICAgIChpZiBhcmdzIChwdXNoICcmb3B0aW9uYWwgYXJncykpCkBAIC01NTgsOSArNTYzLDEwIEBA IGNsLS1kby1hcmdsaXN0CiAJICAoa2V5cyBuaWwpCiAJICAobGF0ZXJhcmcgbmlsKSAoZXhhY3Rh cmcgbmlsKSBtaW5hcmcpCiAgICAgICAob3IgbnVtIChzZXRxIG51bSAwKSkKLSAgICAgIChzZXRx IHJlc3RhcmcgKGlmIChsaXN0cCAoY2FkciByZXN0YXJnKSkKLSAgICAgICAgICAgICAgICAgICAg ICAgIChtYWtlLXN5bWJvbCAiLS1jbC1yZXN0LS0iKQotICAgICAgICAgICAgICAgICAgICAgIChj YWRyIHJlc3RhcmcpKSkKKyAgICAgIChzZXRxIHJlc3RhcmcgKG9yIChpZiAoY29uc3AgKGNhZHIg cmVzdGFyZykpCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgKG1ha2Utc3ltYm9sICItLWNs LXJlc3QtLSIpCisgICAgICAgICAgICAgICAgICAgICAgICAgIChjYWRyIHJlc3RhcmcpKQorICAg ICAgICAgICAgICAgICAgICAgICAgKGVycm9yICJWYXJpYWJsZSBtaXNzaW5nIGFmdGVyICZyZXN0 IikpKQogICAgICAgKHB1c2ggKGxpc3QgcmVzdGFyZyBleHByKSBjbC0tYmluZC1sZXRzKQogICAg ICAgKGlmIChlcSAoY2FyIGFyZ3MpICcmd2hvbGUpCiAJICAocHVzaCAobGlzdCAoY2wtLXBvcDIg YXJncykgcmVzdGFyZykgY2wtLWJpbmQtbGV0cykpCmRpZmYgLS1naXQgYS90ZXN0L2xpc3AvZW1h Y3MtbGlzcC9jbC1tYWNzLXRlc3RzLmVsIGIvdGVzdC9saXNwL2VtYWNzLWxpc3AvY2wtbWFjcy10 ZXN0cy5lbAppbmRleCA1NzVmMTcwLi5lNDNmZjIzIDEwMDY0NAotLS0gYS90ZXN0L2xpc3AvZW1h Y3MtbGlzcC9jbC1tYWNzLXRlc3RzLmVsCisrKyBiL3Rlc3QvbGlzcC9lbWFjcy1saXNwL2NsLW1h Y3MtdGVzdHMuZWwKQEAgLTQ5Nyw0ICs0OTcsMjkgQEAKICAgICAgICAgICAgICAgICAgICAgICAg ICAgdmNvbmNhdCAodmVjdG9yICgxKyB4KSkpCiAgICAgICAgICAgICAgICAgIFsyIDMgNCA1IDZd KSkpCiAKKwwKKzs7OyBjbC1saWIgbGFtYmRhIGxpc3QgaGFuZGxpbmcKKworKGVydC1kZWZ0ZXN0 IGNsLW1hY3MtYmFkLWFyZ2xpc3QgKCkKKyAgIkNoZWNrIHRoYXQgYGNsLWRlZnVuJyBhbmQgZnJp ZW5kcyByZWplY3Qgd2VpcmQgYXJndW1lbnQgbGlzdHMuCitTZWUgQnVnIzI5MTY1LCBhbmQgc2lt aWxhciBgZXZhbC10ZXN0cy0tYnVncy0yNDkxMi1hbmQtMjQ5MTMnIGluCitldmFsLXRlc3RzLmVs LiIKKyAgKGRvbGlzdCAoYXJncyAoY2wtbWFwY2FuCisgICAgICAgICAgICAgICAgIDs7IEZvciBl dmVyeSAmcmVzdCB2YXJpYW50LCBjaGVjayBhbHNvIHRoZSBzYW1lIHRoaW5nCisgICAgICAgICAg ICAgICAgIDs7IHdpdGggJmtleSBpbnN0ZWFkLgorICAgICAgICAgICAgICAgICAobGFtYmRhIChh cmdsaXN0KSAoaWYgKG1lbXEgJyZyZXN0IGFyZ2xpc3QpCisgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgKGxpc3QgYXJnbGlzdCAoY2wtc3Vic3QgJyZrZXkgJyZyZXN0IGFyZ2xpc3Qp KQorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAobGlzdCBhcmdsaXN0KSkpCisgICAg ICAgICAgICAgICAgICcoKCZvcHRpb25hbCkgKCZyZXN0KSAoJm9wdGlvbmFsICZyZXN0KSAoJnJl c3QgJm9wdGlvbmFsKQorICAgICAgICAgICAgICAgICAgICgmb3B0aW9uYWwgJnJlc3QgX2EpICgm b3B0aW9uYWwgX2EgJnJlc3QpCisgICAgICAgICAgICAgICAgICAgKCZyZXN0IF9hICZvcHRpb25h bCkgKCZyZXN0ICZvcHRpb25hbCBfYSkKKyAgICAgICAgICAgICAgICAgICAoJm9wdGlvbmFsICZv cHRpb25hbCkgKCZvcHRpb25hbCAmb3B0aW9uYWwgX2EpCisgICAgICAgICAgICAgICAgICAgKCZv cHRpb25hbCBfYSAmb3B0aW9uYWwgX2IpCisgICAgICAgICAgICAgICAgICAgKCZyZXN0ICZyZXN0 KSAoJnJlc3QgJnJlc3QgX2EpCisgICAgICAgICAgICAgICAgICAgKCZyZXN0IF9hICZyZXN0IF9i KSkpKQorICAgIChzaG91bGQtZXJyb3IgKGV2YWwgYChmdW5jYWxsIChjbC1mdW5jdGlvbiAobGFt YmRhICxhcmdzKSkpIHQpKQorICAgIChzaG91bGQtZXJyb3IgKGNsLS10cmFuc2Zvcm0tbGFtYmRh IChjb25zIGFyZ3MgdCkpKQorICAgIChsZXQgKChieXRlLWNvbXBpbGUtZGVidWcgdCkpCisgICAg ICAoc2hvdWxkLWVycm9yIChldmFsIGAoYnl0ZS1jb21waWxlIChjbC1mdW5jdGlvbiAobGFtYmRh ICxhcmdzKSkpIHQpKSkpKQorCiA7OzsgY2wtbWFjcy10ZXN0cy5lbCBlbmRzIGhlcmUKLS0gCjIu Ni4yLndpbmRvd3MuMQoK --001a1148dfd601b4f4055de122ce--