Gnus development mailing list
 help / color / mirror / Atom feed
From: Alexander Baier <alexander.baier@mailbox.org>
To: ding@gnus.org
Subject: Custom group or topic parameters
Date: Tue, 13 May 2014 15:31:30 +0200	[thread overview]
Message-ID: <87bnv1yfd9.fsf@mailbox.org> (raw)

[ I have sent this message before, but it does not seem to go through
despite the gmane authorizer telling me it "will be posted within ten
minutes".  So I am trying it again.]


Hello,

Is there a way to set custom group parameters? What do I mean by
"custom"? A custom group parameter would simply be parameter that is not
yet defined by gnus (e.g. foo is no documented group parameter).

The followup question to this: How do I access the group parameters in
message mode?  I want to do certain things based on the parameters of
the group I was "in" when I started to compose a new mail thus entering
message mode.

The concrete functionality I want to achieve is outlined by this
example:

Group Parameters for group "org.group.example":
#+BEGIN_SRC emacs-lisp
  ((subscribed . t)
   (to-list . "foo@example-list.org")
   (lang . "en_GB"))
#+END_SRC 

And then somewhere in a message-mode hook:
#+BEGIN_SRC emacs-lisp
  (ispell-change-dictionary (gnus-get-group-param 'lang))
#+END_SRC

Note, a function like "gnus-get-group-param" is what I was referring to
in the second paragraph.


Regards,
-- 
Alexander Baier




             reply	other threads:[~2014-05-13 13:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-13 13:31 Alexander Baier [this message]
2014-05-13 14:02 ` Peter Münster
2014-05-13 14:18   ` Alexander Baier
2014-05-13 14:50     ` Peter Münster
2014-05-14 21:32       ` Alexander Baier

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=87bnv1yfd9.fsf@mailbox.org \
    --to=alexander.baier@mailbox.org \
    --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).