From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: edebug and defun* &key Date: Fri, 07 Jan 2011 15:44:11 +0100 Message-ID: <87fwt47ozo.fsf@member.fsf.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1294411579 19620 80.91.229.12 (7 Jan 2011 14:46:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 7 Jan 2011 14:46:19 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 07 15:46:13 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 1PbDZy-0005iS-FC for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Jan 2011 15:46:10 +0100 Original-Received: from localhost ([127.0.0.1]:42022 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PbDZy-0005o2-0Y for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Jan 2011 09:46:10 -0500 Original-Received: from [140.186.70.92] (port=33364 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PbDYJ-000531-73 for help-gnu-emacs@gnu.org; Fri, 07 Jan 2011 09:44:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PbDYG-0006lq-NG for help-gnu-emacs@gnu.org; Fri, 07 Jan 2011 09:44:25 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:32983) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PbDYG-0006lc-Bm for help-gnu-emacs@gnu.org; Fri, 07 Jan 2011 09:44:24 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PbDYE-0004uA-8K for help-gnu-emacs@gnu.org; Fri, 07 Jan 2011 15:44:22 +0100 Original-Received: from tsdh.uni-koblenz.de ([141.26.67.142]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Jan 2011 15:44:22 +0100 Original-Received: from tassilo by tsdh.uni-koblenz.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Jan 2011 15:44:22 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 22 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: tsdh.uni-koblenz.de User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:JKypBILatcOqqmqa34r+4+usQKI= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:78294 Archived-At: Le Wang 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