Gnus development mailing list
 help / color / mirror / Atom feed
* weird results when setting gnus-parameters
@ 2012-09-02  6:13 lee
  2012-09-02 15:20 ` Tassilo Horn
  0 siblings, 1 reply; 8+ messages in thread
From: lee @ 2012-09-02  6:13 UTC (permalink / raw)
  To: ding

Hi,

setting gnus-parameters in my ~/.gnus yields weird results. For example:


(setq gnus-parameters
      `(
	("mail\\.0-incoming"
	 (gnus-show-threads nil)
	 (gnus-use-scoring nil)
	 (gnus-article-sort-functions '((not gnus-article-sort-by-date)))
	 (display . [not expire])
	 (gcc-self . "mail.sent")
	 (gnus-summary-line-format
	  ":%U%R%z%I(%5k) %(%[%-23,23A%]%) %11&user-date; '%s\n"))
	;;
	("mail\\.lists\\.debian.*"
	 (subscribed . t)
	 (gnus-show-threads t)
	 (gnus-use-scoring  t)
	 (display . default)
	 (gcc-self . "mail.posted")
	 (posting-style
	  (organization "my virtual residence")
	  (signature "Debian testing amd64"))
	 (gnus-summary-line-format
	  ":%U%R%z%B(%5k) %(%[%-23,23f%]%) '%s\n"))))


This does ignore the signature specified in the posting-style for a
group called "mail.lists.debian-user". It does apply the Gcc header
correctly. Why is the signature setting ignored?

It also seems to (sometimes) ignore (display . default), as gnus is
asking me how many articles to get when entering some group that should
have that setting enabled.

The documentation says:


,---- [ info (gnus) Group Parameters ]
|    All clauses that matches the group name will be used, but the last
| setting "wins".  So if you have two clauses that both match the group
| name, and both set, say `display', the last setting will override the
| first.
`----


It definitely doesn't work that way. I have done some experimentation
with the order of entries in gnus-parameters and started thinking that
either not the last setting wins but the first one or that the first
setting that matches wins. However, the results then contradicted that
and are inconclusive, and I can't figure out how it works.

What I expected, according to the documentation, is that I could set
parameters for all groups first and then create "exceptions" in later
clauses, like:


(setq gnus-parameters
      `(
	(".*"
	 (gnus-show-threads nil)
	 (gnus-use-scoring nil)
	 (gnus-article-sort-functions '((not gnus-article-sort-by-date)))
	 (display . [not expire])
	 (gcc-self . "mail.sent")
	 (gnus-summary-line-format
	  ":%U%R%z%I(%5k) %(%[%-23,23A%]%) %11&user-date; '%s\n"))
	;;
	("mail\\.lists.*"
	 (subscribed . t)
	 (gnus-show-threads t)
	 (gnus-use-scoring t)
	 (display . default)
	 (gcc-self . "mail.posted")
	 (posting-style
	  (organization "my virtual residence"))
	 (gnus-summary-line-format
	  ":%U%R%z%B(%5k) %(%[%-23,23f%]%) '%s\n"))
        ;;
	("mail\\.lists\\.debian.*"
	 (subscribed . t)
	 (gnus-show-threads t)
	 (gnus-use-scoring  t)
	 (display . default)
	 (gcc-self . "mail.posted")
	 (posting-style
	  (organization "my virtual residence")
	  (signature "Debian testing amd64"))
	 (gnus-summary-line-format
	  ":%U%R%z%B(%5k) %(%[%-23,23f%]%) '%s\n"))))


It doesn't really work that way. Is there a bug with this, or how does
it actually work?


-- 
http://www.asciiribbon.org/
http://tools.ietf.org/html/rfc1855
http://www.caliburn.nl/topposting.html



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-09-03 14:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-02  6:13 weird results when setting gnus-parameters lee
2012-09-02 15:20 ` Tassilo Horn
2012-09-02 17:49   ` lee
2012-09-02 18:50     ` Tassilo Horn
2012-09-02 19:47       ` lee
2012-09-03  4:09         ` lee
2012-09-03  6:54           ` Tassilo Horn
2012-09-03 14:01             ` lee

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).