From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/84918 Path: news.gmane.org!not-for-mail From: Rainer M Krug Newsgroups: gmane.emacs.gnus.general 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 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1410506072 8476 80.91.229.3 (12 Sep 2014 07:14:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Sep 2014 07:14:32 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M33162@lists.math.uh.edu Fri Sep 12 09:14:25 2014 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 1XSL3n-0004ei-JH for ding-account@gmane.org; Fri, 12 Sep 2014 09:14:23 +0200 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 1XSL2t-0007Wc-2h; Fri, 12 Sep 2014 02:13:27 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1XSL2p-0007WG-92 for ding@lists.math.uh.edu; Fri, 12 Sep 2014 02:13:23 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1XSL2n-0008AW-M0 for ding@lists.math.uh.edu; Fri, 12 Sep 2014 02:13:22 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1XSL2l-0005k3-MW for ding@gnus.org; Fri, 12 Sep 2014 09:13:19 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XSL2l-000498-Ig for ding@gnus.org; Fri, 12 Sep 2014 09:13:19 +0200 Original-Received: from arn78-1-88-186-171-7.fbx.proxad.net ([88.186.171.7]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Sep 2014 09:13:19 +0200 Original-Received: from Rainer by arn78-1-88-186-171-7.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Sep 2014 09:13:19 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 66 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: arn78-1-88-186-171-7.fbx.proxad.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin) Cancel-Lock: sha1:7zMk7p/KuItUVt5j0jpyz5f9tk4= X-Spam-Score: -5.4 (-----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:84918 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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-fo= rmat 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:=20 [1] http://www.emacswiki.org/emacs/GnusFormatting#toc8 =2D-=20 Rainer M. Krug email: Rainerkrugsde PGP: 0x0F52F982 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iQEcBAEBAgAGBQJUEp0DAAoJENvXNx4PUvmCZ0EIAMKK4pfHA/mLOKgyrkRGiv61 FrSD6BKQKvMdUjDvonn60A3hyqgYpS9P46iDn5mNq4e5bDC6+4pyi0jlRDHMcyhY KNOFnj5U0sYFSTa8ttOSNB4qyBjqzoshx1NQ2XLXNs03QUbwq1qUGLjqWdesbF99 fAkwyCvXiCwqhLPsCHk9xVoJaUS/P0j1n6qcEv23zAjtU2lcEF3rskejYHlB51Tu GC9ABNtIzR/fTvt8pc6sOX0EONx+rFiRaOdINtAk2nayCqb1Wvaqpm/bw2SvcWN+ k0qTirAex6mlQHOy4NMFZjO+R844boP2bTHk4IbIxgAfokKBCnlFO7EjGdtCqTg= =DneY -----END PGP SIGNATURE----- --=-=-=--