From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/85816 Path: news.gmane.org!not-for-mail From: asjo@koldfront.dk (Adam =?utf-8?Q?Sj=C3=B8gren?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: message-citation-line-format - should %F have a fall back? Date: Thu, 26 Feb 2015 23:38:29 +0100 Organization: koldfront - analysis & revolution, Copenhagen, Denmark Message-ID: <87oaog70yi.fsf@topper.koldfront.dk> References: <87k2z5rar3.fsf@topper.koldfront.dk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1424990455 7168 80.91.229.3 (26 Feb 2015 22:40:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 26 Feb 2015 22:40:55 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M34055@lists.math.uh.edu Thu Feb 26 23:40:42 2015 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YR76o-000840-6z for ding-account@gmane.org; Thu, 26 Feb 2015 23:40:42 +0100 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 1YR75F-0007wi-Sp; Thu, 26 Feb 2015 16:39:05 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1YR75C-0007wT-Vo for ding@lists.math.uh.edu; Thu, 26 Feb 2015 16:39:02 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.84) (envelope-from ) id 1YR75A-0004cx-El for ding@lists.math.uh.edu; Thu, 26 Feb 2015 16:39:02 -0600 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1YR757-0001BX-Oh for ding@gnus.org; Thu, 26 Feb 2015 23:38:57 +0100 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YR754-00073J-KD for ding@gnus.org; Thu, 26 Feb 2015 23:38:54 +0100 Original-Received: from 2505ds5-by.0.fullrate.dk ([89.150.142.116]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 26 Feb 2015 23:38:54 +0100 Original-Received: from asjo by 2505ds5-by.0.fullrate.dk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 26 Feb 2015 23:38:54 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 51 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 2505ds5-by.0.fullrate.dk OpenPGP: id=49D0746121BDE416; url=http://asjo.koldfront.dk/gpg.asc Mail-Follow-Up-To: never 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:85816 Archived-At: Katsumi Yamaoka writes: > On Wed, 25 Feb 2015 21:34:24 +0100, Adam Sjøgren wrote: >> Should %F in message-citation-line-format fall back to something >> different than nil, if no first name can be detected? > The most corner‐cutting way would be: > --- message.el~ 2015-01-29 02:00:24.303787500 +0000 > +++ message.el 2015-02-26 00:40:28.328441100 +0000 > @@ -4085,3 +4085,3 @@ > (push ?E lst) (push "" lst) > - (push ?F lst) (push fname lst) > + (push ?F lst) (push (or fname name-or-net) lst) > ;; We might want to use "" instead of "" later. > > This is what %N does. I was testing this: --- a/lisp/message.el +++ b/lisp/message.el @@ -4036,7 +4036,7 @@ See `message-citation-line-format'." from) (error nil))) (name (car data)) - (fname name) + (fname-or-net (or name (car (cdr data)) from)) (lname name) (net (car (cdr data))) (name-or-net (or (car data) @@ -4083,7 +4083,7 @@ See `message-citation-line-format'." (setq fname lname lname newlname))))) ;; The following letters are not used in `format-time-string': (push ?E lst) (push "" lst) - (push ?F lst) (push fname lst) + (push ?F lst) (push fname-or-net lst) ;; We might want to use "" instead of "" later. (push ?J lst) (push "" lst) (push ?K lst) (push "" lst) I don't know if that is better or worse... Best regards, Adam -- "Apparantly I was misinformed." Adam Sjøgren asjo@koldfront.dk