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

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

Re: edebug and defun* &key


From: Tassilo Horn
Subject: Re: edebug and defun* &key
Date: Fri, 07 Jan 2011 15:44:11 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux)

Le Wang <l26wang@gmail.com> writes:

Hi!

> I really like the clarity of defun* forms when specifying optional
> parameters.
>
> (defun* foo (&optional &key (arg t)))

I don't know about edebug and defun*, but for optional parameters, you
don't need defun*.

  (defun foo (&optional baz bla))

is perfectly valid standard elisp.  For &key, you need defun*.  But
keyword parameters are optional anyway, so your above definition should
read like

  (defun* foo (&key (arg t)))

Bye,
Tassilo




reply via email to

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