From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/44035 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: where does this belong? Date: Wed, 27 Mar 2002 11:17:42 +0100 (CET) Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1017224340 4819 127.0.0.1 (27 Mar 2002 10:19:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 27 Mar 2002 10:19:00 +0000 (UTC) Cc: ding@gnus.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16qAWC-0001Fc-00 for ; Wed, 27 Mar 2002 11:19:00 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 16qAVJ-0000Tp-00; Wed, 27 Mar 2002 04:18:05 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 27 Mar 2002 04:18:12 -0600 (CST) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id EAA04918 for ; Wed, 27 Mar 2002 04:17:58 -0600 (CST) Original-Received: (qmail 17193 invoked by alias); 27 Mar 2002 10:17:47 -0000 Original-Received: (qmail 17188 invoked from network); 27 Mar 2002 10:17:47 -0000 Original-Received: from 178.230.13.217.in-addr.dgcsystems.net (HELO yxa.extundo.com) (217.13.230.178) by gnus.org with SMTP; 27 Mar 2002 10:17:47 -0000 Original-Received: from yxa.extundo.com (localhost.localdomain [127.0.0.1]) by yxa.extundo.com (8.12.2/8.12.2) with ESMTP id g2RAHhKY023754; Wed, 27 Mar 2002 11:17:43 +0100 Original-Received: from localhost (jas@localhost) by yxa.extundo.com (8.12.2/8.12.1/Submit) with ESMTP id g2RAHgJP023749; Wed, 27 Mar 2002 11:17:42 +0100 X-Authentication-Warning: yxa.extundo.com: jas owned process doing -bs Original-To: Paul Jarc In-Reply-To: Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:44035 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:44035 On Tue, 26 Mar 2002, Paul Jarc wrote: > I came up with a meta-macro called nnmaildir--defstruct for defining > data structures. Sample use: > > (nnmaildir--defstruct nnmaildir--srv > [address ;; the server address string > method ;; the select method > ... > ]) > > This defines macros such as nnmaildir--srv-get-address and > nnmaildir--srv-set-address which expand to aref and aset forms, much > like the gnus-info-* macros, complete with automatic docstrings. This > makes for less typing and prevents me from accidentally using a > different index in the -get- and -set- macros for the same member of a > data structure. > > After I wrote this, I realized its usefulness really isn't limited to > nnmaildir. E.g., the gnus-info-* macros could maybe be reimplemented > with this. So where would be a good place for it? gnus-util.el? > gnus.el? Perhaps it can be ripped out and put into a .el file of it's own? It seems that maybe there are non-gnus uses for it as well.