[Top][All Lists]

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

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

From: Nicolas Richard
Subject: `defun' doesn't complain when arglist is missing.
Date: Thu, 24 Oct 2013 13:04:09 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Alex Bennée <address@hidden> writes:
> You can happily C-x C-e eval-last-sexp both of those defuns without
> complaint. The error in the defun only shows up when you try and execute them.

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 ? Or am I being naive
again ?

I guess it's not there for a reason, but what is it ?


reply via email to

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