Gnus development mailing list
 help / color / mirror / Atom feed
From: Rainer M Krug <Rainer@krugs.de>
To: ding@gnus.org
Subject: Showing for certain groups the number of emails instead of the number of unread emails?
Date: Fri, 12 Sep 2014 09:13:03 +0200	[thread overview]
Message-ID: <m2ppf1pb0g.fsf@krugs.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 1650 bytes --]

Hi

I am using the following gnus-groupline-format

,----
|   (defvar gnus-user-format-function-g-prev "" "")
|   (defun empty-common-prefix (left right)
|     "Given `left' '(\"foo\" \"bar\" \"fie\") and `right' '(\"foo\"
|       \"bar\" \"fum\"), return '(\"   \" \"   \" \"fum\")."
|     (if (and (cdr right)                  ; always keep the last part of right
|              (equal (car left) (car right)))
|         (cons (make-string (length (car left)) ? )
|               (empty-common-prefix (cdr left) (cdr right)))
|       right))
|   (defun gnus-user-format-function-g (arg)
|     "The full group name, but if it starts with a previously seen
|       prefix, empty that prefix."
|     (if (equal gnus-user-format-function-g-prev gnus-tmp-group) ; line-format is updated on exiting the summary, making prev equal this
|         gnus-tmp-group
|       (let* ((prev (split-string-and-unquote gnus-user-format-function-g-prev "\\."))
|              (this (split-string-and-unquote gnus-tmp-group "\\.")))
|         (setq gnus-user-format-function-g-prev gnus-tmp-group)
|         (combine-and-quote-strings
|          (empty-common-prefix prev this)
|          "."))))
|   (setq gnus-group-line-format "%M%S%p%P%5y:%B%(%ug%)\n")
`----

taken from [1]. Now I would need to see of some groups (all the ones
which have the substring [Maildir] in the name) to see the number of
emails instead of the number of unread emails. How can I achieve this?

Thanks,

Rainer

Footnotes: 
[1]  http://www.emacswiki.org/emacs/GnusFormatting#toc8

-- 
Rainer M. Krug
email: Rainer<at>krugs<dot>de
PGP: 0x0F52F982

[-- Attachment #2: Type: application/pgp-signature, Size: 494 bytes --]

             reply	other threads:[~2014-09-12  7:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-12  7:13 Rainer M Krug [this message]
2015-01-27  4:56 ` Lars Ingebrigtsen

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=m2ppf1pb0g.fsf@krugs.de \
    --to=rainer@krugs.de \
    --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).