From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: edebug and defun* &key Date: Sat, 08 Jan 2011 09:58:28 +1100 Organization: Unlimited download news at news.astraweb.com Message-ID: <87hbdk9v8r.fsf@puma.rapttech.com.au> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1294443661 26334 80.91.229.12 (7 Jan 2011 23:41:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 7 Jan 2011 23:41:01 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 08 00:40:57 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PbLvP-0004aE-SJ for geh-help-gnu-emacs@m.gmane.org; Sat, 08 Jan 2011 00:40:52 +0100 Original-Received: from localhost ([127.0.0.1]:46091 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PbLvO-0007IP-Rn for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Jan 2011 18:40:50 -0500 Original-Path: usenet.stanford.edu!goblin1!goblin.stu.neva.ru!news.astraweb.com!border5.a.newsrouter.astraweb.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:4WxQyw2NQ+QlpLo8uS0uRGIUe3E= Original-Lines: 29 Original-NNTP-Posting-Host: 8ab7fbf7.news.astraweb.com Original-X-Trace: DXC=W_Gn_kS6W>K6; ?e@]GfeBGL?0kYOcDh@JW\:Hm@YlDbJ=748>4V; d\@nBb1=>ZhLaL0XX`_a`ieFI Original-Xref: usenet.stanford.edu gnu.emacs.help:184114 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:78305 Archived-At: Le Wang writes: > Hi all, > > > I really like the clarity of defun* forms when specifying optional parameters. >  However, edebug doesn't seem to be able to unserstand these forms very well. >  Has anyone got a workaround? > > e.g. > > (defun* foo (&optional &key (arg t))) > > edebug-defun The defun* is a CL compatibility macro and not a part of standard elisp. i.e. you have to load the 'cl package to get it. Elisp can handle the &optional and &key parameter types in normal defun. IIRC the only real difference is that elisp cannot set default values for optional parameters - they are nil if not supplied and thats it. When you say edebug does not understand these forms very well, what do you mean? Tim -- tcross (at) rapttech dot com dot au