Gnus development mailing list
 help / color / mirror / Atom feed
From: Andrew Cohen <cohen@bu.edu>
To: ding@gnus.org
Subject: Re: [RFC] Gnus generalized search, part II
Date: Sun, 30 Apr 2017 08:15:42 +0800	[thread overview]
Message-ID: <87o9veyclt.fsf@hanan> (raw)
In-Reply-To: <8637cqnc6k.fsf@local.lan>


>>>>> "Harry" == Harry Putnam <reader@newsguy.com> writes:

    Harry> Sorry to bog things down to something probably trivial.  But
    Harry> could one of you spell out a bit more what this `spec' is?

    Harry> My summary line format is a long string of char that I pieced
    Harry> together about a hundred yrs ago, haven't thought much about
    Harry> since, and are now mainly mystifying.

    Harry> Is it upper or lower case `g' as would seem to be what Andrew
    Harry> C suggests or something more?

    Harry> (setq gnus-summary-line-format "%O%2t%U%R%7d%z%I%(%[%4L:
    Harry> %-20,20f%]%) %s\n")


The summary-line format is documented in the gnus manual in the section
Gnus->Summary Buffer->Summary Buffer Format->Summary Buffer Lines

There you can find the syntax of this thing and what all the different
possibilities are (except for the new nnselect part of the spec which
hasn't yet entered this part of the documentation:))

The only nnselect specific items are the specs for showing the "real"
information about an article in an nnselect buffer. They are

          %Z    Search retrieval score value (integer)
          %G    Article original full group name (string)
          %g    Article original short group name (string)

If you are using the new nnselect stuff from git, then you can just use
these in your spec and they will be blank in ordinary summary buffers,
and show the right thing in nnselect buffers.

So indeed %g is the right spec to get the originating group name (or %G
if you want the longer name).

And although I doubt it will be that helpful, here is the crazy one I
use (I have a strangely formatted summary buffer :))

(setq gnus-summary-line-format (concat 
				"%15{%U%R%}" 
				"%15{│ %}" 
				"%12{%-16&user-date;%}"
				"%15{ │%}"
				"%12{ %}%(%-18,18f%)"
				"%12{ %}%*%7{%B%}%«%14{%~(ignore 0)Z %}%11{%s%} %14{%g%}%»\n"))




  reply	other threads:[~2017-04-30  0:15 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-21 21:35 Eric Abrahamsen
2017-04-22  0:16 ` Andrew Cohen
2017-04-22  7:50   ` Eli Zaretskii
2017-04-22  8:00     ` Andrew Cohen
2017-04-22 19:53 ` Lars Ingebrigtsen
2017-04-22 20:26   ` Eric Abrahamsen
2017-04-24 20:30   ` Eric Abrahamsen
2017-04-26  4:41     ` Andrew Cohen
2017-04-26  6:31       ` Adam Sjøgren
2017-04-26  7:39         ` Saša Janiška
2017-04-26 16:07           ` Eric Abrahamsen
2017-04-26  9:21       ` Joakim Jalap
2017-04-26 15:51       ` Eric Abrahamsen
     [not found]       ` <7e7ccca805864b5398551cc74123df11@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
     [not found]         ` <87k2653oum.fsf@delle7240>
2017-04-27 19:35           ` Eric Abrahamsen
2017-04-28  1:18           ` Andrew Cohen
     [not found]           ` <cb06d28e83ab4a6cab1b3cd02fc7e554@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
     [not found]             ` <87zif16j2t.fsf@delle7240>
2017-04-28  9:16               ` Andrew Cohen
2017-04-26  8:18     ` Andrew Cohen
2017-04-26 16:37       ` Eric Abrahamsen
2017-04-26 22:31         ` Eric Abrahamsen
2017-04-27  4:27           ` Andrew Cohen
2017-04-27 18:22             ` Eric Abrahamsen
2017-04-28  1:15               ` Andrew Cohen
2017-04-28 18:23                 ` Eric Abrahamsen
2017-04-28 20:52                   ` Eric Abrahamsen
2017-04-28 23:26                     ` Andrew Cohen
2017-04-29  3:57                       ` Eric Abrahamsen
2017-04-29  9:37                         ` Andrew Cohen
2017-04-30  5:13                           ` Eric Abrahamsen
2017-04-28 23:34                   ` Andrew Cohen
2017-04-29  4:16                     ` Eric Abrahamsen
2017-04-29 21:20                 ` Harry Putnam
2017-04-30  0:15                   ` Andrew Cohen [this message]
2017-04-26 17:50       ` Eric Abrahamsen
2017-04-26  8:22     ` Andrew Cohen
2017-04-23 13:48 ` Dan Christensen
2017-04-23 17:19   ` Eric Abrahamsen
2017-04-23 17:59     ` Dan Christensen
2017-04-23 23:22       ` Eric Abrahamsen
2017-04-24  1:37         ` Dan Christensen
2017-04-24 21:02           ` Eric Abrahamsen
2017-06-10  4:46     ` Eric Abrahamsen

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=87o9veyclt.fsf@hanan \
    --to=cohen@bu.edu \
    --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).