From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/74632 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: nnir summary line formatting Date: Fri, 03 Dec 2010 12:54:08 +0900 Organization: Emacsen advocacy group Message-ID: References: <87ipzc1a1q.fsf@andy.bu.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1291348502 25695 80.91.229.12 (3 Dec 2010 03:55:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 3 Dec 2010 03:55:02 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M22988@lists.math.uh.edu Fri Dec 03 04:54:57 2010 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 1POMjY-0006Ug-Er for ding-account@gmane.org; Fri, 03 Dec 2010 04:54:56 +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 1POMjS-0006cO-83; Thu, 02 Dec 2010 21:54:50 -0600 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 1POMjQ-0006c9-Kl for ding@lists.math.uh.edu; Thu, 02 Dec 2010 21:54:48 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1POMjP-0005RY-07 for ding@lists.math.uh.edu; Thu, 02 Dec 2010 21:54:48 -0600 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1POMjO-00045o-00 for ; Fri, 03 Dec 2010 04:54:46 +0100 Original-Received: from localhost ([127.0.0.1]:46322) by orlando.hostforweb.net with esmtpa (Exim 4.69) (envelope-from ) id 1POMim-00025c-Ll for ding@gnus.org; Thu, 02 Dec 2010 21:54:09 -0600 X-Hashcash: 1:20:101203:ding@gnus.org::EWRIJ3hKb88iuisL:00001iht X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:op3S1qgjNdXbl5gbrDnfPobIDDs= X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:74632 Archived-At: Andrew Cohen wrote: > A (mostly) straightforward way to handle this is to use the > gnus-summary-line-format. I would like to add a couple of specs to > gnus-summary-line-format-alist to do this (tentatively %Z for the RSV > and %G for the full group name and %g for the short name). Currently nnir- macros used in `gnus-summary-line-format-alist' will never be expanded. For instance: (assq ?Z gnus-summary-line-format-alist) => (90 (or (nnir-article-rsv (aref gnus-tmp-header 0)) 0) 100) But it seems to have to be: => (90 (or (elt (if (> (aref gnus-tmp-header 0) 0) (progn (elt nnir-artlist (1- (aref gnus-tmp-header 0))))) 2) 0) 100) To make it do that, those macros have to be loaded before gnus-sum, however nnir requires gnus-sum in it. > I'd then introduce nnir-summary-line-format which is used locally > in nnir summary buffers rather than gnus-summary-line-format > (set through a hook). Does it solve?