From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Gemini Lasswell Newsgroups: gmane.emacs.bugs Subject: bug#24913: 25.1.50; Emacs accepts undocumented and confusing combinations of &optional and &rest in argument lists Date: Thu, 10 Nov 2016 08:56:36 -0800 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1478799907 1535 195.159.176.226 (10 Nov 2016 17:45:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 10 Nov 2016 17:45:07 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (darwin) To: Philipp Stephani , 24913@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 10 18:45:03 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 1c4tPA-0007RQ-3y for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Nov 2016 18:44:52 +0100 Original-Received: from localhost ([::1]:47997 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c4tPD-00063O-64 for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Nov 2016 12:44:55 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48299) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c4sew-0000ys-2a for bug-gnu-emacs@gnu.org; Thu, 10 Nov 2016 11:57:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c4set-0004bv-1R for bug-gnu-emacs@gnu.org; Thu, 10 Nov 2016 11:57:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37102) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c4ses-0004bn-Tx for bug-gnu-emacs@gnu.org; Thu, 10 Nov 2016 11:57:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1c4ses-00018D-If for bug-gnu-emacs@gnu.org; Thu, 10 Nov 2016 11:57:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Gemini Lasswell Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Nov 2016 16:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24913 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24913-submit@debbugs.gnu.org id=B24913.14787970214341 (code B ref 24913); Thu, 10 Nov 2016 16:57:02 +0000 Original-Received: (at 24913) by debbugs.gnu.org; 10 Nov 2016 16:57:01 +0000 Original-Received: from localhost ([127.0.0.1]:52501 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c4seq-00017x-Mu for submit@debbugs.gnu.org; Thu, 10 Nov 2016 11:57:00 -0500 Original-Received: from aibo.runbox.com ([91.220.196.211]:59260) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c4sep-00017p-10 for 24913@debbugs.gnu.org; Thu, 10 Nov 2016 11:56:59 -0500 Original-Received: from [10.9.9.211] (helo=mailfront11.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1c4sen-0007XN-MM; Thu, 10 Nov 2016 17:56:57 +0100 Original-Received: from c-24-22-244-161.hsd1.wa.comcast.net ([24.22.244.161] helo=rainbow.local) by mailfront11.runbox.com with esmtpsa (uid:179284 ) (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) id 1c4sej-0002OU-0m; Thu, 10 Nov 2016 17:56:53 +0100 In-Reply-To: (Philipp Stephani's message of "Thu, 10 Nov 2016 12:58:39 +0000") 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:125563 Archived-At: > Philipp Stephani schrieb am Mi., 9. Nov. 2016 um 22:19 Uhr: > > Here's a patch that detects such argument lists. > A more general solution would be to have the byte compiler try to match Edebug specs, and issue a warning or an error if it fails. That would help find errors in the invocations of all macros, not just ones with argument lists.