From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/79387 Path: news.gmane.org!not-for-mail From: lee Newsgroups: gmane.emacs.gnus.general Subject: Re: Gnus Questions #1: Article Expiry Date: Wed, 06 Jul 2011 21:24:20 +0200 Organization: my virtual residence Message-ID: <87vcvfxlej.fsf@yun.yagibdah.de> References: <87sjqm15mp.fsf@yun.yagibdah.de> <8739ikxup1.fsf@yun.yagibdah.de> <87tyb0wdki.fsf@yun.yagibdah.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1309980302 17843 80.91.229.12 (6 Jul 2011 19:25:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 6 Jul 2011 19:25:02 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M27683@lists.math.uh.edu Wed Jul 06 21:24:58 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QeXiR-00022c-Ca for ding-account@gmane.org; Wed, 06 Jul 2011 21:24:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1QeXi2-0003ku-F1; Wed, 06 Jul 2011 14:24:30 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1QeXhz-0003kh-SI for ding@lists.math.uh.edu; Wed, 06 Jul 2011 14:24:27 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1QeXhy-0001Fa-EV for ding@lists.math.uh.edu; Wed, 06 Jul 2011 14:24:27 -0500 Original-Received: from static.103.179.46.78.clients.your-server.de ([78.46.179.103] helo=static.73.179.46.78.clients.your-server.de) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1QeXhv-00055H-Hd for ding@gnus.org; Wed, 06 Jul 2011 21:24:23 +0200 Original-Received: from lee by yun.yagibdah.de with local (Exim 4.76) (envelope-from ) id 1QeXhs-0004MJ-N7 for ding@gnus.org; Wed, 06 Jul 2011 21:24:20 +0200 Mail-Followup-To: ding@gnus.org In-Reply-To: (Dave Abrahams's message of "Wed, 06 Jul 2011 14:32:47 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Spam-Score: 0.1 (/) X-Spam-Report: SpamAssassin (3.3.1 2010-03-16) analysis follows Bayesian score: 0.0000 Ham tokens: 0.000-1862--6087h-0s--0d--H*u:Emacs, 0.000-1728--5650h-0s--0d--H*u:Gnus, 0.000-1654--5409h-0s--0d--H*u:linux, 0.000-1654--5409h-0s--0d--H*UA:linux, 0.000-1604--5243h-0s--0d--H*UA:gnu Spam tokens: 0.956-4294--1447h-52970s--0d--H*r:quimby.gnus.org, 0.925-245--195h-4058s--0d--H*r:sk:static., 0.883-1573--4199h-53263s--0d--HX-Spam-Relays-External:quimby.gnus.org, 0.883-1573--4199h-53263s--0d--H*RU:quimby.gnus.org, 0.882-1368--3800h-47684s--0d--H*Ad:D*gnus.org Autolearn status: no -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 2.0 HELO_DYNAMIC_IPADDR Relay HELO'd using suspicious hostname (IP addr 1) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:79387 Archived-At: Dave Abrahams writes: > on Tue Jul 05 2011, lee wrote: >> >> Ah, it goes like this: >> >> >> (defun gnus-user-format-function-M (header) >> (if (equal gnus-tmp-unread gnus-ancient-mark) ; then >> (make-string 1 ?a) ; else >> (make-string 1 ?-) ) ) >> >> >> ... which uses the %u specifier of gnus-summary-line-format. >> >> This is probably a very stupid way of making a function return a string; >> I just don't know better yet ... > > I think this is easier ;-) > > (defun gnus-user-format-function-M (header) > (if (equal gnus-tmp-unread gnus-ancient-mark) "a" "-")) Hm, interesting, it's something I tried first and didn't seem to work. Now the problem seems to be that I don't know how to get information about the marks ...