From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.devel Subject: Re: defmacro* and defmacro*-public in master Date: Mon, 28 Dec 2009 12:05:14 +0100 Message-ID: References: <2e6d10880912150915vc853f8eme1535b8aa5504aab@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1261999539 4823 80.91.229.12 (28 Dec 2009 11:25:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Dec 2009 11:25:39 +0000 (UTC) Cc: guile-devel@gnu.org To: Tristan Colgate Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Dec 28 12:25:32 2009 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NPDj1-0004WB-2Z for guile-devel@m.gmane.org; Mon, 28 Dec 2009 12:25:23 +0100 Original-Received: from localhost ([127.0.0.1]:35477 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NPDj0-0000Uy-RZ for guile-devel@m.gmane.org; Mon, 28 Dec 2009 06:25:22 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NPDhj-0007vt-L7 for guile-devel@gnu.org; Mon, 28 Dec 2009 06:24:03 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NPDhe-0007rV-Sv for guile-devel@gnu.org; Mon, 28 Dec 2009 06:24:02 -0500 Original-Received: from [199.232.76.173] (port=34043 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NPDhe-0007rM-51 for guile-devel@gnu.org; Mon, 28 Dec 2009 06:23:58 -0500 Original-Received: from a-pb-sasl-quonix.pobox.com ([208.72.237.25]:45644 helo=sasl.smtp.pobox.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NPDhd-00057v-V3 for guile-devel@gnu.org; Mon, 28 Dec 2009 06:23:58 -0500 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 5419A8B9CA; Mon, 28 Dec 2009 06:23:57 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=+Np6G5awgtTBE3rfkm+OFVKEwYw=; b=YqJa3y w2WuvlS+FDxl8xceQ9ho9MsFxHJ0qao1gaZKzTCUtcQ6oeqw0I5Q2/fe0t9irf5w Axl6nF8+gQHdQ0K77fkFnygJugLpz7Ww/pxYrrxn/wVYxP2MQj5iW2Q7bIuMfRdV F1twOmZkmzgIOB40P6MXpIeiDonEKA6rAswdg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=RyRjsuQRK42Xv1byXmf6+TTXSdUF3lE7 a/dsI6JpogkJRXlazYOx8UgKoW87HFLiGrTC+GVtceEBUUFtYwNpIxQjsLcV5K9X 9jkOM3JlL8KLHGo78iNdm7dGZPa2RDjbcj3/NzyeEUT7gRfepOi3Lgd3d7C1CwEX ZRrGdRVYvEs= Original-Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 406CB8B9C8; Mon, 28 Dec 2009 06:23:56 -0500 (EST) Original-Received: from unquote (unknown [82.123.112.129]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id B99FE8B9C7; Mon, 28 Dec 2009 06:23:54 -0500 (EST) In-Reply-To: <2e6d10880912150915vc853f8eme1535b8aa5504aab@mail.gmail.com> (Tristan Colgate's message of "Tue, 15 Dec 2009 17:15:03 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) X-Pobox-Relay-ID: 7C89C198-F3A3-11DE-9269-9D59EE7EF46B-02397024!a-pb-sasl-quonix.pobox.com X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:9802 Archived-At: Hi Tristan, On Tue 15 Dec 2009 18:15, Tristan Colgate writes: > Are defmacro* and friends supposed to work in current master? Yes, they are. But indeed, they weren't working. Thanks for the report, I have pushed a fix to current master. > Also, out of interest, is there such a thing as define*-syntax? No, there is not; though you could build one. > Is it possible to have docstrings for macros? Yes, macros can have docstrings. For defmacros, docstrings go in the same place they would go if it were a function definition. For syntax-case expressions, the docstring goes with the syntax transformer: (define-syntax foo (lambda (x) "docs" (syntax-case x ....))) Syntax-rules macros currently can't have any docs. We could change that, but as it would be a nonstandard extension anyway, you're probably better off using syntax-case. > doing something like (help macroname) seems to break anyway Ah, here you have found another bug, I think. I was going to add a hack-around to (ice-9 documentation) to fix this, but it's probably better to attack the root, in macros.c. Cheers, Andy -- http://wingolog.org/