help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: `defun' doesn't complain when arglist is missing.


From: Stefan Monnier
Subject: Re: `defun' doesn't complain when arglist is missing.
Date: Thu, 24 Oct 2013 13:14:42 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

> I was caught by this a few times. Wouldn't it make sense to add 
>   (unless (and (listp arglist)
>                (null (delq t (mapcar #'symbolp arglist))))
>     (error "Malformed arglist: %s" arglist))
> near the beginning of "defun" in byte-run.el ?

Indeed.  Please send a patch via M-x report-emacs-bug, thank you,


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]