From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/79516 Path: news.gmane.org!not-for-mail From: lee Newsgroups: gmane.emacs.gnus.general Subject: Re: special face for marks Date: Tue, 19 Jul 2011 19:51:51 +0200 Organization: my virtual residence Message-ID: <878vrunop4.fsf@yun.yagibdah.de> References: <87sjs5thro.fsf@micropit.couberia.bzh> <87sjq3xpmn.fsf@micropit.couberia.bzh> <8739i2twd3.fsf@yun.yagibdah.de> <87fwm25yfr.fsf@micropit.couberia.bzh> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1311097933 6528 80.91.229.12 (19 Jul 2011 17:52:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 19 Jul 2011 17:52:13 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M27812@lists.math.uh.edu Tue Jul 19 19:52:10 2011 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 1QjESl-00018e-P5 for ding-account@gmane.org; Tue, 19 Jul 2011 19:52:08 +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 1QjESa-0008Cl-GZ; Tue, 19 Jul 2011 12:51:56 -0500 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 1QjESY-0008CW-Q3 for ding@lists.math.uh.edu; Tue, 19 Jul 2011 12:51:54 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1QjESX-0005yo-ND for ding@lists.math.uh.edu; Tue, 19 Jul 2011 12:51:54 -0500 Original-Received: from static.103.179.46.78.clients.your-server.de ([78.46.179.103] helo=static.73.179.46.78.clients.your-server.de) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1QjESW-0007AC-4F for ding@gnus.org; Tue, 19 Jul 2011 19:51:52 +0200 Original-Received: from lee by yun.yagibdah.de with local (Exim 4.76) (envelope-from ) id 1QjESV-00025i-Hu for ding@gnus.org; Tue, 19 Jul 2011 19:51:51 +0200 Mail-Followup-To: ding@gnus.org In-Reply-To: <87fwm25yfr.fsf@micropit.couberia.bzh> ("Peter =?utf-8?Q?M?= =?utf-8?Q?=C3=BCnster=22's?= message of "Tue, 19 Jul 2011 12:58:48 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Spam-Score: 0.1 (/) X-Spam-Report: SpamAssassin (3.3.1 2010-03-16) analysis follows Bayesian score: 0.0000 Ham tokens: 0.000-1869--6239h-0s--0d--H*u:Emacs, 0.000-1732--5783h-0s--0d--H*u:Gnus, 0.000-1655--5525h-0s--0d--H*u:linux, 0.000-1655--5525h-0s--0d--H*UA:linux, 0.000-1604--5355h-0s--0d--H*u:gnu Spam tokens: 0.993-1--0h-2s--0d--HX-Spam-Relays-External:sk:static., 0.993-1--0h-2s--0d--H*RU:sk:static., 0.958-4543--1461h-54248s--0d--H*r:quimby.gnus.org, 0.924-249--207h-4112s--0d--H*r:sk:static., 0.886-1766--4273h-54564s--0d--HX-Spam-Relays-External:quimby.gnus.org Autolearn status: no -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 2.0 HELO_DYNAMIC_IPADDR Relay HELO'd using suspicious hostname (IP addr 1) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:79516 Archived-At: pmlists@free.fr (Peter M=C3=BCnster) writes: > On Tue, Jul 19 2011, lee wrote: > >> Do you have any idea how to get gnus to display these marks? > > Yes. With "%U" in the `gnus-summary-line-format'. > My setting: > > (setq gnus-summary-line-format > "%U%R%3P %-10&user-date; %-17,17f(%4k)%* %B%s\n") > > >> Accessing them in a user-format-function doesn't seem to be possible. > > It's possible with the variable `gnus-tmp-unread' Oh, I mean /all/ available marks. Gnus seems to store them, and I would like to be able to see all the marks of articles in the summary. With the available format specifiers, I cannot see what marks articles actually have, with a few exceptions. There are at least 10 different marks for read articles, and gnus only displays either `O' or `E' with the "%U" specifier. I've tried to get the marks displayed with a `gnus-user-format-function-*', and it worked only for one or two of the marks. When you try something like this with an "%uM" specifier in `gnus-summary-line-format', it doesn't work: (defun gnus-user-format-function-M (header) (let ( (str "|") ) (if (equal gnus-tmp-unread gnus-unread-mark) (setq str (concat str "U") ) ) (if (equal gnus-tmp-read gnus-read-mark) (setq str (concat str "R") ) ) (if (equal gnus-tmp-del gnus-del-mark) (setq str (concat "d" str) ) ) (if (equal gnus-tmp-read gnus-read-mark) (setq str (concat "R" str) ) ) (if (equal gnus-tmp-ancient gnus-ancient-mark) (setq str (concat "O" str) ) ) (if (equal gnus-tmp-killed gnus-killed-mark) (setq str (concat "K" str) ) ) (if (equal gnus-tmp-kill-file gnus-kill-file-mark) (setq str (concat "X" str) ) ) (if (equal gnus-tmp-low-score gnus-low-score-mark) (setq str (concat "Y" str) ) ) (if (equal gnus-tmp-catchup gnus-catchup-mark) (setq str (concat "C" str) ) ) (if (equal gnus-tmp-cancled gnus-cancled-mark) (setq str (concat "G" str) ) ) (if (equal gnus-tmp-sparse gnus-sparse-mark) (setq str (concat "Q" str) ) ) (if (equal gnus-tmp-duplicate gnus-duplicate-mark) (setq str (concat "M" str) ) ) (if (equal gnus-tmp-expirable gnus-expirable-mark) (setq str (concat "E" str) ) ) ) ) Perhaps the variables for the marks aren't set when the function is called? They aren't given in the header, either.