From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/88496 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Adam_Sj=C3=B8gren?= Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus-article-date-headers, new type "combined-local"? Date: Thu, 11 Apr 2019 19:55:24 +0200 Organization: koldfront - analysis & revolution, Copenhagen, Denmark Message-ID: <87v9zkfmur.fsf@tullinup.koldfront.dk> References: <87imvlhtcz.fsf@tullinup.koldfront.dk> <87d0lse91o.fsf@igel.home> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="52055"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: ding@gnus.org Original-X-From: ding-owner+M36699@lists.math.uh.edu Thu Apr 11 19:55:54 2019 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hEdvU-000DNo-AH for ding-account@gmane.org; Thu, 11 Apr 2019 19:55:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.92) (envelope-from ) id 1hEdvG-0000b0-O5; Thu, 11 Apr 2019 12:55:38 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1hEdvB-0000Y3-Iy for ding@lists.math.uh.edu; Thu, 11 Apr 2019 12:55:33 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1hEdvA-0000ch-Bm for ding@lists.math.uh.edu; Thu, 11 Apr 2019 12:55:33 -0500 Original-Received: from [195.159.176.226] (helo=blaine.gmane.org) by quimby.gnus.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hEdv7-0004GT-1N for ding@gnus.org; Thu, 11 Apr 2019 19:55:31 +0200 Original-Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1hEdv6-000Cyd-Rl for ding@gnus.org; Thu, 11 Apr 2019 19:55:28 +0200 X-Injected-Via-Gmane: http://gmane.org/ OpenPGP: id=476630590A231909B0A0961A49D0746121BDE416; url=https://asjo.koldfront.dk/gpg.asc Mail-Follow-Up-To: never X-Now-Playing: Mannen I Den Vita Hatten (live =?utf-8?Q?=C3=96stersund?= 2005-06-03), Berkovits collection (Kent) X-Face: )qY&CseJ?.:=8F#^~GcSA?F=9eu'{KAFfL1C3/A&:nE?PW\i65"ba0NS)97,Q(^@xk}n4Ou rPuR#V8I(J_@~H($[ym:`K_+]*kjvW>xH5jbgLBVFGXY:(#4P>zVBklLbdL&XxL\M)%T}3S/IS9lMJ ^St'=VZBR Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:88496 Archived-At: Andreas writes: > On Apr 11 2019, Adam Sjøgren wrote: > >> It looks like adding that would be another type in >> article-make-date-line, say combined-local. >> >> What do you think, would it make sense to add that, or is there an >> "easier" way? > > Try 'user-defined. The documentation of gnus-article-date-headers says: ‘user-defined’ (a user-defined format defined by the ‘gnus-article-time-format’ variable). which is almost as information-free as your answer. The default value of gnus-article-time-format is "%a, %d %b %Y %T %Z". To implement combined-lapsed, I find this piece of code: ((eq type 'combined-lapsed) (let ((date-string (article-make-date-line date 'original)) (segments 3) lapsed-string) (while (and time (setq lapsed-string (concat " (" (article-lapsed-string time segments) ")")) (> (+ (length date-string) (length lapsed-string)) (+ fill-column 6)) (> segments 0)) (setq segments (1- segments))) (if (> segments 0) (concat date-string lapsed-string) date-string))) Which kind of makes me think that it probably can't be done with a user-defined string. Maybe it really is trivial using 'user-defined, it's hard to tell from your reply. Best regards, Adam -- "Everything needs to change. Adam Sjøgren And it has to start today." asjo@koldfront.dk