From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/57533 Path: main.gmane.org!not-for-mail From: "Ted Zlatanov" Newsgroups: gmane.emacs.gnus.general Subject: Re: new user assistant Date: 19 May 2004 10:55:28 -0400 Organization: =?koi8-r?q?=F4=C5=CF=C4=CF=D2=20=FA=CC=C1=D4=C1=CE=CF=D7?= @ Cienfuegos Sender: ding-owner@lists.math.uh.edu Message-ID: <4n8yfoh3fj.fsf@lifelogs.com> References: <4nd653nm2i.fsf@lifelogs.com> <4nzn86honu.fsf@lifelogs.com> <4nk6z9bk8n.fsf_-_@lifelogs.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1084979557 27876 80.91.224.253 (19 May 2004 15:12:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 19 May 2004 15:12:37 +0000 (UTC) Original-X-From: ding-owner+M6073@lists.math.uh.edu Wed May 19 17:12:22 2004 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BQSk1-0007Br-00 for ; Wed, 19 May 2004 17:12:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1BQSjo-0000ws-00; Wed, 19 May 2004 10:12:08 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1BQSjk-0000wn-00 for ding@lists.math.uh.edu; Wed, 19 May 2004 10:12:04 -0500 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by util2.math.uh.edu with esmtp (Exim 4.30) id 1BQSji-0006j2-J8 for ding@lists.math.uh.edu; Wed, 19 May 2004 10:12:02 -0500 Original-Received: from mail.bwh.harvard.edu (sysblade0.bwh.harvard.edu [134.174.9.44]) by justine.libertine.org (Postfix) with ESMTP id 0F1EA3A01FF for ; Wed, 19 May 2004 10:12:02 -0500 (CDT) Original-Received: (qmail 20817 invoked from network); 19 May 2004 15:06:24 -0000 Envelope-Sender: tzz@lifelogs.com Envelope-Recipients: ding@gnus.org, Original-Received: from asimov.bwh.harvard.edu (HELO asimov) ([134.174.9.63]) (envelope-sender ) by mail.bwh.harvard.edu (qmail-ldap-1.03) with SMTP for ; 19 May 2004 15:06:23 -0000 Mail-Followup-To: ding@gnus.org Original-To: ding@gnus.org X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" In-Reply-To: (Lars Magne Ingebrigtsen's message of "Tue, 18 May 2004 22:44:41 +0200") User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:57533 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:57533 On Tue, 18 May 2004, larsi@gnus.org wrote: >> @next `(,@(when (assq 'nnml backends) "Configuring the nnml backend") ,@(when >> (assq 'nntp backends) "Configuring the NNTP backend") [...] ,@(when >> (eq sendmail outbound) "Configuring sendmail") ,@(when (eq smtp >> outbound) "Configuring SMTP")) > > I don't think you'll need macros -- these things will be funcalled, > anyway. (That is, wrapped in `lambda' forms. Or perhaps just evaled. > So, if we just allow one element to branch, that could perhaps be > expressed more succinctly... > > @next nntp "Reading news from a news server" > @next nnspool "Reading news from the local spool" > > Or something. (Except that the last one wouldn't be an option, > because it's really rare that anybody would want to do nnspool. :-) I'm sure there's a Real Programmers joke in there. Anyhow, I would prefer more complex decisions for branching. You should at least be allowed to examine the variables produced by the current node and branch conditionally, so you don't have to write special code in the subsequent nodes. Ted