Gnus development mailing list
 help / color / mirror / Atom feed
From: Katsumi Yamaoka <yamaoka@jpl.org>
To: ding@gnus.org
Subject: Re: nnir summary line formatting
Date: Fri, 03 Dec 2010 12:54:08 +0900	[thread overview]
Message-ID: <b4mfwuffr4v.fsf@jpl.org> (raw)
In-Reply-To: <87ipzc1a1q.fsf@andy.bu.edu>

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?



  parent reply	other threads:[~2010-12-03  3:54 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-02 15:14 Andrew Cohen
2010-12-02 15:25 ` Tassilo Horn
2010-12-02 15:28 ` Julien Danjou
2010-12-02 20:08 ` Andrew Cohen
2010-12-03  3:54 ` Katsumi Yamaoka [this message]
2010-12-03  4:13   ` Andrew Cohen
2010-12-03 13:37   ` Andrew Cohen
2010-12-03 14:06     ` Katsumi Yamaoka
2010-12-03 14:32       ` Andrew Cohen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b4mfwuffr4v.fsf@jpl.org \
    --to=yamaoka@jpl.org \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).