From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.bugs Subject: bug#24913: 25.1.50; Emacs accepts undocumented and confusing combinations of &optional and &rest in argument lists Date: Wed, 09 Nov 2016 22:17:54 +0100 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1478726386 8458 195.159.176.226 (9 Nov 2016 21:19:46 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 9 Nov 2016 21:19:46 +0000 (UTC) To: 24913@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 09 22:19:42 2016 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 1c4aGx-0005ly-Bo for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 Nov 2016 22:19:07 +0100 Original-Received: from localhost ([::1]:42481 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c4aH0-00010r-Fm for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 Nov 2016 16:19:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55689) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c4aGt-0000zn-Sg for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2016 16:19:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c4aGs-00029W-Mu for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2016 16:19:03 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35929) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c4aGs-00029Q-J1 for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2016 16:19:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1c4aGs-0004vo-Ba for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2016 16:19:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Philipp Stephani Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Nov 2016 21:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 24913 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.147872629118898 (code B ref -1); Wed, 09 Nov 2016 21:19:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Nov 2016 21:18:11 +0000 Original-Received: from localhost ([127.0.0.1]:51328 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c4aG3-0004uk-2H for submit@debbugs.gnu.org; Wed, 09 Nov 2016 16:18:11 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:36183) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c4aG1-0004uX-JS for submit@debbugs.gnu.org; Wed, 09 Nov 2016 16:18:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c4aFv-0001sd-5q for submit@debbugs.gnu.org; Wed, 09 Nov 2016 16:18:04 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:54450) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c4aFv-0001sZ-2E for submit@debbugs.gnu.org; Wed, 09 Nov 2016 16:18:03 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55372) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c4aFt-0000xT-2S for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2016 16:18:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c4aFs-0001rq-4w for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2016 16:18:01 -0500 Original-Received: from mail-wm0-x22a.google.com ([2a00:1450:400c:c09::22a]:36083) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c4aFr-0001rL-TN for bug-gnu-emacs@gnu.org; Wed, 09 Nov 2016 16:18:00 -0500 Original-Received: by mail-wm0-x22a.google.com with SMTP id g23so4895103wme.1 for ; Wed, 09 Nov 2016 13:17:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=tuIxCYCZtv2Nq33EpQb7npzd+byIngV4fLByI4zFUQY=; b=IrOXPTR9bkvvActGmm16n+nFrN9EdhpNnubj2zUpE+lHcaCIne1Aq8uMxzl520BRGP gY4Pf4b/eFAyRO0JM1Fg9DAYZokmigCnVIABFztzluPpV8m3X4qYrQA2i2OqcwpwjUbV le5muBA+so0t/caX4dxv0zb6JYxwJt/RwVxE7LDf+RQvIrzwVd778Q6SXOrY9rqJ8rfn UmqR1SKSy9SZwO6SbOovi+gjrpFWSOcDgQOGMy8K/8zCzlRjsNpGoxlIFh7hYVTrArfU DQ9AFP834OQwSw9v60RDBdjbA3jwEFufNYknrptJh54x/HT5Kewf3+G8RWk3NPKC7DvD n7zA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=tuIxCYCZtv2Nq33EpQb7npzd+byIngV4fLByI4zFUQY=; b=QxgRZXH0P1IlfcvgXA70+7d9sHBleR4755K3Imkub3Kt6t5MuTPCv7PGERMQflMKtc Ibc3Mua+Mpgt4ZYo8qNIq+qbUYJ3OqZY/sLt6dG6N5dieO8kpjNpLP+1axoh9B3w9Oj1 qqwhvwGC/0YcbTusJOMEGUTz58AUVO4L8p0gm6t3nq06FyJKF+JfMekH/B+UEXH3/p/Y n1Xm0JM0cUb5sMWeXCh+OakkcatRPT2BLBbjhO0jvIx0pjlz696E3WmBfPt1eQtMowPA 3IXCcAZ5NlGOASgR7pFDqdV6qqp5/lovSrK4QgRb6uTA9JeSI/P1DwfsF1hEbY7HMQrU DNmg== X-Gm-Message-State: ABUngvdr/N1oJ0yhHQxQk9cez7k8vjmYdpbtK8TS5AC+kh0dtedLC1PvejOby3Z8kznv/A== X-Received: by 10.28.14.65 with SMTP id 62mr114655wmo.3.1478726278511; Wed, 09 Nov 2016 13:17:58 -0800 (PST) Original-Received: from a.muc.corp.google.com ([2a00:79e0:15:4:d141:a38c:6374:fc8b]) by smtp.gmail.com with ESMTPSA id d85sm9126559wmd.17.2016.11.09.13.17.57 for (version=TLS1_2 cipher=AES128-SHA bits=128/128); Wed, 09 Nov 2016 13:17:57 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:125530 Archived-At: For example: (funcall (lambda (&optional &rest &rest &optional x) (list x)) 'a) =3D> ((a)) Obviously here the &rest keyword "wins", but I think that's overly confusing. Such an argument list is most likely a programmer mistake, and should signal an error to make the programmer aware of the mistake. In GNU Emacs 25.1.50.13 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8) of 2016-11-09 built on localhost Repository revision: eb364fddec1431f459166cebb36f09f6b371dd71 Windowing system distributor 'The X.Org Foundation', version 11.0.11501000 System Description: Ubuntu 14.04 LTS Configured using: 'configure --with-modules --enable-checking --enable-check-lisp-object-type 'CFLAGS=3D-ggdb3 -O0'' Configured features: XPM JPEG TIFF GIF PNG SOUND GSETTINGS NOTIFY GNUTLS FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-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 Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message dired format-spec rfc822 mml mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns help-mode easymenu cl-loaddefs pcase cl-lib mail-prsvr mail-utils time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core 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 charscript case-table epa-hook jka-cmpr-hook help simple abbrev 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 inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 88939 12159) (symbols 48 19888 0) (miscs 40 343 148) (strings 32 14757 5052) (string-bytes 1 440451) (vectors 16 12779) (vector-slots 8 446082 5011) (floats 8 166 60) (intervals 56 209 0) (buffers 976 24) (heap 1024 23753 956)) --=20 Google Germany GmbH Erika-Mann-Stra=C3=9Fe 33 80636 M=C3=BCnchen Registergericht und -nummer: Hamburg, HRB 86891 Sitz der Gesellschaft: Hamburg Gesch=C3=A4ftsf=C3=BChrer: Matthew Scott Sucherman, Paul Terence Manicle Diese E-Mail ist vertraulich. Wenn Sie nicht der richtige Adressat sind, leiten Sie diese bitte nicht weiter, informieren Sie den Absender und l=C3= =B6schen Sie die E-Mail und alle Anh=C3=A4nge. Vielen Dank. This e-mail is confidential. If you are not the right addressee please do = not forward it, please inform the sender, and please erase this e-mail including any attachments. Thanks.