all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nicolas Richard <theonewiththeevillook@yahoo.fr>
To: "Alex Bennée" <kernel-hacker@bennee.com>
Cc: Michael Heerdegen <michael_heerdegen@web.de>, help-gnu-emacs@gnu.org
Subject: `defun' doesn't complain when arglist is missing.
Date: Thu, 24 Oct 2013 13:04:09 +0200	[thread overview]
Message-ID: <8738nr2amu.fsf_-_@yahoo.fr> (raw)
In-Reply-To: <p14n87otrp.fsf@linaro.org> ("Alex \=\?utf-8\?Q\?Benn\=C3\=A9e\=22's\?\= message of "Thu, 24 Oct 2013 11:19:54 +0100")

Alex Bennée <kernel-hacker@bennee.com> 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 ?

-- 
Nico.



  parent reply	other threads:[~2013-10-24 11:04 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-23 20:25 Help debugging backtrace Alex Bennée
2013-10-24  0:44 ` Michael Heerdegen
2013-10-24  9:54   ` Alex Bennée
2013-10-24 10:19   ` Alex Bennée
2013-10-24 10:57     ` Michael Heerdegen
2013-10-24 11:04     ` Nicolas Richard [this message]
2013-10-24 17:14       ` `defun' doesn't complain when arglist is missing Stefan Monnier
     [not found]     ` <mailman.4604.1382612629.10748.help-gnu-emacs@gnu.org>
2013-10-24 21:23       ` Pascal J. Bourguignon

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=8738nr2amu.fsf_-_@yahoo.fr \
    --to=theonewiththeevillook@yahoo.fr \
    --cc=help-gnu-emacs@gnu.org \
    --cc=kernel-hacker@bennee.com \
    --cc=michael_heerdegen@web.de \
    /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.