Gnus development mailing list
 help / color / mirror / Atom feed
From: lee <lee@yun.yagibdah.de>
To: ding@gnus.org
Subject: weird results when setting gnus-parameters
Date: Sun, 02 Sep 2012 08:13:54 +0200	[thread overview]
Message-ID: <87y5kt3qal.fsf@yun.yagibdah.de> (raw)

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



             reply	other threads:[~2012-09-02  6:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-02  6:13 lee [this message]
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

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=87y5kt3qal.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).