Gnus development mailing list
 help / color / mirror / Atom feed
From: lee <lee@yun.yagibdah.de>
To: ding@gnus.org
Subject: Re: special face for marks
Date: Tue, 19 Jul 2011 19:51:51 +0200	[thread overview]
Message-ID: <878vrunop4.fsf@yun.yagibdah.de> (raw)
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")

pmlists@free.fr (Peter Münster) 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.



  reply	other threads:[~2011-07-19 17:51 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-23 18:04 setting face in gnus-user-format-function-x Peter Münster
2011-05-24  6:18 ` Reiner Steib
2011-05-25 13:38   ` Peter Münster
2011-05-26  6:37     ` Reiner Steib
2011-05-27  8:26       ` Peter Münster
2011-05-27  9:44         ` Michael Piotrowski
2011-05-30 18:10 ` Lars Magne Ingebrigtsen
2011-05-31  7:06   ` Peter Münster
2011-06-07 16:24     ` Michael Piotrowski
2011-06-23  8:47       ` Peter Münster
2011-06-26 10:06         ` Lars Magne Ingebrigtsen
2011-06-27 12:46           ` Peter Münster
2011-06-30  2:23             ` Lars Magne Ingebrigtsen
2011-06-30  5:14               ` Peter Münster
2011-06-30 22:03                 ` Lars Magne Ingebrigtsen
2011-07-13  9:15                   ` setting face in gnus-user-format-function-x (solved) Peter Münster
2011-07-13 11:35                     ` Peter Münster
2011-07-14  8:12                     ` Peter Münster
2011-07-14 19:09                       ` Reiner Steib
2011-07-11 16:57         ` setting face in gnus-user-format-function-x Michael Piotrowski
2011-07-13  7:36           ` Peter Münster
2011-07-18 21:09   ` special face for marks (was: setting face in gnus-user-format-function-x) Peter Münster
2011-07-19 10:09     ` special face for marks lee
2011-07-19 10:58       ` Peter Münster
2011-07-19 17:51         ` lee [this message]
2011-09-29  9:41           ` Ted Zlatanov

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=878vrunop4.fsf@yun.yagibdah.de \
    --to=lee@yun.yagibdah.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).