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: Le Wang
Subject: Re: edebug and defun* &key
Date: Sat, 8 Jan 2011 02:54:00 +0800

On Fri, Jan 7, 2011 at 10:44 PM, Tassilo Horn <tassilo@member.fsf.org> wrote:
 (defun foo (&optional baz bla))

I'm no lisp expert but something like (foo-func nil nil t nil) is just so much less clean than (foo-func :truncate-blanks nil).
 
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)))

Bingo.  That fixed it.  Thanks.
 
--
Le

reply via email to

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