From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/44040 Path: main.gmane.org!not-for-mail From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: where does this belong? Date: Wed, 27 Mar 2002 18:16:23 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: References: <87k7rypaoi.fsf@inanna.rimspace.net> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1017249776 30189 127.0.0.1 (27 Mar 2002 17:22:56 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 27 Mar 2002 17:22:56 +0000 (UTC) Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16qH8S-0007qo-00 for ; Wed, 27 Mar 2002 18:22:56 +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 16qH2y-0002Ot-00; Wed, 27 Mar 2002 11:17:16 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 27 Mar 2002 11:17:21 -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 LAA06339 for ; Wed, 27 Mar 2002 11:17:10 -0600 (CST) Original-Received: (qmail 29654 invoked by alias); 27 Mar 2002 17:16:58 -0000 Original-Received: (qmail 29649 invoked from network); 27 Mar 2002 17:16:58 -0000 Original-Received: from waldorf.cs.uni-dortmund.de (129.217.4.42) by gnus.org with SMTP; 27 Mar 2002 17:16:58 -0000 Original-Received: from lothlorien.cs.uni-dortmund.de (lothlorien [129.217.19.67]) by waldorf.cs.uni-dortmund.de with ESMTP id g2RHGSb05753 for ; Wed, 27 Mar 2002 18:16:28 +0100 (MET) Original-Received: from lucy.cs.uni-dortmund.de (lucy [129.217.19.80]) by lothlorien.cs.uni-dortmund.de id SAA29003; Wed, 27 Mar 2002 18:16:23 +0100 (MET) Original-Received: by lucy.cs.uni-dortmund.de (Postfix, from userid 6104) id 3A6E43AE82; Wed, 27 Mar 2002 18:16:23 +0100 (CET) Original-To: ding@gnus.org In-Reply-To: (prj@po.cwru.edu's message of "Wed, 27 Mar 2002 11:06:28 -0500") Original-Lines: 32 User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2.50 (i686-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:44040 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:44040 prj@po.cwru.edu (Paul Jarc) writes: > But I don't think I understand what the cl defstruct does, exactly. > Can someone point me to an example use? Here is what I use in Tramp: (defstruct tramp-file-name multi-method method user host path) After this, there is a constructor make-tramp-file-name which can be called like this: (make-tramp-file-name :multi-method x :method y :user u :host h :path p) And there are functions tramp-file-name-multi-method through tramp-file-name-path which get the corresponding items. And then you can do (setf (tramp-file-name-host x) "new-host") to change the "host" component of a structure. Does this help? kai -- Silence is foo!