From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/55824 Path: main.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: how to turn this Gnus function into a macro? Date: Wed, 07 Jan 2004 22:28:17 -0500 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: <4n8ykjazla.fsf@collins.bwh.harvard.edu> References: <4noetfo10c.fsf@collins.bwh.harvard.edu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1073532613 12147 80.91.224.253 (8 Jan 2004 03:30:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 8 Jan 2004 03:30:13 +0000 (UTC) Cc: ding@gnus.org Original-X-From: ding-owner+M4364@lists.math.uh.edu Thu Jan 08 04:30:10 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 1AeQs5-0001Xb-00 for ; Thu, 08 Jan 2004 04:30:09 +0100 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 1AeQre-00037R-00; Wed, 07 Jan 2004 21:29:42 -0600 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1AeQrV-00037J-00 for ding@lists.math.uh.edu; Wed, 07 Jan 2004 21:29:33 -0600 Original-Received: from clifford.bwh.harvard.edu (clifford.bwh.harvard.edu [134.174.9.41]) by justine.libertine.org (Postfix) with ESMTP id 8436F3A005B for ; Wed, 7 Jan 2004 21:29:32 -0600 (CST) Original-Received: from collins.bwh.harvard.edu (collins [134.174.9.80]) by clifford.bwh.harvard.edu (8.10.2+Sun/8.11.0) with ESMTP id i083SNW07932; Wed, 7 Jan 2004 22:28:23 -0500 (EST) Original-Received: from collins.bwh.harvard.edu (localhost [127.0.0.1]) by collins.bwh.harvard.edu (8.12.9+Sun/8.11.0) with ESMTP id i083SIuB027727; Wed, 7 Jan 2004 22:28:18 -0500 (EST) Original-Received: (from tzz@localhost) by collins.bwh.harvard.edu (8.12.9+Sun/8.12.9/Submit) id i083SH91027724; Wed, 7 Jan 2004 22:28:17 -0500 (EST) Original-To: Katsumi Yamaoka 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" Mail-Followup-To: Katsumi Yamaoka , ding@gnus.org In-Reply-To: (Katsumi Yamaoka's message of "Thu, 08 Jan 2004 11:13:52 +0900") User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (usg-unix-v) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:55824 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:55824 On Thu, 08 Jan 2004, yamaoka@jpl.org wrote: >>>>>> In <4noetfo10c.fsf@collins.bwh.harvard.edu> >>>>>> Ted Zlatanov wrote: > >> I tried to make this function into a macro but failed. > > How about it? Your solution still has a special case for every field - I was hoping that given ARTICLE and 'from as the arguments, the macro would call (mail-header-from ARTICLE) for example. If I could only funcall a macro, the code would be pretty simple: ;; pseudocode, doesn't work (defun spam-fetch-field-fast (article field) (when (and (numberp article) (symbolp field)) (funcall (intern (concat "mail-header-" (symbol-name field))) (gnus-data-header (assoc article (gnus-data-list nil)))))) (it's not correct, but I think you see what I want to achieve) Thanks! Ted