From: Philipp Stephani <p.stephani2@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 24913-done@debbugs.gnu.org
Subject: bug#24913: 25.1.50; Emacs accepts undocumented and confusing combinations of &optional and &rest in argument lists
Date: Fri, 18 Nov 2016 17:37:26 +0000 [thread overview]
Message-ID: <CAArVCkS+nDPUt+U=GPn4pEpo9YXZoXZu2ij0Hc3Xta2JG=hVhw@mail.gmail.com> (raw)
In-Reply-To: <831sy9duna.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 702 bytes --]
Eli Zaretskii <eliz@gnu.org> schrieb am Fr., 18. Nov. 2016 um 10:06 Uhr:
> > From: Philipp Stephani <p.stephani2@gmail.com>
> > Date: Thu, 10 Nov 2016 12:58:39 +0000
> >
> > Philipp Stephani <p.stephani2@gmail.com> schrieb am Mi., 9. Nov. 2016
> um 22:19 Uhr:
> >
> > For example:
> >
> > (funcall (lambda (&optional &rest &rest &optional x) (list x)) 'a)
> > => ((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.
> >
> > Here's a patch that detects such argument lists.
>
> Thanks, please push to master.
>
Done.
[-- Attachment #2: Type: text/html, Size: 1583 bytes --]
prev parent reply other threads:[~2016-11-18 17:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-09 21:17 bug#24913: 25.1.50; Emacs accepts undocumented and confusing combinations of &optional and &rest in argument lists Philipp Stephani
2016-11-10 12:58 ` Philipp Stephani
2016-11-10 16:56 ` Gemini Lasswell
2016-11-19 16:40 ` Philipp Stephani
2016-11-20 6:31 ` Gemini Lasswell
2016-11-20 12:41 ` Philipp Stephani
2016-11-18 9:06 ` Eli Zaretskii
2016-11-18 17:37 ` Philipp Stephani [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAArVCkS+nDPUt+U=GPn4pEpo9YXZoXZu2ij0Hc3Xta2JG=hVhw@mail.gmail.com' \
--to=p.stephani2@gmail.com \
--cc=24913-done@debbugs.gnu.org \
--cc=eliz@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.