From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/42120 Path: main.gmane.org!not-for-mail From: Patric Mueller Newsgroups: gmane.emacs.gnus.general Subject: [patch] bug in timestamp example in gnus-3 Date: Thu, 17 Jan 2002 06:16:02 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035177406 9699 80.91.224.250 (21 Oct 2002 05:16:46 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 05:16:46 +0000 (UTC) Return-Path: Original-Received: (qmail 29906 invoked from network); 17 Jan 2002 05:21:40 -0000 Original-Received: from malifon.math.uh.edu (mail@129.7.128.13) by mastaler.com with SMTP; 17 Jan 2002 05:21:40 -0000 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 16R4y2-0005lz-00; Wed, 16 Jan 2002 23:20:02 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 16 Jan 2002 23:19:57 -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 XAA03349 for ; Wed, 16 Jan 2002 23:19:45 -0600 (CST) Original-Received: (qmail 29878 invoked by alias); 17 Jan 2002 05:19:46 -0000 Original-Received: (qmail 29873 invoked from network); 17 Jan 2002 05:19:45 -0000 Original-Received: from ingebrigtsen.no (HELO quimby2.netfonds.no) (195.204.10.66) by gnus.org with SMTP; 17 Jan 2002 05:19:45 -0000 Original-Received: from news by quimby2.netfonds.no with local (Exim 3.12 #1 (Debian)) id 16R507-0008A3-00 for ; Thu, 17 Jan 2002 06:22:11 +0100 Original-To: ding@gnus.org Original-Path: Enki.local!not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 30 Original-NNTP-Posting-Host: dialup-54-68.dplanet.ch Original-X-Trace: quimby2.netfonds.no 1011244931 31374 212.35.54.68 (17 Jan 2002 05:22:11 GMT) Original-X-Complaints-To: usenet@quimby2.netfonds.no Original-NNTP-Posting-Date: 17 Jan 2002 05:22:11 GMT X-Draft-From: ("gnus.ding" "") X-Test: =?iso-8859-7?b?wePl+ezl9PHn9O/yIOzn5OXp8iDl6fPp9Pk=?= User-Agent: Gnus/5.090005 (Oort Gnus v0.05) XEmacs/21.1 (Channel Islands, i386-suse-linux) Cancel-Lock: sha1:wfI9E7L7+D8RcfLfFrHuQCZrKds= Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:42120 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:42120 Hi The example for the user defined date format doesn't work. There's a typo (%ud not %Ud) and then it doesn't work as expected. If the group has never been assigned a timestamp instead of nothing, time will be nil and format-time-string then takes the current time. This little patch should fix that. Bye Patric --- gnus-3.orig Mon Jan 14 18:18:13 2002 +++ gnus-3 Thu Jan 17 05:42:53 2002 @@ -635,10 +635,10 @@ trick: (setq gnus-group-line-format - "%M\%S\%p\%P\%5y: %(%-40,40g%) %Ud\n") + "%M\%S\%p\%P\%5y: %(%-40,40g%) %ud\n") (defun gnus-user-format-function-d (headers) (let ((time (gnus-group-timestamp gnus-tmp-group))) - (format-time-string "%b %d %H:%M" time))) + (if time (format-time-string "%b %d %H:%M" time) (make-string 0 ?x)))) File: gnus, Node: File Commands, Next: Sieve Commands, Prev: Group Timestamp, Up: Misc Group Stuff